Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::OPimRecordList< T > Class Template Reference

#include </home/clem/local/src/opie/libopie2/opiepim/core/opimrecordlist.h>

List of all members.

Public Types

typedef OTemplateBase< T > Base
typedef OPimRecordListIterator<
T > 
Iterator

Public Member Functions

 OPimRecordList ()
 OPimRecordList (const QArray< int > &ids, const Base *)
 ~OPimRecordList ()
Iterator begin ()
Iterator end ()
uint count () const
operator[] (uint i)
int uidAt (uint i)
bool remove (int uid)

Protected Member Functions

UIDArray uids () const

Private Attributes

QArray< int > m_ids
const Basem_acc
OPimRecordListPrivate * d

Friends

class OPimAccessTemplate


Detailed Description

template<class T = OPimRecord>
class Opie::OPimRecordList< T >

The recordlist used as a return type from OPimAccessTemplate

Definition at line 122 of file opimrecordlist.h.


Member Typedef Documentation

template<class T = OPimRecord>
typedef OTemplateBase<T> Opie::OPimRecordList< T >::Base
 

Definition at line 126 of file opimrecordlist.h.

template<class T = OPimRecord>
typedef OPimRecordListIterator<T> Opie::OPimRecordList< T >::Iterator
 

Definition at line 127 of file opimrecordlist.h.


Constructor & Destructor Documentation

template<class T = OPimRecord>
Opie::OPimRecordList< T >::OPimRecordList  )  [inline]
 

c'tor

Definition at line 132 of file opimrecordlist.h.

template<class T>
Opie::OPimRecordList< T >::OPimRecordList const QArray< int > &  ids,
const Base
 

Definition at line 323 of file opimrecordlist.h.

template<class T>
Opie::OPimRecordList< T >::~OPimRecordList  ) 
 

Definition at line 330 of file opimrecordlist.h.


Member Function Documentation

template<class T>
OPimRecordList< T >::Iterator Opie::OPimRecordList< T >::begin  ) 
 

the first iterator

Definition at line 337 of file opimrecordlist.h.

References Opie::OPimRecordList< T >::m_acc, and Opie::OPimRecordList< T >::m_ids.

template<class T>
uint Opie::OPimRecordList< T >::count  )  const
 

the number of items in the list

Definition at line 356 of file opimrecordlist.h.

References Opie::OPimRecordList< T >::m_ids.

Referenced by TodoSearch::search(), DatebookSearch::search(), and AdressSearch::search().

template<class T>
OPimRecordList< T >::Iterator Opie::OPimRecordList< T >::end  ) 
 

the end

Definition at line 345 of file opimrecordlist.h.

References Opie::OPimRecordList< T >::m_acc, Opie::OPimRecordListIterator< T >::m_current, Opie::OPimRecordListIterator< T >::m_end, and Opie::OPimRecordList< T >::m_ids.

template<class T>
T Opie::OPimRecordList< T >::operator[] uint  i  ) 
 

Definition at line 363 of file opimrecordlist.h.

References Opie::OTemplateBase< T >::find(), Opie::OPimRecordList< T >::m_acc, and Opie::OPimRecordList< T >::m_ids.

template<class T>
bool Opie::OPimRecordList< T >::remove int  uid  ) 
 

Remove the contact with given uid

Definition at line 380 of file opimrecordlist.h.

References i, and Opie::OPimRecordList< T >::m_ids.

template<class T>
int Opie::OPimRecordList< T >::uidAt uint  i  ) 
 

Definition at line 373 of file opimrecordlist.h.

References Opie::OPimRecordList< T >::m_ids.

template<class T>
UIDArray Opie::OPimRecordList< T >::uids  )  const [protected]
 

Definition at line 405 of file opimrecordlist.h.

References Opie::OPimRecordList< T >::m_ids.

Referenced by Opie::OPimAccessTemplate< T >::queryByExample(), and Opie::OPimAccessTemplate< T >::sorted().


Friends And Related Function Documentation

template<class T = OPimRecord>
friend class OPimAccessTemplate [friend]
 

Definition at line 124 of file opimrecordlist.h.


Member Data Documentation

template<class T = OPimRecord>
OPimRecordListPrivate* Opie::OPimRecordList< T >::d [private]
 

Definition at line 170 of file opimrecordlist.h.

template<class T = OPimRecord>
const Base* Opie::OPimRecordList< T >::m_acc [private]
 

Definition at line 169 of file opimrecordlist.h.

Referenced by Opie::OPimRecordList< T >::begin(), Opie::OPimRecordList< T >::end(), and Opie::OPimRecordList< T >::operator[]().

template<class T = OPimRecord>
QArray<int> Opie::OPimRecordList< T >::m_ids [private]
 

Definition at line 168 of file opimrecordlist.h.

Referenced by Opie::OPimRecordList< T >::begin(), Opie::OPimRecordList< T >::count(), Opie::OPimRecordList< T >::end(), Opie::OPimRecordList< T >::operator[](), Opie::OPimRecordList< T >::remove(), Opie::OPimRecordList< T >::uidAt(), and Opie::OPimRecordList< T >::uids().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:59:55 2005 for OPIE by  doxygen 1.4.2