13 #include <QCoreApplication>
15 #include <QJsonObject>
19 #include <QSharedData>
55 PlaceOfResidenceNoPlaceInfo)
67 Q_DECLARE_TR_FUNCTIONS(governikus::SelfData)
70 bool parse(
const QByteArray& pData);
71 bool parseOperationsAllowedByUser(
const QJsonObject& pObject);
72 bool parsePersonalData(
const QJsonObject& pObject);
73 void parseStructuredPlace(
const QJsonObject& pObjectm, SelfAuthDataPermission pPermission);
74 bool tryToInsertChild(
const QJsonValue& pValue, SelfAuthData pAuthData);
75 void add(
OrderedSelfData& pSelfData,
const QString& pGroupName,
const QString& pGroupValue)
const;
77 static QString formatDate(
const QString& pDate);
81 const QDateTime mDateTime;
82 QMap<SelfAuthData, SelfAuthDataPermission> mOperationsAllowed;
83 QMap<SelfAuthData, QString> mSelfAuthData;
85 explicit SelfData(
const QByteArray& pData);
86 QString getValue(SelfAuthData pData)
const;
90 QSharedDataPointer<SelfData> d;
99 [[nodiscard]]
bool isValid()
const;
100 [[nodiscard]] QString getValue(SelfAuthData pData)
const;
101 [[nodiscard]]
const QDateTime& getDateTime()
const;
Definition: SelfAuthenticationData.h:59
QVector< QPair< QString, QString > > OrderedSelfData
Definition: SelfAuthenticationData.h:61
~SelfAuthenticationData()=default
A simple template renderer.
Definition: ActivationContext.h:15
UNKNOWN
Definition: ResponseApdu.h:63
DateOfExpiry
Definition: SelfAuthenticationData.h:36
RestrictedID
Definition: SelfAuthenticationData.h:47
BirthName
Definition: AccessRoleAndRight.h:75
GivenNames
Definition: AccessRoleAndRight.h:82
IssuingState
Definition: SelfAuthenticationData.h:35
PlaceOfResidenceCity
Definition: SelfAuthenticationData.h:52
PlaceOfResidence
Definition: SelfAuthenticationData.h:44
PlaceOfResidenceCountry
Definition: SelfAuthenticationData.h:53
PlaceOfResidenceStreet
Definition: SelfAuthenticationData.h:51
DateOfBirth
Definition: AccessRoleAndRight.h:78
defineEnumType(ActivationType, UNKNOWN, SHOWUI, STATUS, TCTOKENURL) defineEnumType(StatusFormat
Format types for status responses.
FamilyNames
Definition: SelfAuthenticationData.h:38
ResidencePermitI
Definition: AccessRoleAndRight.h:72
AcademicTitle
Definition: SelfAuthenticationData.h:40
Nationality
Definition: AccessRoleAndRight.h:76
PlaceOfResidenceZipCode
Definition: SelfAuthenticationData.h:54
PlaceVerification
Definition: SelfAuthenticationData.h:49
DocumentType
Definition: AccessRoleAndRight.h:85
ArtisticName
Definition: AccessRoleAndRight.h:80
AgeVerification
Definition: AccessRoleAndRight.h:89
PlaceOfBirth
Definition: AccessRoleAndRight.h:77