Differences From Artifact [0550f79871]:

  • File src/Page.hxx — part of check-in [9a8180fb41] at 2019-05-24 17:11:27 on branch edit-page — Add `Page::updateFromScanner` (user: fifr size: 2992)

To Artifact [4795ea3a82]:

  • File src/Page.hxx — part of check-in [efdd2ee601] at 2019-05-24 17:11:42 on branch edit-page — Page: add `resultUrl` property (user: fifr size: 3088)

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);