-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtraktimages.h
38 lines (29 loc) · 891 Bytes
/
traktimages.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
#ifndef TRAKTIMAGES_H
#define TRAKTIMAGES_H
#include <QObject>
class TraktImages : public QObject
{
Q_OBJECT
Q_PROPERTY(QString full READ full WRITE setFull NOTIFY fullChanged)
Q_PROPERTY(QString medium READ medium WRITE setMedium NOTIFY mediumChanged)
Q_PROPERTY(QString thumb READ thumb WRITE setThumb NOTIFY thumbChanged)
public:
explicit TraktImages(QObject *parent = 0);
explicit TraktImages(const QVariantMap &data, QObject *parent = 0);
QString full() const;
void setFull(const QString &url);
QString medium() const;
void setMedium(const QString &url);
QString thumb() const;
void setThumb(const QString &url);
signals:
void fullChanged();
void mediumChanged();
void thumbChanged();
private:
QString m_full;
QString m_medium;
QString m_thumb;
};
Q_DECLARE_METATYPE(TraktImages*)
#endif // TRAKTIMAGES_H