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>
28QT_FORWARD_DECLARE_CLASS(QDebug)
29QT_FORWARD_DECLARE_CLASS(QTextStream)
33QT_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;
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition ErrorString.h:44
Definition FileCopier.h:36