Changeset View
Changeset View
Standalone View
Standalone View
resources/kolab/pimkolab/kolabformatV2/journal.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 64 | { | |||
---|---|---|---|---|---|
65 | return QStringLiteral("Journal"); | 65 | return QStringLiteral("Journal"); | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | void saveTo(const KCalCore::Journal::Ptr &journal) const; | 68 | void saveTo(const KCalCore::Journal::Ptr &journal) const; | ||
69 | 69 | | |||
70 | virtual void setSummary(const QString &summary); | 70 | virtual void setSummary(const QString &summary); | ||
71 | virtual QString summary() const; | 71 | virtual QString summary() const; | ||
72 | 72 | | |||
73 | virtual void setStartDate(const KDateTime &startDate); | 73 | virtual void setStartDate(const QDateTime &startDate); | ||
74 | virtual KDateTime startDate() const; | 74 | virtual QDateTime startDate() const; | ||
75 | 75 | | |||
76 | virtual void setEndDate(const KDateTime &endDate); | 76 | virtual void setEndDate(const QDateTime &endDate); | ||
77 | virtual KDateTime endDate() const; | 77 | virtual QDateTime endDate() const; | ||
78 | 78 | | |||
79 | // Load the attributes of this class | 79 | // Load the attributes of this class | ||
80 | bool loadAttribute(QDomElement &) override; | 80 | bool loadAttribute(QDomElement &) override; | ||
81 | 81 | | |||
82 | // Save the attributes of this class | 82 | // Save the attributes of this class | ||
83 | bool saveAttributes(QDomElement &) const override; | 83 | bool saveAttributes(QDomElement &) const override; | ||
84 | 84 | | |||
85 | // Load this journal by reading the XML file | 85 | // Load this journal by reading the XML file | ||
86 | bool loadXML(const QDomDocument &xml) override; | 86 | bool loadXML(const QDomDocument &xml) override; | ||
87 | 87 | | |||
88 | // Serialize this journal to an XML string | 88 | // Serialize this journal to an XML string | ||
89 | QString saveXML() const override; | 89 | QString saveXML() const override; | ||
90 | 90 | | |||
91 | protected: | 91 | protected: | ||
92 | // Read all known fields from this ical journal | 92 | // Read all known fields from this ical journal | ||
93 | void setFields(const KCalCore::Journal::Ptr &); | 93 | void setFields(const KCalCore::Journal::Ptr &); | ||
94 | 94 | | |||
95 | QString productID() const override; | 95 | QString productID() const override; | ||
96 | 96 | | |||
97 | QString mSummary; | 97 | QString mSummary; | ||
98 | KDateTime mStartDate; | 98 | QDateTime mStartDate; | ||
99 | KDateTime mEndDate; | 99 | QDateTime mEndDate; | ||
100 | bool mDateOnly = false; | ||||
100 | }; | 101 | }; | ||
101 | } | 102 | } | ||
102 | 103 | | |||
103 | #endif // KOLAB_JOURNAL_H | 104 | #endif // KOLAB_JOURNAL_H |