summaryrefslogtreecommitdiffstats
path: root/mappingdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'mappingdata.h')
-rw-r--r--mappingdata.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/mappingdata.h b/mappingdata.h
new file mode 100644
index 0000000..f76932b
--- /dev/null
+++ b/mappingdata.h
@@ -0,0 +1,32 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#ifndef MAPPINGDATA_H
+#define MAPPINGDATA_H
+
+#include <QMetaType>
+#include <QString>
+#include <QList>
+
+struct MappingData {
+ MappingData();
+ bool operator==(const MappingData &other);
+ //QDataStream &operator<<(QDataStream &out, const MappingData &d);
+ bool isValid();
+ int mappingId;
+ int descId;
+ QString name;
+ QList<int> parents;
+ QStringList path;
+};
+
+QDataStream &operator<<(QDataStream &out, const MappingData &d);
+QDataStream &operator>>(QDataStream &in, MappingData &v);
+
+Q_DECLARE_METATYPE(MappingData)
+
+#endif // MAPPINGDATA_H