summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/orecordlist.h
authorzecke <zecke>2002-09-23 21:38:23 (UTC)
committer zecke <zecke>2002-09-23 21:38:23 (UTC)
commite0b04701b3c9182ba22f56e329f98c57af4e1fe2 (patch) (unidiff)
treed5fa6fbae48d61aca7fefc09375fdcaf99ef4cb5 /libopie2/opiepim/orecordlist.h
parent47e87e10fada298a1027cf20d4d7f31a66dc1359 (diff)
downloadopie-e0b04701b3c9182ba22f56e329f98c57af4e1fe2.zip
opie-e0b04701b3c9182ba22f56e329f98c57af4e1fe2.tar.gz
opie-e0b04701b3c9182ba22f56e329f98c57af4e1fe2.tar.bz2
Updates
Diffstat (limited to 'libopie2/opiepim/orecordlist.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiepim/orecordlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiepim/orecordlist.h b/libopie2/opiepim/orecordlist.h
index 36728b8..1795938 100644
--- a/libopie2/opiepim/orecordlist.h
+++ b/libopie2/opiepim/orecordlist.h
@@ -50,48 +50,50 @@ public:
50private: 50private:
51 QArray<int> m_uids; 51 QArray<int> m_uids;
52 int m_current; 52 int m_current;
53 const Base* m_temp; 53 const Base* m_temp;
54 bool m_end : 1; 54 bool m_end : 1;
55 T m_record; 55 T m_record;
56 56
57 /* d pointer for future versions */ 57 /* d pointer for future versions */
58 class IteratorPrivate; 58 class IteratorPrivate;
59 IteratorPrivate *d; 59 IteratorPrivate *d;
60}; 60};
61/** 61/**
62 * The recordlist used as a return type 62 * The recordlist used as a return type
63 * from OPimAccessTemplate 63 * from OPimAccessTemplate
64 */ 64 */
65template <class T = OPimRecord > 65template <class T = OPimRecord >
66class ORecordList { 66class ORecordList {
67public: 67public:
68 typedef OTemplateBase<T> Base; 68 typedef OTemplateBase<T> Base;
69 typedef ORecordListIterator<T> Iterator; 69 typedef ORecordListIterator<T> Iterator;
70 70
71 /** 71 /**
72 * c'tor 72 * c'tor
73 */ 73 */
74 ORecordList () {
75 }
74 ORecordList( const QArray<int>& ids, 76 ORecordList( const QArray<int>& ids,
75 const Base* ); 77 const Base* );
76 ~ORecordList(); 78 ~ORecordList();
77 79
78 /** 80 /**
79 * the first iterator 81 * the first iterator
80 */ 82 */
81 Iterator begin(); 83 Iterator begin();
82 84
83 /** 85 /**
84 * the end 86 * the end
85 */ 87 */
86 Iterator end(); 88 Iterator end();
87 /* 89 /*
88 ConstIterator begin()const; 90 ConstIterator begin()const;
89 ConstIterator end()const; 91 ConstIterator end()const;
90 */ 92 */
91private: 93private:
92 QArray<int> m_ids; 94 QArray<int> m_ids;
93 const Base* m_acc; 95 const Base* m_acc;
94}; 96};
95 97
96/* ok now implement it */ 98/* ok now implement it */
97template <class T> 99template <class T>