11 #include <QCoreApplication>
14 #include <QSharedData>
147 const Code mStatusCode;
152 : mStatusCode(pStatusCode)
153 , mExternalInformation(pExternalInformation)
159 InternalStatus(
Code pStatusCode,
const QPair<ExternalInformation, QString>& pExternalInformation,
const Origin pOrigin)
160 : mStatusCode(pStatusCode)
161 , mExternalInformation({
162 {pExternalInformation.first, pExternalInformation.second}
169 bool operator ==(
const InternalStatus& pOther)
const
171 return mStatusCode == pOther.mStatusCode &&
172 mExternalInformation == pOther.mExternalInformation &&
173 mOrigin == pOther.mOrigin;
179 QSharedDataPointer<InternalStatus> d;
182 [[nodiscard]] QString toErrorDescriptionInternal()
const;
186 : d(new InternalStatus(pStatusCode, pExternalInformation, pOrigin))
192 : d(new InternalStatus(pStatusCode, pExternalInformation, pOrigin))
204 [[nodiscard]]
bool is(
const Code pStatusCode)
const;
209 [[nodiscard]] QString
getExternalInfo(
const QString& pToken = QStringLiteral(
"; "))
const;
#define defineEnumOperators(enumName)
Definition: EnumHelper.h:30
QDebug operator<<(QDebug pDbg, const governikus::GlobalStatus &pStatus)
Definition: GlobalStatus.h:20
Code getStatusCode() const
bool operator==(const GlobalStatus &pOther) const
GlobalStatus(Code pStatusCode, const ExternalInfoMap &pExternalInformation, const Origin pOrigin=Origin::Client)
Definition: GlobalStatus.h:185
GlobalStatus(Code pStatusCode=Code::Unknown_Error, const Origin pOrigin=Origin::Client)
Definition: GlobalStatus.h:197
QString getExternalInfo(const QString &pToken=QStringLiteral("; ")) const
Origin
Definition: GlobalStatus.h:121
bool is(const Code pStatusCode) const
QString toErrorDescription(const bool pSimplifiedVersion=false) const
bool isMessageMasked() const
bool isCancellationByUser() const
bool isOriginServer() const
QMap< ExternalInformation, QString > ExternalInfoMap
Definition: GlobalStatus.h:136
Code
Definition: GlobalStatus.h:26
@ Workflow_TrustedChannel_Hash_Not_In_Description
@ Workflow_TrustedChannel_No_Data_Received
@ RemoteConnector_ConnectionTimeout
@ Workflow_Network_Ssl_Certificate_Unsupported_Algorithm_Or_Length
@ Paos_Generic_Server_Error
@ Paos_Error_SAL_Cancellation_by_User
@ Workflow_Cancellation_By_User
@ Workflow_TrustedChannel_Error_From_Server
@ Workflow_AlreadyInProgress_Error
@ Workflow_Network_Ssl_Hash_Not_In_Certificate_Description
@ Workflow_Reader_Became_Inaccessible
@ Paos_Error_AL_Internal_Error
@ Workflow_Unknown_Paos_From_EidServer
@ Workflow_Redirect_Transmission_Error
@ Paos_Error_AL_Communication_Error
@ Workflow_TrustedChannel_Proxy_Error
@ RemoteConnector_NoSupportedApiLevel
@ Paos_Error_AL_Unknown_Error
@ Card_Communication_Error
@ Workflow_TrustedChannel_ServiceUnavailable
@ Workflow_TrustedChannel_Ssl_Certificate_Unsupported_Algorithm_Or_Length
@ RemoteConnector_ConnectionError
@ Workflow_Network_Empty_Redirect_Url
@ Workflow_TrustedChannel_Server_Format_Error
@ Downloader_Missing_Platform
@ Workflow_Unexpected_Message_From_EidServer
@ Workflow_No_Unique_AtCvc
@ Workflow_No_Permission_Error
@ Workflow_TrustedChannel_Establishment_Error
@ Workflow_Cannot_Confirm_IdCard_Authenticity
@ Card_Unexpected_Transmit_Status
@ RemoteConnector_RemoteHostRefusedConnection
@ Workflow_Wrong_Parameter_Invocation
@ Workflow_Server_Incomplete_Information_Provided
@ Workflow_Error_Page_Transmission_Error
@ Workflow_TrustedChannel_Other_Network_Error
@ Workflow_Preverification_Error
@ Card_ValidityVerificationFailed
@ Card_NewPin_Invalid_Length
@ Workflow_Network_Expected_Redirect
@ Workflow_Network_Malformed_Redirect_Url
@ Update_Execution_Failed
@ Workflow_Network_Invalid_Scheme
@ Workflow_Certificate_No_Url_In_Description
@ Downloader_Cannot_Save_File
@ RemoteReader_CloseCode_AbnormalClose
@ Paos_Error_SAL_Invalid_Key
@ Workflow_Network_Ssl_Connection_Unsupported_Algorithm_Or_Length
@ Network_Ssl_Establishment_Error
@ Workflow_Certificate_Sop_Error
@ Network_ServiceUnavailable
@ Downloader_Data_Corrupted
@ Workflow_Certificate_Hash_Error
@ RemoteConnector_InvalidRequest
@ Workflow_TrustedChannel_TimeOut
@ Card_Cancellation_By_User
@ Paos_Unexpected_Warning
@ Paos_Error_DP_Trusted_Channel_Establishment_Failed
@ Workflow_No_Unique_DvCvc
@ Downloader_File_Not_Found
@ Workflow_Preverification_Developermode_Error
@ Workflow_Communication_Missing_Redirect_Url
@ Workflow_Processing_Error
@ Workflow_Certificate_No_Description
GlobalStatus(Code pStatusCode, const QPair< ExternalInformation, QString > &pExternalInformation, const Origin pOrigin=Origin::Client)
Definition: GlobalStatus.h:191
ExternalInformation
Definition: GlobalStatus.h:126
@ CERTIFICATE_ISSUER_NAME
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15