8 #include "qalphacloud_export.h"
11 #include <QNetworkReply>
16 #include <type_traits>
23 Q_NAMESPACE_EXPORT(QALPHACLOUD_EXPORT)
86 QALPHACLOUD_EXPORT QString
errorText(
ErrorCode code,
const QVariant &details = QVariant());
Utility namespace.
Definition: apirequest.cpp:24
QString errorText(ErrorCode code, const QVariant &details)
Human-readable error text.
Definition: qalphacloud.cpp:16
SystemStatus
System status.
Definition: qalphacloud.h:95
@ Fault
There is a system fault.
@ UnknownStatus
Unknown status.
@ Normal
The system is performing normally.
RequestStatus
Request status.
Definition: qalphacloud.h:28
@ Loading
The request is being loaded from the server.
@ NoRequest
No request has been issued.
@ Finished
The request has finished successfully.
@ Error
The request failed with an error.
ErrorCode
Error codes.
Definition: qalphacloud.h:45
@ UnexpectedJsonDataError
Valid JSON received but it was not an Object (perhaps null, or an Array).
@ DataDoesNotExist
"Data does not exist or has been deleted"
@ InvalidDate
Date is invalid, documented as "internal error". Also returned when requesting historic data for a fu...
@ ParameterError
"Parameter error"
@ TimestampEmpty
"timestamp is empty"
@ SystemSnDoesNotExist
"system sn does not exist"
@ SignEmpty
"Sign is empty"
@ WhitelistVerificationFailed
"Whitelist verification failed"
@ JsonParseError
Failed to parse JSON received.
@ AppIdEmpty
"AppId is empty"
@ AppIdNotBoundToSn
"This appId is not bound to the SN"
@ SignVerificationError
"Sign verification error"
@ TimestampError
"Timestamp error"
@ CheckCodeError
"CheckCode error"
@ NoError
API returns 200.
@ VerificationCode
"Verification code error"
@ OperationFailed
"Operation failed"
@ TooManyRequests
"The request was too fast, please try again later"
@ SystemOffline
"system offline"
@ EmptyJsonObjectError
Valid JSON object was received but it was empty.
@ SnNotBoundToUser
"The SN is not bound to the user"