Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
OpResult.h
Go to the documentation of this file.
1
2// Copyright (c) 2016 Digital Barriers
4
9
10#pragma once
11#include <limits.h>
12
13#ifdef __cplusplus
14namespace EdgeVisDecoderSDK
15{
16 extern "C" {
17#endif
18
25 typedef enum OpResult
26 {
28 OR_Failed = -2147483647 - 1,
116
117 //Keep this as the last entry in the enum
120
121 inline const char* OpResultToString(OpResult res)
122 {
123 switch (res)
124 {
125 case OR_Success: return "The operation completed successfully";
126 case OR_Failed: return "The operation failed";
127 case OR_AuthFailed: return "Authorisation failed";
128 case OR_ConnectionFailed: return "The connection failed";
129 case OR_QueryTimeout: return "The query timed out";
130 case OR_NotImplemented: return "Function or feature has not been implemented";
131 case OR_NotSupported: return "Function or feature is not supported on the asset";
132 case OR_EncoderNotSupported: return "The encoder is not supported";
133 case OR_ServerCommsFailure: return "The communication with the server failed";
134 case OR_CantOpenStream: return "The stream cannot be opened";
135 case OR_NotConnected: return "The asset is not connected";
136 case OR_InvalidEncoder: return "The encoder is invalid";
137 case OR_EncoderDisconnected: return "The encoder has disconnected";
138 case OR_InvalidStream: return "The stream is invalid";
139 case OR_InvalidTransport: return "The transport type is invalid";
140 case OR_SettingNotValid: return "The setting is not valid";
141 case OR_ConfigSettingsFailed: return "The configuration setting failed";
142 case OR_PermissionDenied: return "Permission has been denied for this account";
143 case OR_InvalidProfileName: return "The profile name is invalid";
144 case OR_InvalidCameraInput: return "The camera input is invalid";
145 case OR_ServiceInUse: return "The service is in use";
146 case OR_ServiceBusy: return "The service is busy";
147 case OR_StreamInUse: return "The stream is in use by another account";
148 case OR_EnhanceAreaBadSize: return "The full resolution area size is not within the current frame";
149 case OR_EnhanceAreaBadPos: return "The full resolution area position is not within the current frame";
150 case OR_InvalidEnhanceQuality: return "The full resolution quality is not valid";
151 case OR_InvalidEnhanceFrameIdx: return "The full resolution index is not valid";
152 case OR_InvalidPortName: return "The name of the port is not valid";
153 case OR_InvalidParams: return "The parameters are not valid";
154 case OR_InvalidEncoderAddress: return "The address of the encoder is not valid";
155 case OR_CantOpenSerialStream: return "The serial stream can not be opened";
156 case OR_InvalidFilePath: return "The file path is invalid";
157 case OR_CryptoVerifyFailed: return "The verification of the encryption key failed";
158 case OR_InvalidService: return "The service is not valid";
159 case OR_IDConflict: return "The ID of the alarm rule is in conflict";
160 case OR_IDInvalid: return "The ID if the alarm rule is not valid";
161 case OR_DiskFull: return "The Disk is full";
162 case OR_IOError: return "There has been read/write error";
163 case OR_CorruptFile: return "The file is corrupt";
164 case OR_NoArchiveFootage: return "There is no archive footage available, possibly it has not yet been recorded";
165 case OR_NoLicense: return "There are no viewer licenses available";
166 case OR_LicenseDisabled: return "The users license has been disabled";
167 case OR_NewPasswordRequired: return "The users must set a new password";
168 case OR_ArchivePlaybackDisabled: return "The archive playback is currently disabled";
169 case OR_LicenseGraceExpired: return "The license has a grace period set";
170 case OR_AccountDisabled: return "The user account has been disabled";
171 case OR_AccountInactive: return "The user account has been marked as inactive";
172 case OR_AccountLocked: return "The user account has been locked";
173 case OR_NotificationNotfound: return "The notification has not been found";
174 case OR_LicenseError: return "Feature not licensed";
175 case OR_Deprecated: return "Feature is deprecated";
176 case OR_TooManyRequests: return "The GOP download service cannot accept another GOP request";
177 case OR_AlreadyDownloading: return "The GOP download service is already downloading";
178 case OR_TooManyRecordings: return "The GOP download request includes too many recording entries";
179 case OR_AccountInUse: return "The server has single sign-on enabled and the user is logged in already";
180 case OR_IncompatibleVersion: return "The server is not compatible with this Decoder SDK version";
181 case OR_FileAlreadyExported: return "The file has already been exported";
182 case OR_TooManyRules: return "There are too many rules on the encoder to add a new one";
183 case OR_TooManyActions: return "The rule contains more actions than the encoder can support";
184 case OR_Cancelled: return "The requested operation was cancelled";
185 case OR_TMSTokenNotObtained: return "Valid TMS web token was not obtained";
186 case OR_TMSRequestFailed: return "Request to list/download TMS files failed";
187 case OR_TMSRequestTimedOut: return "Request to list/download TMS files timed out";
188 case OR_CryptoUpgradeAvailable: return "An upgraded server key is available to enable stronger encryption";
189 case OR_CryptoNegotiationFailed: return "The negotiation of the encryption scheme failed";
190 case OR_CryptoProtocolError: return "The client and server could not agree on a protocol that both supported - this may be due to a supplied encryption key version";
191 case OR_BadClusterConfig: return "The cluster config could not be parsed or was inconsistent with the current server address";
192 case OR_RestInvalidResponse: return "A REST API requrest has returned an invalid response";
193 case OR_RestBadRequest: return "A REST API request has returned bad request";
194 case OR_RestUnauthorized: return "A REST API request has been rejected as the user in not authorized";
195 case OR_RestForbidden: return "The REST API request was for a forbidden URL";
196 case OR_RestServerError: return "The REST API server has encountered an error";
197 case OR_RestNotFound: return "The REST API request has failed with a not found error";
198 case OR_MFAEnrolmentRequired: return "The user is required by the server to setup two factor authentication on their device";
199 case OR_MFARequired: return "The user is required to provide additional authentication credentials";
200 case OR_MFAInvalidCode: return "The one time passcode the user provided is invalid";
201 case OR_MFACodeReuse: return "The one time passcode provided has already been used";
202 case OR_MFAEmergencyCodesExhausted: return "The account has no emergency one time passcodes remaining";
203 case OR_MFAInvalidEmergencyCode: return "The emergency one time passcode entered is invalid";
204 case OR_MFAEmergencyCodeReuse: return "The emergency one time passcode has previously been used: emergency codes can only be used once";
205 case OR_BadRequest: return "The request was malformed and was rejected by the server";
206 case OR_ServerError: return "An internal error occurred on the server during the previous request";
207 case OR_ServerIDMismatch: return "The server that has been contacted has a different UUID or encryption ID from the one expected";
208 case OR_InvalidDevice: return "The device is not valid";
209 case OR_SSOOpenIdNotEnabled: return "This user does not have SSO OpenId login enabled";
210 case OR_SSOOpenIdNotSupported: return "SSO OpenId is not supported on this platform";
211 case OR_SSOOpenIdAuthCodeRequired: return "No authentication code was supplied for SSO OpenId login";
212 case OR_WebLoginRequired: return "The user must log in to the web portal to proceed with login";
213 case OR_DNSFailure: return "An IP address could not be resolved so the server is not reachable";
214 case OR_Unknown: return "Unknown error";
215 }
216
217 return "Unknown error";
218 }
219
220#ifdef __cplusplus
221 }
222}
223#endif
OpResult
Result of an operation.
Definition OpResult.h:26
@ OR_IOError
There has been read/write error.
Definition OpResult.h:64
@ OR_TooManyRecordings
The GOP download request includes too many recording entries.
Definition OpResult.h:80
@ OR_ServerError
An internal error occurred on the server during the previous request.
Definition OpResult.h:108
@ OR_SSOOpenIdAuthCodeRequired
no one-time authCode was supplied for SSO OpenId login
Definition OpResult.h:113
@ OR_NotImplemented
Function or feature has not been implemented.
Definition OpResult.h:32
@ OR_CryptoProtocolError
The client and server could not agree on a protocol that both supported - this may be due to a suppli...
Definition OpResult.h:92
@ OR_TMSRequestTimedOut
Request to list/download TMS files timed out.
Definition OpResult.h:89
@ OR_NoArchiveFootage
There is no archive footage available, possibly it has not yet been recorded.
Definition OpResult.h:66
@ OR_BadClusterConfig
The cluster config could not be parsed or was inconsistent with the current server address.
Definition OpResult.h:93
@ OR_AccountInactive
The user account has been marked as inactive.
Definition OpResult.h:73
@ OR_CryptoUpgradeAvailable
An upgraded server key is available to enable stronger encryption.
Definition OpResult.h:90
@ OR_CryptoNegotiationFailed
The negotiation of the encryption scheme failed.
Definition OpResult.h:91
@ OR_StreamInUse
The stream is in use by another account.
Definition OpResult.h:49
@ OR_NoLicense
There are no viewer licenses available.
Definition OpResult.h:67
@ OR_SettingNotValid
The setting is not valid.
Definition OpResult.h:42
@ OR_InvalidEnhanceFrameIdx
The full resolution index is not valid.
Definition OpResult.h:53
@ OR_Unknown
Unknown error.
Definition OpResult.h:118
@ OR_IDInvalid
The ID if the alarm rule is not valid.
Definition OpResult.h:62
@ OR_InvalidProfileName
The profile name is invalid.
Definition OpResult.h:45
@ OR_EnhanceAreaBadPos
The full resolution area position is not within the current frame.
Definition OpResult.h:51
@ OR_ConfigSettingsFailed
The configuration setting failed.
Definition OpResult.h:43
@ OR_AccountInUse
The server has single sign-on enabled and the user is logged in already.
Definition OpResult.h:81
@ OR_TMSTokenNotObtained
Valid TMS web token was not obtained.
Definition OpResult.h:87
@ OR_RestBadRequest
A REST API request has returned bad request.
Definition OpResult.h:95
@ OR_RestServerError
The REST API server has encountered an error.
Definition OpResult.h:98
@ OR_InvalidDevice
The device is not valid.
Definition OpResult.h:110
@ OR_MFARequired
The user is required to provide additional authentication credentials.
Definition OpResult.h:101
@ OR_LicenseGraceExpired
The license has a grace period set.
Definition OpResult.h:71
@ OR_InvalidStream
The stream is invalid.
Definition OpResult.h:40
@ OR_TooManyRules
There are too many rules on the encoder to add a new one.
Definition OpResult.h:84
@ OR_AccountDisabled
The user account has been disabled.
Definition OpResult.h:72
@ OR_NotSupported
Function or feature is not supported on the asset.
Definition OpResult.h:33
@ OR_NewPasswordRequired
The users must set a new password.
Definition OpResult.h:69
@ OR_TooManyActions
The rule contains more actions than the encoder can support.
Definition OpResult.h:85
@ OR_TMSRequestFailed
Request to list/download TMS files failed.
Definition OpResult.h:88
@ OR_CantOpenStream
The stream cannot be opened.
Definition OpResult.h:36
@ OR_WebLoginRequired
The user must log on via the web portal to proceed.
Definition OpResult.h:114
@ OR_CryptoVerifyFailed
The verification of the encryption key failed.
Definition OpResult.h:59
@ OR_InvalidEncoder
The encoder is invalid.
Definition OpResult.h:38
@ OR_MFACodeReuse
The one time passcode provided has already been used.
Definition OpResult.h:103
@ OR_InvalidService
The service is not valid.
Definition OpResult.h:60
@ OR_AccountLocked
The user account has been locked.
Definition OpResult.h:74
@ OR_RestNotFound
The REST API request has failed with a not found error.
Definition OpResult.h:99
@ OR_InvalidEncoderAddress
The address of the encoder is not valid.
Definition OpResult.h:56
@ OR_ServiceInUse
The service is in use.
Definition OpResult.h:47
@ OR_InvalidCameraInput
The camera input is invalid.
Definition OpResult.h:46
@ OR_InvalidPortName
The name of the port is not valid.
Definition OpResult.h:54
@ OR_SSOOpenIdNotSupported
SSO OpenId is not supported on this platform.
Definition OpResult.h:112
@ OR_MFAEmergencyCodeReuse
The emergency one time passcode has previously been used, emergency codes can only be used once.
Definition OpResult.h:106
@ OR_ServiceBusy
The service is busy.
Definition OpResult.h:48
@ OR_Deprecated
Feature is deprecated.
Definition OpResult.h:77
@ OR_RestForbidden
The REST API request was for a forbidden URL.
Definition OpResult.h:97
@ OR_MFAInvalidEmergencyCode
The emergency one time passcode entered is invalid.
Definition OpResult.h:105
@ OR_SSOOpenIdNotEnabled
This user does not have SSO OpenId login enabled.
Definition OpResult.h:111
@ OR_EncoderNotSupported
The encoder is not supported.
Definition OpResult.h:34
@ OR_CorruptFile
The file is corrupt.
Definition OpResult.h:65
@ OR_MFAInvalidCode
The one time passcode the user provided is invalid.
Definition OpResult.h:102
@ OR_ConnectionFailed
The connection failed.
Definition OpResult.h:30
@ OR_CantOpenSerialStream
The serial stream can not be opened.
Definition OpResult.h:57
@ OR_EnhanceAreaBadSize
The full resolution area size is not within the current frame.
Definition OpResult.h:50
@ OR_RestUnauthorized
A REST API request has been rejected as the user in not authorized.
Definition OpResult.h:96
@ OR_ServerCommsFailure
The communication with the server failed.
Definition OpResult.h:35
@ OR_Cancelled
The requested operation was cancelled.
Definition OpResult.h:86
@ OR_IncompatibleVersion
The server is not compatible with this Decoder SDK version.
Definition OpResult.h:82
@ OR_IDConflict
The ID of the alarm rule is in conflict.
Definition OpResult.h:61
@ OR_MFAEnrolmentRequired
The user is required by the server to setup two factor authentication on their device.
Definition OpResult.h:100
@ OR_InvalidParams
The parameters are not valid.
Definition OpResult.h:55
@ OR_LicenseError
Feature not licensed.
Definition OpResult.h:76
@ OR_AuthFailed
Authorisation failed.
Definition OpResult.h:29
@ OR_Success
The operation completed successfully.
Definition OpResult.h:27
@ OR_InvalidEnhanceQuality
The full resolution quality is not valid.
Definition OpResult.h:52
@ OR_QueryTimeout
The query timed out.
Definition OpResult.h:31
@ OR_MFAEmergencyCodesExhausted
The account has no emergency one time passcodes remaining.
Definition OpResult.h:104
@ OR_InvalidTransport
The transport type is invalid.
Definition OpResult.h:41
@ OR_PermissionDenied
Permission has been denied for this account.
Definition OpResult.h:44
@ OR_AlreadyDownloading
The GOP download service is already downloading.
Definition OpResult.h:79
@ OR_TooManyRequests
The GOP download service cannot accept another GOP request.
Definition OpResult.h:78
@ OR_LicenseDisabled
The users license has been disabled.
Definition OpResult.h:68
@ OR_DiskFull
The Disk is full.
Definition OpResult.h:63
@ OR_EncoderDisconnected
The encoder has disconnected.
Definition OpResult.h:39
@ OR_ServerIDMismatch
The server that has been contacted has a different UUID or encryption ID from the one expected.
Definition OpResult.h:109
@ OR_RestInvalidResponse
A REST API requrest has returned an invalid response.
Definition OpResult.h:94
@ OR_NotConnected
The asset is not connected.
Definition OpResult.h:37
@ OR_InvalidFilePath
The file path is invalid.
Definition OpResult.h:58
@ OR_NotificationNotfound
The notification has not been found.
Definition OpResult.h:75
@ OR_ArchivePlaybackDisabled
The archive playback is currently disabled.
Definition OpResult.h:70
@ OR_FileAlreadyExported
The file has already been exported.
Definition OpResult.h:83
@ OR_BadRequest
The request was malformed and was rejected by the server.
Definition OpResult.h:107
@ OR_Failed
The operation failed.
Definition OpResult.h:28
@ OR_DNSFailure
A DNS failure has occurred.
Definition OpResult.h:115
The EdgeVis Decoder SDK namespace.