19 #ifndef LIB_QUENTIER_UTILITY_FILE_COPIER_H 20 #define LIB_QUENTIER_UTILITY_FILE_COPIER_H 22 #include <quentier/types/ErrorString.h> 23 #include <quentier/utility/Linkage.h> 28 QT_FORWARD_DECLARE_CLASS(QDebug)
29 QT_FORWARD_DECLARE_CLASS(QTextStream)
33 QT_FORWARD_DECLARE_CLASS(FileCopierPrivate)
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);
72 FileCopierPrivate * d_ptr;
78 #endif // LIB_QUENTIER_UTILITY_FILE_COPIER_H The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:43
Definition: DecryptedTextManager.h:26
Definition: FileCopier.h:35