QEverCloud
6.1.0
Unofficial Evernote Cloud API for Qt
|
Go to the documentation of this file.
9 #ifndef QEVERCLOUD_ASYNC_RESULT_H
10 #define QEVERCLOUD_ASYNC_RESULT_H
17 #include <QNetworkRequest>
23 QT_FORWARD_DECLARE_CLASS(AsyncResultPrivate)
24 QT_FORWARD_DECLARE_CLASS(DurableService)
58 static QVariant
asIs(QByteArray replyData);
60 typedef QVariant (*ReadFunctionType)(QByteArray replyData);
65 bool autoDelete =
true, QObject * parent =
nullptr);
70 bool autoDelete =
true, QObject * parent =
nullptr);
78 QObject * parent =
nullptr);
108 friend class DurableService;
111 AsyncResultPrivate *
const d_ptr;
117 #endif // QEVERCLOUD_ASYNC_RESULT_H
AsyncResult(QString url, QByteArray postData, IRequestContextPtr ctx, ReadFunctionType readFunction=AsyncResult::asIs, bool autoDelete=true, QObject *parent=nullptr)
AsyncResult(QVariant result, EverCloudExceptionDataPtr error, IRequestContextPtr ctx, bool autoDelete=true, QObject *parent=nullptr)
void finished(QVariant result, EverCloudExceptionDataPtr error, IRequestContextPtr ctx)
Emitted upon asynchronous call completition.
Definition: AsyncResult.h:21
Returned by asynchonous versions of functions.
Definition: AsyncResult.h:54
static QVariant asIs(QByteArray replyData)
std::shared_ptr< IRequestContext > IRequestContextPtr
Definition: RequestContext.h:81
#define QEVERCLOUD_EXPORT
Definition: Export.h:19
std::shared_ptr< EverCloudExceptionData > EverCloudExceptionDataPtr
Definition: EverCloudException.h:149
bool waitForFinished(int timeout=-1)
Wait for asynchronous operation to complete.
AsyncResult(QNetworkRequest request, QByteArray postData, IRequestContextPtr ctx, ReadFunctionType readFunction=AsyncResult::asIs, bool autoDelete=true, QObject *parent=nullptr)