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

25 lines
392 B
C
Raw Normal View History

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