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

Opie::ODateBookAccessBackend Class Reference

#include </home/clem/local/src/opie/libopie2/opiepim/backend/odatebookaccessbackend.h>

Inheritance diagram for Opie::ODateBookAccessBackend:

Inheritance graph
[legend]
Collaboration diagram for Opie::ODateBookAccessBackend:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ODateBookAccessBackend ()
 ~ODateBookAccessBackend ()
virtual UIDArray rawRepeats () const =0
virtual UIDArray nonRepeats () const =0
virtual OPimEvent::ValueList directNonRepeats () const =0
virtual OPimEvent::ValueList directRawRepeats () const =0
virtual OPimBackendOccurrence::List effectiveNonRepeatingEvents (const QDate &from, const QDate &to) const
virtual OPimBackendOccurrence::List effectiveNonRepeatingEvents (const QDateTime &start) const
const uint querySettings () const
bool hasQuerySettings (uint querySettings) const
UIDArray queryByExample (const UIDArray &uidlist, const OPimEvent &, int settings, const QDateTime &d=QDateTime()) const
UIDArray sorted (const UIDArray &, bool asc, int, int, const QArray< int > &) const
OPimBackendOccurrence::List occurrences (const QDate &, const QDate &end) const
OPimBackendOccurrence::List occurrences (const QDateTime &) const

Static Protected Member Functions

static OPimBackendOccurrence::List filterOccurrences (const OPimBackendOccurrence::List, const QDateTime &time)

Private Attributes

Private * d

Detailed Description

This class is the interface to the storage of Events.
See also:
OPimAccessBackend

Definition at line 43 of file odatebookaccessbackend.h.


Constructor & Destructor Documentation

Opie::ODateBookAccessBackend::ODateBookAccessBackend  ) 
 

c'tor without parameter

Definition at line 88 of file odatebookaccessbackend.cpp.

Opie::ODateBookAccessBackend::~ODateBookAccessBackend  ) 
 

Definition at line 93 of file odatebookaccessbackend.cpp.


Member Function Documentation

virtual OPimEvent::ValueList Opie::ODateBookAccessBackend::directNonRepeats  )  const [pure virtual]
 

If you do not want to implement the effectiveEvents methods below you need to supply it with directNonRepeats. This method can return empty lists if effectiveEvents is implememted

Implemented in Opie::ODateBookAccessBackend_SQL, and Opie::ODateBookAccessBackend_XML.

Referenced by effectiveNonRepeatingEvents(), and occurrences().

virtual OPimEvent::ValueList Opie::ODateBookAccessBackend::directRawRepeats  )  const [pure virtual]
 

Same as above but return raw repeats!

Implemented in Opie::ODateBookAccessBackend_SQL, and Opie::ODateBookAccessBackend_XML.

Referenced by occurrences().

OPimBackendOccurrence::List Opie::ODateBookAccessBackend::effectiveNonRepeatingEvents const QDateTime start  )  const [virtual]
 

this is an overloaded member function

See also:
effectiveNonRepeatingEvents( const QDate& from, const QDate& to )

Definition at line 124 of file odatebookaccessbackend.cpp.

References QDateTime::date(), effectiveNonRepeatingEvents(), and filterOccurrences().

OPimBackendOccurrence::List Opie::ODateBookAccessBackend::effectiveNonRepeatingEvents const QDate from,
const QDate to
const [virtual]
 

Effective Events are special event occuring during a time frame. This method does calcualte EffectiveEvents bases on the directNonRepeats and directRawRepeats. You may implement this method yourself

Definition at line 113 of file odatebookaccessbackend.cpp.

References directNonRepeats(), events(), and list.

Referenced by Opie::ODateBookAccess::effectiveNonRepeatingEvents(), and effectiveNonRepeatingEvents().

OPimBackendOccurrence::List Opie::ODateBookAccessBackend::filterOccurrences const OPimBackendOccurrence::List  ,
const QDateTime time
[static, protected]
 

Definition at line 203 of file odatebookaccessbackend.cpp.

References QValueList< T >::append(), QDateTime::date(), Opie::OPimBackendOccurrence::endDateTime(), Opie::OPimBackendOccurrence::startDateTime(), and QDateTime::time().

Referenced by effectiveNonRepeatingEvents(), and occurrences().

bool Opie::ODateBookAccessBackend::hasQuerySettings uint  querySettings  )  const [virtual]
 

Check whether settings are correct.

Returns:
true if the given settings are correct and possible.

Implements Opie::OPimAccessBackend< OPimEvent >.

Definition at line 135 of file odatebookaccessbackend.cpp.

virtual UIDArray Opie::ODateBookAccessBackend::nonRepeats  )  const [pure virtual]
 

This mthod should return a list of UIDs containing all non repeating events. No filter should be applied

Returns:
list of nonrepeating events

Implemented in Opie::ODateBookAccessBackend_SQL, and Opie::ODateBookAccessBackend_XML.

Referenced by Opie::ODateBookAccess::nonRepeats().

OPimBackendOccurrence::List Opie::ODateBookAccessBackend::occurrences const QDateTime  )  const [virtual]
 

Reimplemented from Opie::OPimAccessBackend< OPimEvent >.

Definition at line 106 of file odatebookaccessbackend.cpp.

References QDateTime::date(), filterOccurrences(), and occurrences().

OPimBackendOccurrence::List Opie::ODateBookAccessBackend::occurrences const QDate ,
const QDate end
const [virtual]
 

Reimplemented from Opie::OPimAccessBackend< OPimEvent >.

Definition at line 96 of file odatebookaccessbackend.cpp.

References directNonRepeats(), directRawRepeats(), events(), and repeat().

Referenced by occurrences().

UIDArray Opie::ODateBookAccessBackend::queryByExample const UIDArray uidlist,
const OPimEvent ,
int  settings,
const QDateTime d = QDateTime()
const [virtual]
 

Implements Opie::OPimAccessBackend< OPimEvent >.

Definition at line 142 of file odatebookaccessbackend.cpp.

References qDebug().

const uint Opie::ODateBookAccessBackend::querySettings  )  const [virtual]
 

Return all possible settings.

Returns:
All settings provided by the current backend (i.e.: query_WildCards & query_IgnoreCase)

Implements Opie::OPimAccessBackend< OPimEvent >.

Definition at line 130 of file odatebookaccessbackend.cpp.

virtual UIDArray Opie::ODateBookAccessBackend::rawRepeats  )  const [pure virtual]
 

This method should return a list of UIDs containing all repeating events. No filter should be applied

Returns:
list of repeating events

Implemented in Opie::ODateBookAccessBackend_SQL, and Opie::ODateBookAccessBackend_XML.

Referenced by Opie::ODateBookAccess::rawRepeats().

UIDArray Opie::ODateBookAccessBackend::sorted const UIDArray ,
bool  asc,
int  ,
int  ,
const QArray< int > & 
const [virtual]
 

Implements Opie::OPimAccessBackend< OPimEvent >.

Definition at line 149 of file odatebookaccessbackend.cpp.

References Qtopia::Record::categories(), Opie::OPimBase::FilterCategory, Opie::OPimAccessBackend< OPimEvent >::find(), i, Opie::Internal::OPimSortVector< T >::insert(), Opie::OPimRecord::isEmpty(), odebug, oendl, and Opie::Internal::OPimSortVector< T >::uidAt().


Member Data Documentation

Private* Opie::ODateBookAccessBackend::d [private]
 

Reimplemented from Opie::OPimAccessBackend< OPimEvent >.

Reimplemented in Opie::ODateBookAccessBackend_SQL, and Opie::ODateBookAccessBackend_XML.

Definition at line 120 of file odatebookaccessbackend.h.


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