Diffstat (limited to 'libopie2/opiepim/core/opimevent.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimevent.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/libopie2/opiepim/core/opimevent.h b/libopie2/opiepim/core/opimevent.h index 5553cac..32f648f 100644 --- a/libopie2/opiepim/core/opimevent.h +++ b/libopie2/opiepim/core/opimevent.h | |||
@@ -109,39 +109,47 @@ class OPimEvent : public OPimRecord | |||
109 | * copy c'tor | 109 | * copy c'tor |
110 | */ | 110 | */ |
111 | OPimEvent( const OPimEvent& ); | 111 | OPimEvent( const OPimEvent& ); |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * Create OPimEvent, initialized by map | 114 | * Create OPimEvent, initialized by map |
115 | * @see enum RecordFields | 115 | * @see enum RecordFields |
116 | */ | 116 | */ |
117 | OPimEvent( const QMap<int, QString> map ); | 117 | OPimEvent( const QMap<int, QString> map ); |
118 | ~OPimEvent(); | 118 | ~OPimEvent(); |
119 | OPimEvent &operator=( const OPimEvent& ); | 119 | OPimEvent &operator=( const OPimEvent& ); |
120 | 120 | ||
121 | //@{ | ||
121 | QString description() const; | 122 | QString description() const; |
122 | void setDescription( const QString& description ); | 123 | void setDescription( const QString& description ); |
123 | 124 | ||
124 | QString location() const; | 125 | QString location() const; |
125 | void setLocation( const QString& loc ); | 126 | void setLocation( const QString& loc ); |
127 | //@} | ||
126 | 128 | ||
129 | //@{ | ||
127 | bool hasNotifiers() const; | 130 | bool hasNotifiers() const; |
128 | OPimNotifyManager ¬ifiers() const; | 131 | OPimNotifyManager ¬ifiers() const; |
132 | //@} | ||
129 | 133 | ||
134 | //@{ | ||
130 | OPimRecurrence recurrence() const; | 135 | OPimRecurrence recurrence() const; |
131 | void setRecurrence( const OPimRecurrence& ); | 136 | void setRecurrence( const OPimRecurrence& ); |
132 | bool hasRecurrence() const; | 137 | bool hasRecurrence() const; |
138 | //@} | ||
133 | 139 | ||
140 | //@{ | ||
134 | QString note() const; | 141 | QString note() const; |
135 | void setNote( const QString& note ); | 142 | void setNote( const QString& note ); |
143 | //@} | ||
136 | 144 | ||
137 | 145 | ||
138 | QDateTime createdDateTime() const; | 146 | QDateTime createdDateTime() const; |
139 | void setCreatedDateTime( const QDateTime& dt ); | 147 | void setCreatedDateTime( const QDateTime& dt ); |
140 | 148 | ||
141 | /** set the date to dt. dt is the QDateTime in localtime */ | 149 | /** set the date to dt. dt is the QDateTime in localtime */ |
142 | void setStartDateTime( const QDateTime& ); | 150 | void setStartDateTime( const QDateTime& ); |
143 | /** returns the datetime in the local timeZone */ | 151 | /** returns the datetime in the local timeZone */ |
144 | QDateTime startDateTime() const; | 152 | QDateTime startDateTime() const; |
145 | 153 | ||
146 | /** returns the start datetime in the current zone */ | 154 | /** returns the start datetime in the current zone */ |
147 | QDateTime startDateTimeInZone() const; | 155 | QDateTime startDateTimeInZone() const; |
@@ -152,52 +160,58 @@ class OPimEvent : public OPimRecord | |||
152 | QDateTime endDateTime() const; | 160 | QDateTime endDateTime() const; |
153 | QDateTime endDateTimeInZone() const; | 161 | QDateTime endDateTimeInZone() const; |
154 | 162 | ||
155 | bool isMultipleDay() const; | 163 | bool isMultipleDay() const; |
156 | bool isAllDay() const; | 164 | bool isAllDay() const; |
157 | void setAllDay( bool isAllDay ); | 165 | void setAllDay( bool isAllDay ); |
158 | 166 | ||
159 | /* pin this event to a timezone! FIXME */ | 167 | /* pin this event to a timezone! FIXME */ |
160 | void setTimeZone( const QString& timeZone ); | 168 | void setTimeZone( const QString& timeZone ); |
161 | QString timeZone() const; | 169 | QString timeZone() const; |
162 | 170 | ||
163 | 171 | ||
164 | virtual bool match( const QRegExp& ) const; | 172 | //@{ |
165 | |||
166 | /** For exception to recurrence here is a list of children... */ | 173 | /** For exception to recurrence here is a list of children... */ |
167 | QArray<int> children() const; | 174 | QArray<int> children() const; |
168 | void setChildren( const QArray<int>& ); | 175 | void setChildren( const QArray<int>& ); |
169 | void addChild( int uid ); | 176 | void addChild( int uid ); |
170 | void removeChild( int uid ); | 177 | void removeChild( int uid ); |
178 | //@} | ||
171 | 179 | ||
172 | /** return the parent OPimEvent */ | 180 | /** return the parent OPimEvent */ |
173 | int parent() const; | 181 | int parent() const; |
174 | void setParent( int uid ); | 182 | void setParent( int uid ); |
175 | 183 | ||
176 | 184 | ||
177 | /* needed reimp */ | 185 | /* needed reimp */ |
186 | //@{ Reimplementations | ||
187 | virtual bool match( const QRegExp& ) const; | ||
178 | QString toRichText() const; | 188 | QString toRichText() const; |
179 | QString toShortText() const; | 189 | QString toShortText() const; |
180 | QString type() const; | 190 | QString type() const; |
181 | 191 | ||
182 | QMap<int, QString> toMap() const; | 192 | QMap<int, QString> toMap() const; |
183 | void fromMap( const QMap<int, QString>& map ); | 193 | void fromMap( const QMap<int, QString>& map ); |
184 | QString recordField( int ) const; | 194 | QString recordField( int ) const; |
185 | 195 | ||
186 | int rtti() const; | ||
187 | |||
188 | bool loadFromStream( QDataStream& ); | 196 | bool loadFromStream( QDataStream& ); |
189 | bool saveToStream( QDataStream& ) const; | 197 | bool saveToStream( QDataStream& ) const; |
198 | //@} | ||
199 | |||
200 | //@{ | ||
201 | int rtti() const; | ||
202 | static OPimEvent* safeCast( const OPimRecord* ); | ||
203 | //@} | ||
190 | 204 | ||
191 | /* bool operator==( const OPimEvent& ); | 205 | /* bool operator==( const OPimEvent& ); |
192 | bool operator!=( const OPimEvent& ); | 206 | bool operator!=( const OPimEvent& ); |
193 | bool operator<( const OPimEvent& ); | 207 | bool operator<( const OPimEvent& ); |
194 | bool operator<=( const OPimEvent& ); | 208 | bool operator<=( const OPimEvent& ); |
195 | bool operator>( const OPimEvent& ); | 209 | bool operator>( const OPimEvent& ); |
196 | bool operator>=(const OPimEvent& ); | 210 | bool operator>=(const OPimEvent& ); |
197 | */ | 211 | */ |
198 | 212 | ||
199 | private: | 213 | private: |
200 | inline void changeOrModify(); | 214 | inline void changeOrModify(); |
201 | void deref(); | 215 | void deref(); |
202 | struct Data; | 216 | struct Data; |
203 | Data* data; | 217 | Data* data; |