#ifndef BASEENTITY_H #define BASEENTITY_H #include class BaseEntity { public: BaseEntity(); int id() const; void setId(int newId); virtual void fromJson(const QJsonObject &) = 0; virtual QJsonObject toJson() const = 0; private: int _id = 0; }; #endif // BASEENTITY_H