Diffstat (limited to 'libopie2/opiepim/orecordlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/orecordlist.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libopie2/opiepim/orecordlist.h b/libopie2/opiepim/orecordlist.h index c63d813..1fd0741 100644 --- a/libopie2/opiepim/orecordlist.h +++ b/libopie2/opiepim/orecordlist.h @@ -48,3 +48,3 @@ public: bool operator!=( const ORecordListIterator& it ); - + /** @@ -53,3 +53,3 @@ public: uint current()const; - + /** @@ -58,3 +58,3 @@ public: uint count()const; - + /** @@ -103,3 +103,3 @@ public: Iterator end(); - + /** @@ -108,3 +108,4 @@ public: uint count()const; - + + T operator[]( uint i ); // FIXME implemenent remove @@ -148,3 +149,3 @@ ORecordListIterator<T> &ORecordListIterator<T>::operator=( const ORecordListIter m_end = it.m_end; -// m_record = it.m_record; + m_record = it.m_record; @@ -254,2 +255,6 @@ return m_ids.count(); } +template <class T> +T ORecordList<T>::operator[]( uint i ) { + return m_acc->find( m_ids[i] ); +} #endif |