summaryrefslogtreecommitdiff
path: root/libopie/pim/orecordlist.h
authorzecke <zecke>2002-09-25 11:59:24 (UTC)
committer zecke <zecke>2002-09-25 11:59:24 (UTC)
commit38240090027bd68d8dd15d7d46ecf17792edb732 (patch) (side-by-side diff)
tree589ef486d7169c57592ed8667f6c84d43f882d48 /libopie/pim/orecordlist.h
parent5f2dd0a2340914b4983ebce3813187034e2cb9dc (diff)
downloadopie-38240090027bd68d8dd15d7d46ecf17792edb732.zip
opie-38240090027bd68d8dd15d7d46ecf17792edb732.tar.gz
opie-38240090027bd68d8dd15d7d46ecf17792edb732.tar.bz2
Add a sort function and filter function to TodoAccess
This would allow us todo a paint hack in QTable
Diffstat (limited to 'libopie/pim/orecordlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/orecordlist.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/libopie/pim/orecordlist.h b/libopie/pim/orecordlist.h
index c63d813..1fd0741 100644
--- a/libopie/pim/orecordlist.h
+++ b/libopie/pim/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