25 lines
392 B
C
25 lines
392 B
C
|
#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
|