QAlphaCloud
0.0.1
Qt bindings for Alpha Cloud
|
Utility namespace. More...
Classes | |
class | ApiRequest |
API request job. More... | |
class | Configuration |
API configuration. More... | |
class | Connector |
API Connection. More... | |
class | LastPowerData |
Live Power Data. More... | |
class | OneDateEnergy |
Cumulative daily energy information. More... | |
class | OneDayPowerModel |
Historic power data for a day. More... | |
class | StorageSystemsModel |
Storage Systems Model. More... | |
Enumerations | |
enum class | RequestStatus { NoRequest = 0 , Loading , Finished , Error } |
Request status. More... | |
enum class | ErrorCode { UnknownError = -1 , NoError = 0 , JsonParseError = 1001 , UnexpectedJsonDataError = 1002 , EmptyJsonObjectError = 1002 , ParameterError = 6001 , SnNotBoundToUser = 6002 , CheckCodeError = 6004 , AppIdNotBoundToSn = 6005 , TimestampError = 6006 , SignVerificationError = 6007 , SetFailed = 6008 , WhitelistVerificationFailed = 6009 , SignEmpty = 6010 , TimestampEmpty = 6011 , AppIdEmpty = 6012 , DataDoesNotExist = 6016 , InvalidDate = 6026 , OperationFailed = 6029 , SystemSnDoesNotExist = 6038 , SystemOffline = 6042 , VerificationCode = 6046 , TooManyRequests = 6053 } |
Error codes. More... | |
enum class | SystemStatus { UnknownStatus = -1 , Normal , Fault } |
System status. More... | |
Functions | |
QString | errorText (ErrorCode code, const QVariant &details=QVariant()) |
Human-readable error text. More... | |
Utility namespace.
|
strong |
Error codes.
This can either be
|
strong |
|
strong |
QALPHACLOUD_EXPORT QString QAlphaCloud::errorText | ( | ErrorCode | code, |
const QVariant & | details = QVariant() |
||
) |
Human-readable error text.
code | The error code |
details | Details about the error, for example a QString with the JSON parser error message, or a QJsonValue whose type is printed when a different one was expected, etc. |