summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/orecordlist.h
blob: c17186fb880893c6de948fc91b0d936ff9d3e72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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