Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneyinstitution_p.h
Context not available. | |||||
35 | // ---------------------------------------------------------------------------- | 35 | // ---------------------------------------------------------------------------- | ||
---|---|---|---|---|---|
36 | // Project Includes | 36 | // Project Includes | ||
37 | 37 | | |||
38 | #include "mymoneyobject_p.h" | ||||
39 | | ||||
38 | namespace Institution | 40 | namespace Institution | ||
39 | { | 41 | { | ||
40 | enum class Element { AccountID, | 42 | enum class Element { AccountID, | ||
Context not available. | |||||
56 | uint qHash(const Attribute key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | 58 | uint qHash(const Attribute key, uint seed) { return ::qHash(static_cast<uint>(key), seed); } | ||
57 | } | 59 | } | ||
58 | 60 | | |||
59 | class MyMoneyInstitutionPrivate { | 61 | class MyMoneyInstitutionPrivate : public MyMoneyObjectPrivate | ||
60 | 62 | { | |||
61 | public: | 63 | public: | ||
62 | static QString getElName(const Institution::Element el) | 64 | static QString getElName(const Institution::Element el) | ||
63 | { | 65 | { | ||
64 | static const QMap<Institution::Element, QString> elNames = { | 66 | static const QMap<Institution::Element, QString> elNames { | ||
65 | {Institution::Element::AccountID, QStringLiteral("ACCOUNTID")}, | 67 | {Institution::Element::AccountID, QStringLiteral("ACCOUNTID")}, | ||
66 | {Institution::Element::AccountIDS, QStringLiteral("ACCOUNTIDS")}, | 68 | {Institution::Element::AccountIDS, QStringLiteral("ACCOUNTIDS")}, | ||
67 | {Institution::Element::Address, QStringLiteral("ADDRESS")} | 69 | {Institution::Element::Address, QStringLiteral("ADDRESS")} | ||
Context not available. | |||||
71 | 73 | | |||
72 | static QString getAttrName(const Institution::Attribute attr) | 74 | static QString getAttrName(const Institution::Attribute attr) | ||
73 | { | 75 | { | ||
74 | static const QHash<Institution::Attribute, QString> attrNames = { | 76 | static const QHash<Institution::Attribute, QString> attrNames { | ||
75 | {Institution::Attribute::ID, QStringLiteral("id")}, | 77 | {Institution::Attribute::ID, QStringLiteral("id")}, | ||
76 | {Institution::Attribute::Name, QStringLiteral("name")}, | 78 | {Institution::Attribute::Name, QStringLiteral("name")}, | ||
77 | {Institution::Attribute::Manager, QStringLiteral("manager")}, | 79 | {Institution::Attribute::Manager, QStringLiteral("manager")}, | ||
Context not available. |