You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
628 B
C++
39 lines
628 B
C++
#ifndef CPARTGROUP_H
|
|
#define CPARTGROUP_H
|
|
|
|
|
|
#include <QMetaType>
|
|
#include <QList>
|
|
|
|
|
|
class cPartGroup
|
|
{
|
|
public:
|
|
cPartGroup();
|
|
|
|
void setID(const qint32& id);
|
|
qint32 id();
|
|
|
|
void setName(const QString& szName);
|
|
QString name();
|
|
|
|
void setDescription(const QString& szDescription);
|
|
QString description();
|
|
private:
|
|
qint32 m_id;
|
|
QString m_szName;
|
|
QString m_szDescription;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(cPartGroup*)
|
|
|
|
class cPartGroupList : public QList<cPartGroup*>
|
|
{
|
|
public:
|
|
cPartGroup* add(qint32 id);
|
|
cPartGroup* find(qint32 id);
|
|
cPartGroup* find(const QString& szGroup);
|
|
};
|
|
|
|
#endif // CPARTGROUP_H
|