35class QUENTIER_EXPORT FileCopier : public QObject
39 explicit FileCopier(QObject * parent =
nullptr);
48 friend QDebug & operator<<(QDebug & dbg,
const State state);
49 friend QTextStream & operator<<(QTextStream & strm,
const State state);
53 QString sourceFilePath()
const;
54 QString destinationFilePath()
const;
56 double currentProgress()
const;
59 void progressUpdate(
double progress);
60 void finished(QString sourcePath, QString destPath);
61 void cancelled(QString sourcePath, QString destPath);
65 void copyFile(QString sourcePath, QString destPath);
69 Q_DISABLE_COPY(FileCopier)
72 FileCopierPrivate * d_ptr;
73 Q_DECLARE_PRIVATE(FileCopier)