libquentier
0.5.0
The library for rich desktop clients of Evernote service
|
19 #ifndef LIB_QUENTIER_UTILITY_FILE_IO_PROCESSOR_ASYNC_H
20 #define LIB_QUENTIER_UTILITY_FILE_IO_PROCESSOR_ASYNC_H
22 #include <quentier/types/ErrorString.h>
23 #include <quentier/utility/Linkage.h>
24 #include <quentier/utility/Macros.h>
34 QT_FORWARD_DECLARE_CLASS(FileIOProcessorAsyncPrivate)
77 bool success,
ErrorString errorDescription, QUuid requestId);
91 bool success,
ErrorString errorDescription, QByteArray data,
107 QString absoluteFilePath, QByteArray data, QUuid requestId,
120 FileIOProcessorAsyncPrivate *
const d_ptr;
126 #endif // LIB_QUENTIER_UTILITY_FILE_IO_PROCESSOR_ASYNC_H
void readFileRequestProcessed(bool success, ErrorString errorDescription, QByteArray data, QUuid requestId)
readFileRequestProcessed signal is emitted when the file read request with given id is finished
void writeFileRequestProcessed(bool success, ErrorString errorDescription, QUuid requestId)
writeFileRequestProcessed signal is emitted when the file write request with given id is finished
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:44
void onReadFileRequest(QString absoluteFilePath, QUuid requestId)
onReadFileRequest slot processes file read requests with given request ids
The FileIOProcessorAsync class is a wrapper under simple file IO operations, it is meant to be used f...
Definition: FileIOProcessorAsync.h:41
void onWriteFileRequest(QString absoluteFilePath, QByteArray data, QUuid requestId, bool append)
onWriteFileRequest slot processes file write requests with given request ids
void readyForIO()
readyForIO signal is emitted when the queue for file IO is empty for some time (30 seconds by default...
void setIdleTimePeriod(qint32 seconds)
setIdleTimePeriod sets time period defining the idle state of FileIOProcessorAsync: once the time mea...