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> 24 #include <quentier/utility/Macros.h> 29 QT_FORWARD_DECLARE_CLASS(QDebug)
30 QT_FORWARD_DECLARE_CLASS(QTextStream)
34 QT_FORWARD_DECLARE_CLASS(FileCopierPrivate)
40 explicit FileCopier(QObject * parent =
nullptr);
49 friend QDebug & operator<<(QDebug & dbg,
const State state);
50 friend QTextStream & operator<<(QTextStream & strm,
const State state);
54 QString sourceFilePath()
const;
55 QString destinationFilePath()
const;
57 double currentProgress()
const;
60 void progressUpdate(
double progress);
61 void finished(QString sourcePath, QString destPath);
62 void cancelled(QString sourcePath, QString destPath);
66 void copyFile(QString sourcePath, QString destPath);
73 FileCopierPrivate * d_ptr;
79 #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: FileCopier.h:36