summaryrefslogtreecommitdiff
path: root/libopie/pim/orecordlist.h
authorzecke <zecke>2002-09-22 22:21:51 (UTC)
committer zecke <zecke>2002-09-22 22:21:51 (UTC)
commite49230a12104b718c46a34c81b6c0e608c9d40be (patch) (side-by-side diff)
tree4ef2e58c366a8cf7c4abe04838e255b38613fbcb /libopie/pim/orecordlist.h
parent3049d9418b882283814ca71baa98420b2a6745db (diff)
downloadopie-e49230a12104b718c46a34c81b6c0e608c9d40be.zip
opie-e49230a12104b718c46a34c81b6c0e608c9d40be.tar.gz
opie-e49230a12104b718c46a34c81b6c0e608c9d40be.tar.bz2
Add XML resources for todolist and compile fixes for RecordList
Diffstat (limited to 'libopie/pim/orecordlist.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/orecordlist.h29
1 files changed, 18 insertions, 11 deletions
diff --git a/libopie/pim/orecordlist.h b/libopie/pim/orecordlist.h
index 3b30a73..75bb33c 100644
--- a/libopie/pim/orecordlist.h
+++ b/libopie/pim/orecordlist.h
@@ -16,7 +16,9 @@
*/
+template <class T> class ORecordList;
template <class T = OPimRecord>
class ORecordListIterator {
+ friend class ORecordList<T>;
public:
typedef OTemplateBase<T> Base;
-
+
/**
@@ -26,3 +28,3 @@ public:
ORecordListIterator( const QArray<int>, const Base* );
-
+
/**
@@ -32,8 +34,8 @@ public:
~ORecordListIterator();
-
+
ORecordListIterator( const ORecordListIterator& );
ORecordListIterator &operator=(const ORecordListIterator& );
-
+
/**
- * a * operator ;)
+ * a * operator ;)
* use it like this T = (*it);
@@ -61,3 +63,3 @@ private:
* from OPimAccessTemplate
- */
+ */
template <class T = OPimRecord >
@@ -67,4 +69,4 @@ public:
typedef ORecordListIterator<T> Iterator;
-
- /**
+
+ /**
* c'tor
@@ -74,3 +76,3 @@ public:
~ORecordList();
-
+
/**
@@ -79,3 +81,3 @@ public:
Iterator begin();
-
+
/**
@@ -107,2 +109,3 @@ template <class T>
ORecordListIterator<T>::ORecordListIterator( const ORecordListIterator<T>& it) {
+ qWarning("ORecordListIterator");
m_uids = it.m_uids;
@@ -127,2 +130,3 @@ template <class T>
T &ORecordListIterator<T>::operator*() {
+ qWarning("operator* %d %d", m_current, m_uids[m_current] );
if (!m_end )
@@ -137,3 +141,3 @@ template <class T>
ORecordListIterator<T> &ORecordListIterator<T>::operator++() {
- if (m_current < m_uids.count() ) {
+ if (m_current < (int)m_uids.count() ) {
m_end = false;
@@ -191,2 +195,3 @@ template <class T>
ORecordList<T>::Iterator ORecordList<T>::begin() {
+ qWarning("ORecordList::begin");
Iterator it( m_ids, m_acc );
@@ -199,2 +204,4 @@ ORecordList<T>::Iterator ORecordList<T>::end() {
it.m_current = m_ids.count();
+
+ return it;
}