Differences From Artifact [26bc7597b9]:

  • File src/Page.hxx — part of check-in [e3beea52bf] at 2019-05-31 11:19:19 on branch trunk — Update year in all copyright messages (user: fifr size: 3971) [more...]

To Artifact [32cc5aeba4]:

  • File src/Page.hxx — part of check-in [1d8b2287f0] at 2019-06-03 08:55:54 on branch trunk — Replace `QScopedPointer` with `std::unique_ptr` (user: fifr size: 3958)

17
18
19
20
21
22
23
24

25
26
27
28
29
30
31
32

#ifndef __FOTOKOPIERER_PAGE_HXX__
#define __FOTOKOPIERER_PAGE_HXX__

#include <QtCore/QDateTime>
#include <QtCore/QDir>
#include <QtCore/QObject>
#include <QtCore/QScopedPointer>

#include <QtGui/QImage>

class Scanner;

/// A single scanned page.
class Page : public QObject
{
    Q_OBJECT







|
>
|







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

#ifndef __FOTOKOPIERER_PAGE_HXX__
#define __FOTOKOPIERER_PAGE_HXX__

#include <QtCore/QDateTime>
#include <QtCore/QDir>
#include <QtCore/QObject>
#include <QtGui/QImage>

#include <memory>

class Scanner;

/// A single scanned page.
class Page : public QObject
{
    Q_OBJECT
133
134
135
136
137
138
139
140
141
142
143
    void thumbnailFinished(const QString& thumbnail_path);

    /// An error occurred.
    void error(const QString& errorMessage);

private:
    struct Data;
    QScopedPointer<Data> d;
};

#endif







|



134
135
136
137
138
139
140
141
142
143
144
    void thumbnailFinished(const QString& thumbnail_path);

    /// An error occurred.
    void error(const QString& errorMessage);

private:
    struct Data;
    std::unique_ptr<Data> d;
};

#endif