#ifndef TYPES_H #define TYPES_H #include #include class Types { public: Types(); }; class Worker { public: Worker(); int id() const; void setId(int newId); QString name() const; void setName(const QString &newName); int experience() const; void setExperience(int newExperience); QString phoneNumber() const; void setPhoneNumber(const QString &newPhoneNumber); QString teamName() const; void setTeamName(const QString &newTeamName); private: int _id = 0; QString _name = ""; int _experience = 0; QString _phoneNumber = ""; QString _teamName = ""; }; class Team { public: Team(); int id() const; void setId(int newId); bool status() const; void setStatus(bool newStatus); QString name() const; void setName(const QString &newName); private: int _id = 0; bool _status = true; QString _name = ""; }; class Stages { public: Stages(); int id() const; void setId(int newId); QDateTime StartDate() const; void setStartDate(const QDateTime &newStartDate); QDateTime FinishDate() const; void setFinishDate(const QDateTime &newFinishDate); int expenses() const; void setExpenses(int newExpenses); QString nameWorker() const; void setNameWorker(const QString &newNameWorker); int idWorker() const; void setIdWorker(int newIdWorker); QString name() const; void setName(const QString &newName); bool completed() const; void setCompleted(bool newCompleted); private: int _id = 0; QString _name = ""; QDateTime _StartDate = QDateTime(); QDateTime _FinishDate = QDateTime(); bool _completed = ""; int _expenses = 0; int _idWorker = 0; QString _nameWorker = ""; }; class DeviceType { public: DeviceType(); int id() const; void setId(int newId); QString name() const; void setName(const QString &newName); private: int _id = 0; QString _name = ""; }; class DeviceStructureElement { public: DeviceStructureElement(); int id() const; void setId(int newId); QString name() const; void setName(const QString &newName); QString description() const; void setDescription(const QString &newDescription); int count() const; void setCount(int newCount); QString nameType() const; void setNameType(const QString &newNameType); private: int _id = 0; QString _name = ""; QString _description = ""; int _count = 1; QString _nameType = ""; }; class DeviceModel { public: DeviceModel(); int id() const; void setId(int newId); QString name() const; void setName(const QString &newName); QString description() const; void setDescription(const QString &newDescription); int workEfficiency() const; void setWorkEfficiency(int newWorkEfficiency); int reliability() const; void setReliability(int newReliability); int durability() const; void setDurability(int newDurability); QDateTime CreateDate() const; void setCreateDate(const QDateTime &newCreateDate); QList structureElements() const; void setStructureElements(const QList &newStructureElements); int idType() const; void setIdType(int newIdType); QString nameType() const; void setNameType(const QString &newNameType); private: int _id = 0; QString _name = ""; QString _description = ""; int _workEfficiency = 0; int _reliability = 0; int _durability = 0; int _idType = 0; QString _nameType = ""; QDateTime _CreateDate = QDateTime(); QList _structureElements; }; class Project { public: Project(); int id() const; void setId(int newId); QString description() const; void setDescription(const QString &newDescription); QDateTime StartProjectDate() const; void setStartProjectDate(const QDateTime &newStartProjectDate); QDateTime FinishProjectDate() const; void setFinishProjectDate(const QDateTime &newFinishProjectDate); double budget() const; void setBudget(double newBudget); int idStages() const; void setIdStages(int newIdStages); QString nameStages() const; void setNameStages(const QString &newNameStages); int idTeam() const; void setIdTeam(int newIdTeam); QString nameTeam() const; void setNameTeam(const QString &newNameTeam); DeviceModel deviceModel() const; void setDeviceModel(const DeviceModel &newDeviceModel); bool isLiked() const; void setIsLiked(bool newIsLiked); bool isReady() const; void setIsReady(bool newIsReady); Stages stages() const; void setStages(const Stages &newStages); QString name() const; void setName(const QString &newName); private: int _id = 0; QString _description = ""; QDateTime _StartProjectDate = QDateTime(); QDateTime _FinishProjectDate = QDateTime(); double _budget = 1; int _idStages = 0; QString _nameStages = ""; int _idTeam = 0; QString _nameTeam = ""; DeviceModel _deviceModel; Stages _stages; bool _isLiked = false; bool _isReady = true; QString _name = ""; }; #endif // TYPES_H