Diffstat (limited to 'libopie2/opiepim/core/opimrecordlist.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimrecordlist.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libopie2/opiepim/core/opimrecordlist.h b/libopie2/opiepim/core/opimrecordlist.h index b23138d..1d5027f 100644 --- a/libopie2/opiepim/core/opimrecordlist.h +++ b/libopie2/opiepim/core/opimrecordlist.h | |||
@@ -24,24 +24,25 @@ | |||
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifndef ORECORDLIST_H | 30 | #ifndef ORECORDLIST_H |
31 | #define ORECORDLIST_H | 31 | #define ORECORDLIST_H |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/opimtemplatebase.h> | 34 | #include <opie2/opimtemplatebase.h> |
35 | #include <opie2/opimrecord.h> | 35 | #include <opie2/opimrecord.h> |
36 | //#include <opie2/odebug.h> | ||
36 | 37 | ||
37 | /* QT */ | 38 | /* QT */ |
38 | #include <qarray.h> | 39 | #include <qarray.h> |
39 | 40 | ||
40 | namespace Opie | 41 | namespace Opie |
41 | { | 42 | { |
42 | 43 | ||
43 | class OPimRecordListIteratorPrivate; | 44 | class OPimRecordListIteratorPrivate; |
44 | /** | 45 | /** |
45 | * Our List Iterator | 46 | * Our List Iterator |
46 | * it behaves like STL or Qt | 47 | * it behaves like STL or Qt |
47 | * | 48 | * |
@@ -180,25 +181,25 @@ OPimRecordListIterator<T>::OPimRecordListIterator() | |||
180 | 181 | ||
181 | 182 | ||
182 | template <class T> | 183 | template <class T> |
183 | OPimRecordListIterator<T>::~OPimRecordListIterator() | 184 | OPimRecordListIterator<T>::~OPimRecordListIterator() |
184 | { | 185 | { |
185 | /* nothing to delete */ | 186 | /* nothing to delete */ |
186 | } | 187 | } |
187 | 188 | ||
188 | 189 | ||
189 | template <class T> | 190 | template <class T> |
190 | OPimRecordListIterator<T>::OPimRecordListIterator( const OPimRecordListIterator<T>& it ) | 191 | OPimRecordListIterator<T>::OPimRecordListIterator( const OPimRecordListIterator<T>& it ) |
191 | { | 192 | { |
192 | // qWarning("OPimRecordListIterator copy c'tor"); | 193 | //owarn << "OPimRecordListIterator copy c'tor" << oendl; |
193 | m_uids = it.m_uids; | 194 | m_uids = it.m_uids; |
194 | m_current = it.m_current; | 195 | m_current = it.m_current; |
195 | m_temp = it.m_temp; | 196 | m_temp = it.m_temp; |
196 | m_end = it.m_end; | 197 | m_end = it.m_end; |
197 | m_record = it.m_record; | 198 | m_record = it.m_record; |
198 | m_direction = it.m_direction; | 199 | m_direction = it.m_direction; |
199 | } | 200 | } |
200 | 201 | ||
201 | 202 | ||
202 | template <class T> | 203 | template <class T> |
203 | OPimRecordListIterator<T> &OPimRecordListIterator<T>::operator=( const OPimRecordListIterator<T>& it ) | 204 | OPimRecordListIterator<T> &OPimRecordListIterator<T>::operator=( const OPimRecordListIterator<T>& it ) |
204 | { | 205 | { |
@@ -206,25 +207,25 @@ OPimRecordListIterator<T> &OPimRecordListIterator<T>::operator=( const OPimRecor | |||
206 | m_current = it.m_current; | 207 | m_current = it.m_current; |
207 | m_temp = it.m_temp; | 208 | m_temp = it.m_temp; |
208 | m_end = it.m_end; | 209 | m_end = it.m_end; |
209 | m_record = it.m_record; | 210 | m_record = it.m_record; |
210 | 211 | ||
211 | return *this; | 212 | return *this; |
212 | } | 213 | } |
213 | 214 | ||
214 | 215 | ||
215 | template <class T> | 216 | template <class T> |
216 | T OPimRecordListIterator<T>::operator*() | 217 | T OPimRecordListIterator<T>::operator*() |
217 | { | 218 | { |
218 | //qWarning("operator* %d %d", m_current, m_uids[m_current] ); | 219 | //owarn << "operator* " << m_current << " " << m_uids[m_current] << oendl; |
219 | if ( !m_end ) | 220 | if ( !m_end ) |
220 | m_record = m_temp->find( m_uids[ m_current ], m_uids, m_current, | 221 | m_record = m_temp->find( m_uids[ m_current ], m_uids, m_current, |
221 | m_direction ? Base::Forward : | 222 | m_direction ? Base::Forward : |
222 | Base::Reverse ); | 223 | Base::Reverse ); |
223 | else | 224 | else |
224 | m_record = T(); | 225 | m_record = T(); |
225 | 226 | ||
226 | return m_record; | 227 | return m_record; |
227 | } | 228 | } |
228 | 229 | ||
229 | 230 | ||
230 | template <class T> | 231 | template <class T> |