1 2 3 4 5 6 7 8 9 10 11 12 13 14
#pragma once #include <QString> #include <QJsonObject> #include <memory> class Jarmod; typedef std::shared_ptr<Jarmod> JarmodPtr; class Jarmod { public: /* methods */ static JarmodPtr fromJson(const QJsonObject &libObj, const QString &filename); QJsonObject toJson(); public: /* data */ QString name; };