PNP_PIbd-31_Rodionov_I_A_Co.../models/department.h

25 lines
405 B
C
Raw Normal View History

2024-12-24 18:13:22 +04:00
#ifndef DEPARTMENT_H
#define DEPARTMENT_H
#include <QString>
#include "baseentity.h"
class Department : public BaseEntity
{
public:
Department();
virtual ~Department();
QString name() const;
void setName(const QString &newName);
void fromJson(const QJsonObject &json) override;
QJsonObject toJson() const override;
private:
QString _name = "";
};
#endif // DEPARTMENT_H