From 6baa7366f20eabac32c3d84ae9832e517f5e0400 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 20 Jul 2018 14:34:45 +0200 Subject: More code churn Create separate files for MappingData and MappingTreeResultModel. Hopefully no functional changes. --- mappingdata.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mappingdata.h (limited to 'mappingdata.h') 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 +#include +#include + +struct MappingData { + MappingData(); + bool operator==(const MappingData &other); + //QDataStream &operator<<(QDataStream &out, const MappingData &d); + bool isValid(); + int mappingId; + int descId; + QString name; + QList parents; + QStringList path; +}; + +QDataStream &operator<<(QDataStream &out, const MappingData &d); +QDataStream &operator>>(QDataStream &in, MappingData &v); + +Q_DECLARE_METATYPE(MappingData) + +#endif // MAPPINGDATA_H -- cgit v1.2.3-70-g09d2