QEverCloud
6.1.0
Unofficial Evernote Cloud API for Qt
|
Go to the documentation of this file.
8 #ifndef QEVERCLOUD_DURABLE_SERVICE_H
9 #define QEVERCLOUD_DURABLE_SERVICE_H
36 QT_FORWARD_DECLARE_CLASS(DurableServicePrivate)
41 using SyncResult = std::pair<QVariant,EverCloudExceptionDataPtr>;
54 m_description(std::move(description)),
55 m_call(std::move(call))
68 m_description(std::move(description)),
69 m_call(std::move(call))
95 #endif // QEVERCLOUD_DURABLE_SERVICE_H
std::pair< QVariant, EverCloudExceptionDataPtr > SyncResult
Definition: DurableService.h:41
virtual bool shouldRetry(const EverCloudExceptionDataPtr &exceptionData)=0
Definition: DurableService.h:39
SyncRequest(const char *name, QString description, SyncServiceCall &&call)
Definition: DurableService.h:51
Definition: DurableService.h:46
AsyncRequest(const char *name, QString description, AsyncServiceCall &&call)
Definition: DurableService.h:65
std::function< SyncResult(IRequestContextPtr)> SyncServiceCall
Definition: DurableService.h:42
Definition: AsyncResult.h:21
Returned by asynchonous versions of functions.
Definition: AsyncResult.h:54
QString m_description
Definition: DurableService.h:62
AsyncServiceCall m_call
Definition: DurableService.h:63
Definition: DurableService.h:60
std::shared_ptr< IDurableService > IDurableServicePtr
Definition: DurableService.h:81
QEVERCLOUD_EXPORT IRetryPolicyPtr newRetryPolicy()
std::function< AsyncResult *(IRequestContextPtr)> AsyncServiceCall
Definition: DurableService.h:43
const char * m_name
Definition: DurableService.h:47
QEVERCLOUD_EXPORT IRetryPolicyPtr nullRetryPolicy()
QString m_description
Definition: DurableService.h:48
Definition: DurableService.h:27
const char * m_name
Definition: DurableService.h:61
virtual SyncResult executeSyncRequest(SyncRequest &&syncRequest, IRequestContextPtr ctx)=0
virtual AsyncResult * executeAsyncRequest(AsyncRequest &&asyncRequest, IRequestContextPtr ctx)=0
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
SyncServiceCall m_call
Definition: DurableService.h:49
std::shared_ptr< IRetryPolicy > IRetryPolicyPtr
Definition: DurableService.h:32
QEVERCLOUD_EXPORT IDurableServicePtr newDurableService(IRetryPolicyPtr={}, IRequestContextPtr={})