Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneyschedule_p.h
Context not available. | |||||
30 | // ---------------------------------------------------------------------------- | 30 | // ---------------------------------------------------------------------------- | ||
---|---|---|---|---|---|
31 | // Project Includes | 31 | // Project Includes | ||
32 | 32 | | |||
33 | #include "mymoneyobject_p.h" | ||||
33 | #include "mymoneytransaction.h" | 34 | #include "mymoneytransaction.h" | ||
34 | #include "mymoneyenums.h" | 35 | #include "mymoneyenums.h" | ||
35 | 36 | | |||
Context not available. | |||||
63 | } | 64 | } | ||
64 | } | 65 | } | ||
65 | 66 | | |||
66 | class MyMoneySchedulePrivate { | 67 | class MyMoneySchedulePrivate : public MyMoneyObjectPrivate | ||
67 | 68 | { | |||
68 | public: | 69 | public: | ||
69 | MyMoneySchedulePrivate() | 70 | MyMoneySchedulePrivate() | ||
70 | : m_occurrence(Schedule::Occurrence::Any) | 71 | : m_occurrence(Schedule::Occurrence::Any) | ||
Context not available. | |||||
79 | 80 | | |||
80 | static QString getElName(const Schedule::Element el) | 81 | static QString getElName(const Schedule::Element el) | ||
81 | { | 82 | { | ||
82 | static const QMap<Schedule::Element, QString> elNames = { | 83 | static const QMap<Schedule::Element, QString> elNames { | ||
83 | {Schedule::Element::Payment, QStringLiteral("PAYMENT")}, | 84 | {Schedule::Element::Payment, QStringLiteral("PAYMENT")}, | ||
84 | {Schedule::Element::Payments, QStringLiteral("PAYMENTS")} | 85 | {Schedule::Element::Payments, QStringLiteral("PAYMENTS")} | ||
85 | }; | 86 | }; | ||
Context not available. | |||||
88 | 89 | | |||
89 | static QString getAttrName(const Schedule::Attribute attr) | 90 | static QString getAttrName(const Schedule::Attribute attr) | ||
90 | { | 91 | { | ||
91 | static const QHash<Schedule::Attribute, QString> attrNames = { | 92 | static const QHash<Schedule::Attribute, QString> attrNames { | ||
92 | {Schedule::Attribute::Name, QStringLiteral("name")}, | 93 | {Schedule::Attribute::Name, QStringLiteral("name")}, | ||
93 | {Schedule::Attribute::Type, QStringLiteral("type")}, | 94 | {Schedule::Attribute::Type, QStringLiteral("type")}, | ||
94 | {Schedule::Attribute::Occurrence, QStringLiteral("occurence")}, // krazy:exclude=spelling | 95 | {Schedule::Attribute::Occurrence, QStringLiteral("occurence")}, // krazy:exclude=spelling | ||
Context not available. |