summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/orecordlist.h
Side-by-side diff
Diffstat (limited to 'libopie2/opiepim/orecordlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/orecordlist.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/libopie2/opiepim/orecordlist.h b/libopie2/opiepim/orecordlist.h
new file mode 100644
index 0000000..c17186f
--- a/dev/null
+++ b/libopie2/opiepim/orecordlist.h
@@ -0,0 +1,44 @@
+
+#ifndef OPIE_RECORD_LIST_H
+#define OPIE_RECORD_LIST_H
+
+#include <opie/opimaccesstemplate.h>
+#include <opie/opimrecord.h>
+
+template <class T = OPimRecord >
+class ORecordList {
+public:
+ class Iterator {
+ friend class ORecordList;
+ public:
+ Iterator() {}
+ ~Iterator() {}
+ Iterator(const Iterator& ) {}
+ Iterator &operator=(const Iterator& );
+ T &operator*() {}
+ Iterator &operator++();
+
+ bool operator==( const Iterator& it );
+ bool operator!=( const Iterator& it );
+
+ }
+ ORecordList( const QArray<int>& ids,
+ OPimAccessTemplate<T>* acc )
+ : m_ids(ids ), m_acc( acc ) {
+
+ }
+ ~ORecordList() {
+
+ }
+ Iterator begin();
+ Iterator end();
+ /*
+ ConstIterator begin()const;
+ ConstIterator end()const;
+ */
+private:
+ QArray<int> ids;
+ OPimAccessTemplate<T>* m_acc;
+};
+
+#endif