-rw-r--r-- | libopie/pim/otodo.h | 2 | ||||
-rw-r--r-- | libopie2/opiepim/otodo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libopie/pim/otodo.h b/libopie/pim/otodo.h index 1443e4f..5bd91d6 100644 --- a/libopie/pim/otodo.h +++ b/libopie/pim/otodo.h | |||
@@ -6,204 +6,204 @@ | |||
6 | #include <qarray.h> | 6 | #include <qarray.h> |
7 | #include <qmap.h> | 7 | #include <qmap.h> |
8 | #include <qregexp.h> | 8 | #include <qregexp.h> |
9 | #include <qstringlist.h> | 9 | #include <qstringlist.h> |
10 | #include <qdatetime.h> | 10 | #include <qdatetime.h> |
11 | #include <qvaluelist.h> | 11 | #include <qvaluelist.h> |
12 | 12 | ||
13 | #include <qpe/recordfields.h> | 13 | #include <qpe/recordfields.h> |
14 | #include <qpe/palmtopuidgen.h> | 14 | #include <qpe/palmtopuidgen.h> |
15 | 15 | ||
16 | #include <opie/opimrecord.h> | 16 | #include <opie/opimrecord.h> |
17 | 17 | ||
18 | 18 | ||
19 | class OTodo : public OPimRecord { | 19 | class OTodo : public OPimRecord { |
20 | public: | 20 | public: |
21 | typedef QValueList<OTodo> ValueList; | 21 | typedef QValueList<OTodo> ValueList; |
22 | enum RecordFields { | 22 | enum RecordFields { |
23 | Uid = Qtopia::UID_ID, | 23 | Uid = Qtopia::UID_ID, |
24 | Category = Qtopia::CATEGORY_ID, | 24 | Category = Qtopia::CATEGORY_ID, |
25 | HasDate, | 25 | HasDate, |
26 | Completed, | 26 | Completed, |
27 | Description, | 27 | Description, |
28 | Summary, | 28 | Summary, |
29 | Priority, | 29 | Priority, |
30 | DateDay, | 30 | DateDay, |
31 | DateMonth, | 31 | DateMonth, |
32 | DateYear, | 32 | DateYear, |
33 | Progress, | 33 | Progress, |
34 | CrossReference, | 34 | CrossReference, |
35 | HasAlarmDateTime, | 35 | HasAlarmDateTime, |
36 | AlarmDateTime | 36 | AlarmDateTime |
37 | }; | 37 | }; |
38 | public: | 38 | public: |
39 | // priorities from Very low to very high | 39 | // priorities from Very low to very high |
40 | enum TaskPriority { VeryHigh=1, High, Normal, Low, VeryLow }; | 40 | enum TaskPriority { VeryHigh=1, High, Normal, Low, VeryLow }; |
41 | 41 | ||
42 | /* Constructs a new ToDoEvent | 42 | /* Constructs a new ToDoEvent |
43 | @param completed Is the TodoEvent completed | 43 | @param completed Is the TodoEvent completed |
44 | @param priority What is the priority of this ToDoEvent | 44 | @param priority What is the priority of this ToDoEvent |
45 | @param category Which category does it belong( uid ) | 45 | @param category Which category does it belong( uid ) |
46 | @param summary A small summary of the todo | 46 | @param summary A small summary of the todo |
47 | @param description What is this ToDoEvent about | 47 | @param description What is this ToDoEvent about |
48 | @param hasDate Does this Event got a deadline | 48 | @param hasDate Does this Event got a deadline |
49 | @param date what is the deadline? | 49 | @param date what is the deadline? |
50 | @param uid what is the UUID of this Event | 50 | @param uid what is the UUID of this Event |
51 | **/ | 51 | **/ |
52 | OTodo( bool completed = false, int priority = Normal, | 52 | OTodo( bool completed = false, int priority = Normal, |
53 | const QStringList &category = QStringList(), | 53 | const QStringList &category = QStringList(), |
54 | const QString &summary = QString::null , | 54 | const QString &summary = QString::null , |
55 | const QString &description = QString::null, | 55 | const QString &description = QString::null, |
56 | ushort progress = 0, | 56 | ushort progress = 0, |
57 | bool hasDate = false, QDate date = QDate::currentDate(), | 57 | bool hasDate = false, QDate date = QDate::currentDate(), |
58 | int uid = 0 /*empty*/ ); | 58 | int uid = 0 /*empty*/ ); |
59 | 59 | ||
60 | OTodo( bool completed, int priority, | 60 | OTodo( bool completed, int priority, |
61 | const QArray<int>& category, | 61 | const QArray<int>& category, |
62 | const QString& summary = QString::null, | 62 | const QString& summary = QString::null, |
63 | const QString& description = QString::null, | 63 | const QString& description = QString::null, |
64 | ushort progress = 0, | 64 | ushort progress = 0, |
65 | bool hasDate = false, QDate date = QDate::currentDate(), | 65 | bool hasDate = false, QDate date = QDate::currentDate(), |
66 | int uid = 0 /* empty */ ); | 66 | int uid = 0 /* empty */ ); |
67 | 67 | ||
68 | /* Copy c'tor | 68 | /* Copy c'tor |
69 | 69 | ||
70 | **/ | 70 | **/ |
71 | OTodo(const OTodo & ); | 71 | OTodo(const OTodo & ); |
72 | 72 | ||
73 | /** | 73 | /** |
74 | *destructor | 74 | *destructor |
75 | */ | 75 | */ |
76 | ~OTodo(); | 76 | ~OTodo(); |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * Is this event completed? | 79 | * Is this event completed? |
80 | */ | 80 | */ |
81 | bool isCompleted() const; | 81 | bool isCompleted() const; |
82 | 82 | ||
83 | /** | 83 | /** |
84 | * Does this Event have a deadline | 84 | * Does this Event have a deadline |
85 | */ | 85 | */ |
86 | bool hasDueDate() const; | 86 | bool hasDueDate() const; |
87 | 87 | ||
88 | /** | 88 | /** |
89 | * Does this Event has an alarm time ? | 89 | * Does this Event has an alarm time ? |
90 | */ | 90 | */ |
91 | bool hasAlarmDateTime() const; | 91 | bool hasAlarmDateTime() const; |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * What is the priority? | 94 | * What is the priority? |
95 | */ | 95 | */ |
96 | int priority()const ; | 96 | int priority()const ; |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * progress as ushort 0, 20, 40, 60, 80 or 100% | 99 | * progress as ushort 0, 20, 40, 60, 80 or 100% |
100 | */ | 100 | */ |
101 | ushort progress() const; | 101 | ushort progress() const; |
102 | 102 | ||
103 | /** | 103 | /** |
104 | * The due Date | 104 | * The due Date |
105 | */ | 105 | */ |
106 | QDate dueDate()const; | 106 | QDate dueDate()const; |
107 | 107 | ||
108 | /** | 108 | /** |
109 | * Alarm Date and Time | 109 | * Alarm Date and Time |
110 | */ | 110 | */ |
111 | QDateTime alarmDateTime()const; | 111 | QDateTime alarmDateTime()const; |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * The description of the todo | 114 | * The description of the todo |
115 | */ | 115 | */ |
116 | QString description()const; | 116 | QString description()const; |
117 | 117 | ||
118 | /** | 118 | /** |
119 | * A small summary of the todo | 119 | * A small summary of the todo |
120 | */ | 120 | */ |
121 | QString summary() const; | 121 | QString summary() const; |
122 | 122 | ||
123 | /** | 123 | /** |
124 | * @reimplemented | 124 | * @reimplemented |
125 | * Return this todoevent in a RichText formatted QString | 125 | * Return this todoevent in a RichText formatted QString |
126 | */ | 126 | */ |
127 | QString toRichText() const; | 127 | QString toRichText() const; |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * reimplementation | 130 | * reimplementation |
131 | */ | 131 | */ |
132 | QString type()const; | 132 | QString type()const; |
133 | QString toShortText()const; | 133 | QString toShortText()const; |
134 | QMap<QString, QString> toExtraMap()const; | 134 | QMap<QString, QString> toExtraMap()const; |
135 | QString recordField(int id )const; | 135 | QString recordField(int id )const; |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * toMap puts all data into the map. int relates | 138 | * toMap puts all data into the map. int relates |
139 | * to ToDoEvent RecordFields enum | 139 | * to ToDoEvent RecordFields enum |
140 | */ | 140 | */ |
141 | QMap<int, QString> toMap()const; | 141 | QMap<int, QString> toMap()const; |
142 | 142 | ||
143 | /** | 143 | /** |
144 | * Set if this Todo is completed | 144 | * Set if this Todo is completed |
145 | */ | 145 | */ |
146 | void setCompleted(bool completed ); | 146 | void setCompleted(bool completed ); |
147 | 147 | ||
148 | /** | 148 | /** |
149 | * set if this todo got an end data | 149 | * set if this todo got an end data |
150 | */ | 150 | */ |
151 | void setHasDueDate( bool hasDate ); | 151 | void setHasDueDate( bool hasDate ); |
152 | 152 | ||
153 | /** | 153 | /** |
154 | * set if this todo has an alarm time and date | 154 | * set if this todo has an alarm time and date |
155 | */ | 155 | */ |
156 | void setHasAlarmDateTime ( bool hasAlarm ); | 156 | void setHasAlarmDateTime ( bool hasAlarm ); |
157 | 157 | ||
158 | /** | 158 | /** |
159 | * Set the priority of the Todo | 159 | * Set the priority of the Todo |
160 | */ | 160 | */ |
161 | void setPriority(int priority ); | 161 | void setPriority(int priority ); |
162 | 162 | ||
163 | /** | 163 | /** |
164 | * Set the progress. | 164 | * Set the progress. |
165 | */ | 165 | */ |
166 | void setProgress( ushort progress ); | 166 | void setProgress( ushort progress ); |
167 | 167 | ||
168 | /** | 168 | /** |
169 | * set the end date | 169 | * set the end date |
170 | */ | 170 | */ |
171 | void setDueDate( QDate date ); | 171 | void setDueDate( QDate date ); |
172 | 172 | ||
173 | /** | 173 | /** |
174 | * set the alarm time | 174 | * set the alarm time |
175 | */ | 175 | */ |
176 | void setAlarmDateTime ( const QDateTime& alarm ); | 176 | void setAlarmDateTime ( const QDateTime& alarm ); |
177 | 177 | ||
178 | void setDescription(const QString& ); | 178 | void setDescription(const QString& ); |
179 | void setSummary(const QString& ); | 179 | void setSummary(const QString& ); |
180 | bool isOverdue(); | 180 | bool isOverdue(); |
181 | 181 | ||
182 | 182 | ||
183 | bool match( const QRegExp &r )const; | 183 | bool match( const QRegExp &r )const; |
184 | 184 | ||
185 | bool operator<(const OTodo &toDoEvent )const; | 185 | bool operator<(const OTodo &toDoEvent )const; |
186 | bool operator<=(const OTodo &toDoEvent )const; | 186 | bool operator<=(const OTodo &toDoEvent )const; |
187 | bool operator!=(const OTodo &toDoEvent )const; | 187 | bool operator!=(const OTodo &toDoEvent )const; |
188 | bool operator>(const OTodo &toDoEvent )const; | 188 | bool operator>(const OTodo &toDoEvent )const; |
189 | bool operator>=(const OTodo &toDoEvent)const; | 189 | bool operator>=(const OTodo &toDoEvent)const; |
190 | bool operator==(const OTodo &toDoEvent )const; | 190 | bool operator==(const OTodo &toDoEvent )const; |
191 | OTodo &operator=(const OTodo &toDoEvent ); | 191 | OTodo &operator=(const OTodo &toDoEvent ); |
192 | 192 | ||
193 | private: | 193 | private: |
194 | class OTodoPrivate; | 194 | class OTodoPrivate; |
195 | struct OTodoData; | 195 | struct OTodoData; |
196 | 196 | ||
197 | void deref(); | 197 | void deref(); |
198 | void changeOrModify(); | 198 | inline void changeOrModify(); |
199 | void copy( OTodoData* src, OTodoData* dest ); | 199 | void copy( OTodoData* src, OTodoData* dest ); |
200 | OTodoPrivate *d; | 200 | OTodoPrivate *d; |
201 | OTodoData *data; | 201 | OTodoData *data; |
202 | 202 | ||
203 | }; | 203 | }; |
204 | inline bool OTodo::operator!=(const OTodo &toDoEvent )const { | 204 | inline bool OTodo::operator!=(const OTodo &toDoEvent )const { |
205 | return !(*this == toDoEvent); | 205 | return !(*this == toDoEvent); |
206 | } | 206 | } |
207 | 207 | ||
208 | 208 | ||
209 | #endif | 209 | #endif |
diff --git a/libopie2/opiepim/otodo.h b/libopie2/opiepim/otodo.h index 1443e4f..5bd91d6 100644 --- a/libopie2/opiepim/otodo.h +++ b/libopie2/opiepim/otodo.h | |||
@@ -6,204 +6,204 @@ | |||
6 | #include <qarray.h> | 6 | #include <qarray.h> |
7 | #include <qmap.h> | 7 | #include <qmap.h> |
8 | #include <qregexp.h> | 8 | #include <qregexp.h> |
9 | #include <qstringlist.h> | 9 | #include <qstringlist.h> |
10 | #include <qdatetime.h> | 10 | #include <qdatetime.h> |
11 | #include <qvaluelist.h> | 11 | #include <qvaluelist.h> |
12 | 12 | ||
13 | #include <qpe/recordfields.h> | 13 | #include <qpe/recordfields.h> |
14 | #include <qpe/palmtopuidgen.h> | 14 | #include <qpe/palmtopuidgen.h> |
15 | 15 | ||
16 | #include <opie/opimrecord.h> | 16 | #include <opie/opimrecord.h> |
17 | 17 | ||
18 | 18 | ||
19 | class OTodo : public OPimRecord { | 19 | class OTodo : public OPimRecord { |
20 | public: | 20 | public: |
21 | typedef QValueList<OTodo> ValueList; | 21 | typedef QValueList<OTodo> ValueList; |
22 | enum RecordFields { | 22 | enum RecordFields { |
23 | Uid = Qtopia::UID_ID, | 23 | Uid = Qtopia::UID_ID, |
24 | Category = Qtopia::CATEGORY_ID, | 24 | Category = Qtopia::CATEGORY_ID, |
25 | HasDate, | 25 | HasDate, |
26 | Completed, | 26 | Completed, |
27 | Description, | 27 | Description, |
28 | Summary, | 28 | Summary, |
29 | Priority, | 29 | Priority, |
30 | DateDay, | 30 | DateDay, |
31 | DateMonth, | 31 | DateMonth, |
32 | DateYear, | 32 | DateYear, |
33 | Progress, | 33 | Progress, |
34 | CrossReference, | 34 | CrossReference, |
35 | HasAlarmDateTime, | 35 | HasAlarmDateTime, |
36 | AlarmDateTime | 36 | AlarmDateTime |
37 | }; | 37 | }; |
38 | public: | 38 | public: |
39 | // priorities from Very low to very high | 39 | // priorities from Very low to very high |
40 | enum TaskPriority { VeryHigh=1, High, Normal, Low, VeryLow }; | 40 | enum TaskPriority { VeryHigh=1, High, Normal, Low, VeryLow }; |
41 | 41 | ||
42 | /* Constructs a new ToDoEvent | 42 | /* Constructs a new ToDoEvent |
43 | @param completed Is the TodoEvent completed | 43 | @param completed Is the TodoEvent completed |
44 | @param priority What is the priority of this ToDoEvent | 44 | @param priority What is the priority of this ToDoEvent |
45 | @param category Which category does it belong( uid ) | 45 | @param category Which category does it belong( uid ) |
46 | @param summary A small summary of the todo | 46 | @param summary A small summary of the todo |
47 | @param description What is this ToDoEvent about | 47 | @param description What is this ToDoEvent about |
48 | @param hasDate Does this Event got a deadline | 48 | @param hasDate Does this Event got a deadline |
49 | @param date what is the deadline? | 49 | @param date what is the deadline? |
50 | @param uid what is the UUID of this Event | 50 | @param uid what is the UUID of this Event |
51 | **/ | 51 | **/ |
52 | OTodo( bool completed = false, int priority = Normal, | 52 | OTodo( bool completed = false, int priority = Normal, |
53 | const QStringList &category = QStringList(), | 53 | const QStringList &category = QStringList(), |
54 | const QString &summary = QString::null , | 54 | const QString &summary = QString::null , |
55 | const QString &description = QString::null, | 55 | const QString &description = QString::null, |
56 | ushort progress = 0, | 56 | ushort progress = 0, |
57 | bool hasDate = false, QDate date = QDate::currentDate(), | 57 | bool hasDate = false, QDate date = QDate::currentDate(), |
58 | int uid = 0 /*empty*/ ); | 58 | int uid = 0 /*empty*/ ); |
59 | 59 | ||
60 | OTodo( bool completed, int priority, | 60 | OTodo( bool completed, int priority, |
61 | const QArray<int>& category, | 61 | const QArray<int>& category, |
62 | const QString& summary = QString::null, | 62 | const QString& summary = QString::null, |
63 | const QString& description = QString::null, | 63 | const QString& description = QString::null, |
64 | ushort progress = 0, | 64 | ushort progress = 0, |
65 | bool hasDate = false, QDate date = QDate::currentDate(), | 65 | bool hasDate = false, QDate date = QDate::currentDate(), |
66 | int uid = 0 /* empty */ ); | 66 | int uid = 0 /* empty */ ); |
67 | 67 | ||
68 | /* Copy c'tor | 68 | /* Copy c'tor |
69 | 69 | ||
70 | **/ | 70 | **/ |
71 | OTodo(const OTodo & ); | 71 | OTodo(const OTodo & ); |
72 | 72 | ||
73 | /** | 73 | /** |
74 | *destructor | 74 | *destructor |
75 | */ | 75 | */ |
76 | ~OTodo(); | 76 | ~OTodo(); |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * Is this event completed? | 79 | * Is this event completed? |
80 | */ | 80 | */ |
81 | bool isCompleted() const; | 81 | bool isCompleted() const; |
82 | 82 | ||
83 | /** | 83 | /** |
84 | * Does this Event have a deadline | 84 | * Does this Event have a deadline |
85 | */ | 85 | */ |
86 | bool hasDueDate() const; | 86 | bool hasDueDate() const; |
87 | 87 | ||
88 | /** | 88 | /** |
89 | * Does this Event has an alarm time ? | 89 | * Does this Event has an alarm time ? |
90 | */ | 90 | */ |
91 | bool hasAlarmDateTime() const; | 91 | bool hasAlarmDateTime() const; |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * What is the priority? | 94 | * What is the priority? |
95 | */ | 95 | */ |
96 | int priority()const ; | 96 | int priority()const ; |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * progress as ushort 0, 20, 40, 60, 80 or 100% | 99 | * progress as ushort 0, 20, 40, 60, 80 or 100% |
100 | */ | 100 | */ |
101 | ushort progress() const; | 101 | ushort progress() const; |
102 | 102 | ||
103 | /** | 103 | /** |
104 | * The due Date | 104 | * The due Date |
105 | */ | 105 | */ |
106 | QDate dueDate()const; | 106 | QDate dueDate()const; |
107 | 107 | ||
108 | /** | 108 | /** |
109 | * Alarm Date and Time | 109 | * Alarm Date and Time |
110 | */ | 110 | */ |
111 | QDateTime alarmDateTime()const; | 111 | QDateTime alarmDateTime()const; |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * The description of the todo | 114 | * The description of the todo |
115 | */ | 115 | */ |
116 | QString description()const; | 116 | QString description()const; |
117 | 117 | ||
118 | /** | 118 | /** |
119 | * A small summary of the todo | 119 | * A small summary of the todo |
120 | */ | 120 | */ |
121 | QString summary() const; | 121 | QString summary() const; |
122 | 122 | ||
123 | /** | 123 | /** |
124 | * @reimplemented | 124 | * @reimplemented |
125 | * Return this todoevent in a RichText formatted QString | 125 | * Return this todoevent in a RichText formatted QString |
126 | */ | 126 | */ |
127 | QString toRichText() const; | 127 | QString toRichText() const; |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * reimplementation | 130 | * reimplementation |
131 | */ | 131 | */ |
132 | QString type()const; | 132 | QString type()const; |
133 | QString toShortText()const; | 133 | QString toShortText()const; |
134 | QMap<QString, QString> toExtraMap()const; | 134 | QMap<QString, QString> toExtraMap()const; |
135 | QString recordField(int id )const; | 135 | QString recordField(int id )const; |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * toMap puts all data into the map. int relates | 138 | * toMap puts all data into the map. int relates |
139 | * to ToDoEvent RecordFields enum | 139 | * to ToDoEvent RecordFields enum |
140 | */ | 140 | */ |
141 | QMap<int, QString> toMap()const; | 141 | QMap<int, QString> toMap()const; |
142 | 142 | ||
143 | /** | 143 | /** |
144 | * Set if this Todo is completed | 144 | * Set if this Todo is completed |
145 | */ | 145 | */ |
146 | void setCompleted(bool completed ); | 146 | void setCompleted(bool completed ); |
147 | 147 | ||
148 | /** | 148 | /** |
149 | * set if this todo got an end data | 149 | * set if this todo got an end data |
150 | */ | 150 | */ |
151 | void setHasDueDate( bool hasDate ); | 151 | void setHasDueDate( bool hasDate ); |
152 | 152 | ||
153 | /** | 153 | /** |
154 | * set if this todo has an alarm time and date | 154 | * set if this todo has an alarm time and date |
155 | */ | 155 | */ |
156 | void setHasAlarmDateTime ( bool hasAlarm ); | 156 | void setHasAlarmDateTime ( bool hasAlarm ); |
157 | 157 | ||
158 | /** | 158 | /** |
159 | * Set the priority of the Todo | 159 | * Set the priority of the Todo |
160 | */ | 160 | */ |
161 | void setPriority(int priority ); | 161 | void setPriority(int priority ); |
162 | 162 | ||
163 | /** | 163 | /** |
164 | * Set the progress. | 164 | * Set the progress. |
165 | */ | 165 | */ |
166 | void setProgress( ushort progress ); | 166 | void setProgress( ushort progress ); |
167 | 167 | ||
168 | /** | 168 | /** |
169 | * set the end date | 169 | * set the end date |
170 | */ | 170 | */ |
171 | void setDueDate( QDate date ); | 171 | void setDueDate( QDate date ); |
172 | 172 | ||
173 | /** | 173 | /** |
174 | * set the alarm time | 174 | * set the alarm time |
175 | */ | 175 | */ |
176 | void setAlarmDateTime ( const QDateTime& alarm ); | 176 | void setAlarmDateTime ( const QDateTime& alarm ); |
177 | 177 | ||
178 | void setDescription(const QString& ); | 178 | void setDescription(const QString& ); |
179 | void setSummary(const QString& ); | 179 | void setSummary(const QString& ); |
180 | bool isOverdue(); | 180 | bool isOverdue(); |
181 | 181 | ||
182 | 182 | ||
183 | bool match( const QRegExp &r )const; | 183 | bool match( const QRegExp &r )const; |
184 | 184 | ||
185 | bool operator<(const OTodo &toDoEvent )const; | 185 | bool operator<(const OTodo &toDoEvent )const; |
186 | bool operator<=(const OTodo &toDoEvent )const; | 186 | bool operator<=(const OTodo &toDoEvent )const; |
187 | bool operator!=(const OTodo &toDoEvent )const; | 187 | bool operator!=(const OTodo &toDoEvent )const; |
188 | bool operator>(const OTodo &toDoEvent )const; | 188 | bool operator>(const OTodo &toDoEvent )const; |
189 | bool operator>=(const OTodo &toDoEvent)const; | 189 | bool operator>=(const OTodo &toDoEvent)const; |
190 | bool operator==(const OTodo &toDoEvent )const; | 190 | bool operator==(const OTodo &toDoEvent )const; |
191 | OTodo &operator=(const OTodo &toDoEvent ); | 191 | OTodo &operator=(const OTodo &toDoEvent ); |
192 | 192 | ||
193 | private: | 193 | private: |
194 | class OTodoPrivate; | 194 | class OTodoPrivate; |
195 | struct OTodoData; | 195 | struct OTodoData; |
196 | 196 | ||
197 | void deref(); | 197 | void deref(); |
198 | void changeOrModify(); | 198 | inline void changeOrModify(); |
199 | void copy( OTodoData* src, OTodoData* dest ); | 199 | void copy( OTodoData* src, OTodoData* dest ); |
200 | OTodoPrivate *d; | 200 | OTodoPrivate *d; |
201 | OTodoData *data; | 201 | OTodoData *data; |
202 | 202 | ||
203 | }; | 203 | }; |
204 | inline bool OTodo::operator!=(const OTodo &toDoEvent )const { | 204 | inline bool OTodo::operator!=(const OTodo &toDoEvent )const { |
205 | return !(*this == toDoEvent); | 205 | return !(*this == toDoEvent); |
206 | } | 206 | } |
207 | 207 | ||
208 | 208 | ||
209 | #endif | 209 | #endif |