forked from HuijunXu/CUMT-Daily
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Reply.h
44 lines (41 loc) · 1.02 KB
/
Reply.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
#ifndef REPLY_H
#define REPLY_H
#include <QObject>
#include <QDateTime>
class Reply:
public QObject
{
Q_OBJECT
Q_PROPERTY(QString uid READ uid NOTIFY uidChanged)
Q_PROPERTY(QString nicName READ nicName NOTIFY nicNameChanged)
Q_PROPERTY(QString userIcon READ userIcon NOTIFY userIconChanged)
Q_PROPERTY(QString content READ content NOTIFY contentChanged)
Q_PROPERTY(QDateTime replyTime READ replyTime NOTIFY replyTimeChanged)
public:
Reply();
~Reply();
Reply(QString uid,
QString nicName,
QString userIcon,
QString content,
QDateTime replyTime
);
QString uid();
QString nicName();
QString userIcon();
QString content();
QDateTime replyTime();
private:
QString _uid;
QString _nicName;
QString _userIcon;
QString _content;
QDateTime _replyTime;
signals:
void uidChanged();
void nicNameChanged();
void userIconChanged();
void contentChanged();
void replyTimeChanged();
};
#endif // REPLY_H