-
Notifications
You must be signed in to change notification settings - Fork 0
/
photopart.h
41 lines (31 loc) · 1012 Bytes
/
photopart.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 PHOTOPART_H
#define PHOTOPART_H
#include <QObject>
#include "rapidjson/prettywriter.h"
#include "templatephotoposition.h"
using namespace std;
using namespace rapidjson;
class TemplatePhotoPosition;
class PhotoPart : public QObject
{
Q_OBJECT
Q_PROPERTY(QUrl path READ path WRITE setPath NOTIFY pathChanged)
Q_PROPERTY(TemplatePhotoPosition* photoPosition READ photoPosition WRITE setPhotoPosition NOTIFY photoPositionChanged)
public:
PhotoPart();
PhotoPart(TemplatePhotoPosition *tpp);
~PhotoPart();
TemplatePhotoPosition *photoPosition() const;
void setPhotoPosition(TemplatePhotoPosition *photoPosition);
QUrl path() const;
void setPath(const QUrl &path);
void Serialize(PrettyWriter<StringBuffer>& writer) const;
private:
QUrl m_path;
TemplatePhotoPosition* m_photoPosition;
signals:
void pathChanged();
void photoPositionChanged();
public slots:
};
#endif // PHOTOPART_H