forked from CPP-Final-Project/Chat_Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoom.h
More file actions
40 lines (28 loc) · 770 Bytes
/
Room.h
File metadata and controls
40 lines (28 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef ROOM_H
#define ROOM_H
#include <QString>
#include <QObject>
namespace Entity {
class Room : public QObject {
Q_OBJECT
private:
qint32 a_id;
QString a_name;
QString a_description;
QString a_password;
bool a_is_deleted;
public:
explicit Room(const qint32& id_, const QString& name_, const QString& description_, const QString& password_, const bool& is_deleted_);
qint32 getId() const;
void setId(const qint32& id_);
QString getName() const;
void setName(const QString& name_);
QString getDescription() const;
void setDescription(const QString& description_);
QString getPassword() const;
void setPassword(const QString& password_);
bool isDeleted() const;
void setIsDeleted(const bool& is_deleted_);
};
}
#endif