forked from HuijunXu/CUMT-Daily
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNews.h
41 lines (37 loc) · 910 Bytes
/
News.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
#ifndef NEWS_H
#define NEWS_H
#include <QObject>
//#define HOME "http://192.168.191.1"
#define HOME "file:///sdcard/Download"
class News
:public QObject
{
Q_OBJECT
Q_PROPERTY(QString id READ id NOTIFY idChanged)
Q_PROPERTY(QString title READ title NOTIFY titleChanged)
Q_PROPERTY(QString discribe READ discribe NOTIFY discribeChanged)
Q_PROPERTY(QString thumbnail READ thumbnail NOTIFY thumbnailChanged)
public:
News();
~News();
News(
QString id,
QString title,
QString discribe,
QString thumbnail);
QString id();
QString title();
QString discribe();
QString thumbnail();
private:
QString _id;
QString _title;
QString _discribe;
QString _thumbnail;
signals:
void idChanged();
void titleChanged();
void discribeChanged();
void thumbnailChanged();
};
#endif // NEWS_H