-rw-r--r-- | libopie/pim/orecordlist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libopie/pim/orecordlist.h b/libopie/pim/orecordlist.h index 08f5c85..5404910 100644 --- a/libopie/pim/orecordlist.h +++ b/libopie/pim/orecordlist.h | |||
@@ -100,24 +100,25 @@ public: | |||
100 | 100 | ||
101 | /** | 101 | /** |
102 | * the end | 102 | * the end |
103 | */ | 103 | */ |
104 | Iterator end(); | 104 | Iterator end(); |
105 | 105 | ||
106 | /** | 106 | /** |
107 | * the number of items in the list | 107 | * the number of items in the list |
108 | */ | 108 | */ |
109 | uint count()const; | 109 | uint count()const; |
110 | 110 | ||
111 | T operator[]( uint i ); | 111 | T operator[]( uint i ); |
112 | int uidAt(uint i ); | ||
112 | // FIXME implemenent remove | 113 | // FIXME implemenent remove |
113 | /* | 114 | /* |
114 | ConstIterator begin()const; | 115 | ConstIterator begin()const; |
115 | ConstIterator end()const; | 116 | ConstIterator end()const; |
116 | */ | 117 | */ |
117 | private: | 118 | private: |
118 | QArray<int> m_ids; | 119 | QArray<int> m_ids; |
119 | const Base* m_acc; | 120 | const Base* m_acc; |
120 | }; | 121 | }; |
121 | 122 | ||
122 | /* ok now implement it */ | 123 | /* ok now implement it */ |
123 | template <class T> | 124 | template <class T> |
@@ -253,13 +254,17 @@ ORecordList<T>::Iterator ORecordList<T>::end() { | |||
253 | 254 | ||
254 | return it; | 255 | return it; |
255 | } | 256 | } |
256 | template <class T> | 257 | template <class T> |
257 | uint ORecordList<T>::count()const { | 258 | uint ORecordList<T>::count()const { |
258 | return m_ids.count(); | 259 | return m_ids.count(); |
259 | } | 260 | } |
260 | template <class T> | 261 | template <class T> |
261 | T ORecordList<T>::operator[]( uint i ) { | 262 | T ORecordList<T>::operator[]( uint i ) { |
262 | /* forward */ | 263 | /* forward */ |
263 | return m_acc->find( m_ids[i], m_ids, i ); | 264 | return m_acc->find( m_ids[i], m_ids, i ); |
264 | } | 265 | } |
266 | template <class T> | ||
267 | int ORecordList<T>::uidAt( uint i ) { | ||
268 | return m_ids[i]; | ||
269 | } | ||
265 | #endif | 270 | #endif |