summaryrefslogtreecommitdiff
path: root/libopie/pim/orecordlist.h
Unidiff
Diffstat (limited to 'libopie/pim/orecordlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/orecordlist.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/libopie/pim/orecordlist.h b/libopie/pim/orecordlist.h
new file mode 100644
index 0000000..c17186f
--- a/dev/null
+++ b/libopie/pim/orecordlist.h
@@ -0,0 +1,44 @@
1
2#ifndef OPIE_RECORD_LIST_H
3#define OPIE_RECORD_LIST_H
4
5#include <opie/opimaccesstemplate.h>
6#include <opie/opimrecord.h>
7
8template <class T = OPimRecord >
9class ORecordList {
10public:
11 class Iterator {
12 friend class ORecordList;
13 public:
14 Iterator() {}
15 ~Iterator() {}
16 Iterator(const Iterator& ) {}
17 Iterator &operator=(const Iterator& );
18 T &operator*() {}
19 Iterator &operator++();
20
21 bool operator==( const Iterator& it );
22 bool operator!=( const Iterator& it );
23
24 }
25 ORecordList( const QArray<int>& ids,
26 OPimAccessTemplate<T>* acc )
27 : m_ids(ids ), m_acc( acc ) {
28
29 }
30 ~ORecordList() {
31
32 }
33 Iterator begin();
34 Iterator end();
35 /*
36 ConstIterator begin()const;
37 ConstIterator end()const;
38 */
39private:
40 QArray<int> ids;
41 OPimAccessTemplate<T>* m_acc;
42};
43
44#endif