9 #ifndef QEVERCLOUD_ASYNC_RESULT_H
10 #define QEVERCLOUD_ASYNC_RESULT_H
16 #include <QNetworkRequest>
20 QT_FORWARD_DECLARE_CLASS(AsyncResultPrivate)
48 static QVariant asIs(QByteArray replyData);
51 typedef QVariant (*ReadFunctionType)(QByteArray replyData);
53 AsyncResult(QString url, QByteArray postData, ReadFunctionType readFunction = AsyncResult::asIs,
54 bool autoDelete =
true, QObject * parent = Q_NULLPTR);
56 AsyncResult(QNetworkRequest request, QByteArray postData, ReadFunctionType readFunction = AsyncResult::asIs,
57 bool autoDelete =
true, QObject * parent = Q_NULLPTR);
67 bool waitForFinished(
int timeout = -1);
78 void finished(QVariant result, QSharedPointer<EverCloudExceptionData> error);
81 void onReplyFetched(QObject * rp);
85 AsyncResultPrivate *
const d_ptr;
91 #endif // QEVERCLOUD_ASYNC_RESULT_H
#define QEVERCLOUD_EXPORT
Definition: export.h:23
Definition: AsyncResult.h:18
Returned by asynchonous versions of functions.
Definition: AsyncResult.h:43