30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
+
|
class Page : public QObject
{
Q_OBJECT
Q_PROPERTY(QDateTime creationTime READ creationTime CONSTANT)
Q_PROPERTY(QString thumbnail READ thumbnail NOTIFY thumbnailChanged)
Q_PROPERTY(QString result READ result NOTIFY resultChanged)
Q_PROPERTY(QUrl resultUrl READ resultUrl NOTIFY resultChanged)
Q_PROPERTY(Status status READ status NOTIFY statusChanged)
public:
static const int ThumbnailSize = 500;
enum Status {
Ready, ///< the page is ready
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
+
+
|
QDateTime creationTime() const;
QString thumbnail();
QString originalImagePath() const;
QString result() const;
QUrl resultUrl() const;
Status status() const;
/// Initialize this page from the results of a Scanner.
///
/// The page files are stored in the document directory `dir`.
void loadFromScanner(const QDir& dir, const Scanner* scanner);
|