forked from CPP-Final-Project/Chat_Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DBRoom.h
48 lines (39 loc) · 1.19 KB
/
DBRoom.h
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
41
42
43
44
45
46
47
48
#pragma once
#ifndef DBROOM_H
#define DBROOM_H
#include <QString>
#include <QObject>
#include "SrvRoom.h"
#include "DBTopic.h"
namespace DBEntity {
class DBRoom {
public:
explicit DBRoom(const qint32& id_, const QString& name_, const QString& description_, const qint32& topic_id_, const QString& topic_name_, const bool& is_private_, const QString& password_, const bool& is_deleted_ = false);
explicit DBRoom(QSharedPointer<SrvRoom> cshp_srv_room_);
qint32 getId() const;
void setId(const qint32& id_);
QString getName() const;
void setName(const QString& name_);
QString getDescription() const;
void setDescription(const QString& description_);
qint32 getTopicId() const;
void setTopicId(const qint32& topic_id_);
QString getTopicName() const;
void setTopicName(const QString& name_);
bool isPrivate() const;
void setIsPrivate(const bool& is_private_);
QString getPassword() const;
void setPassword(const QString& password_);
bool isDeleted() const;
void setIsDeleted(const bool& deleted_);
private:
qint32 a_id;
QString a_name;
QString a_description;
DBEntity::DBTopic a_topic;
bool a_is_private;
QString a_password;
bool a_is_deleted;
};
}
#endif