11#include <QCoreApplication>
53 PlaceOfResidenceNoPlaceInfo)
65 Q_DECLARE_TR_FUNCTIONS(governikus::SelfData)
68 bool parse(
const QByteArray& pData);
69 bool parseOperationsAllowedByUser(
const QJsonObject& pObject);
70 bool parsePersonalData(
const QJsonObject& pObject);
71 void parseStructuredPlace(
const QJsonObject& pObjectm, SelfAuthDataPermission pPermission);
72 bool tryToInsertChild(
const QJsonValue& pValue, SelfAuthData pAuthData);
73 void add(
OrderedSelfData& pSelfData,
const QString& pGroupName,
const QString& pGroupValue)
const;
75 static QString formatDate(
const QString& pDate);
79 const QDateTime mDateTime;
80 QMap<SelfAuthData, SelfAuthDataPermission> mOperationsAllowed;
81 QMap<SelfAuthData, QString> mSelfAuthData;
83 explicit SelfData(
const QByteArray& pData);
84 QString
getValue(SelfAuthData pData)
const;
88 QSharedDataPointer<SelfData> d;
97 [[nodiscard]]
bool isValid()
const;
98 [[nodiscard]] QString
getValue(SelfAuthData pData)
const;
#define defineEnumType(enumName,...)
Definition EnumHelper.h:81
Definition SelfAuthenticationData.h:57
SelfAuthenticationData(const QByteArray &pData=QByteArray())
Definition SelfAuthenticationData.cpp:18
QString getValue(SelfAuthData pData) const
Definition SelfAuthenticationData.cpp:30
QList< QPair< QString, QString > > OrderedSelfData
Definition SelfAuthenticationData.h:59
const QDateTime & getDateTime() const
Definition SelfAuthenticationData.cpp:36
bool isValid() const
Definition SelfAuthenticationData.cpp:24
~SelfAuthenticationData()=default
OrderedSelfData getOrderedSelfData() const
Definition SelfAuthenticationData.cpp:42
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
UNKNOWN
Definition ResponseApdu.h:66
DateOfExpiry
Definition SelfAuthenticationData.h:34
RestrictedID
Definition SelfAuthenticationData.h:45
BirthName
Definition AccessRoleAndRight.h:78
GivenNames
Definition AccessRoleAndRight.h:85
IssuingState
Definition SelfAuthenticationData.h:33
PlaceOfResidenceCity
Definition SelfAuthenticationData.h:50
PlaceOfResidence
Definition SelfAuthenticationData.h:42
PlaceOfResidenceCountry
Definition SelfAuthenticationData.h:51
PlaceOfResidenceStreet
Definition SelfAuthenticationData.h:49
DateOfBirth
Definition AccessRoleAndRight.h:81
FamilyNames
Definition SelfAuthenticationData.h:36
ResidencePermitI
Definition AccessRoleAndRight.h:75
AcademicTitle
Definition SelfAuthenticationData.h:38
Nationality
Definition AccessRoleAndRight.h:79
PlaceOfResidenceZipCode
Definition SelfAuthenticationData.h:52
PlaceVerification
Definition SelfAuthenticationData.h:47
DocumentType
Definition AccessRoleAndRight.h:88
ArtisticName
Definition AccessRoleAndRight.h:83
AgeVerification
Definition AccessRoleAndRight.h:92
PlaceOfBirth
Definition AccessRoleAndRight.h:80