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

ODateBookAccessBackend Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/odatebookaccessbackend.h>

Inheritance diagram for ODateBookAccessBackend:

Inheritance graph
[legend]
Collaboration diagram for ODateBookAccessBackend:

Collaboration graph
[legend]
List of all members.

Public Types

typedef int UID

Public Member Functions

 ODateBookAccessBackend ()
 ~ODateBookAccessBackend ()
virtual QArray< UIDrawEvents () const =0
virtual QArray< UIDrawRepeats () const =0
virtual QArray< UIDnonRepeats () const =0
virtual OEvent::ValueList directNonRepeats ()=0
virtual OEvent::ValueList directRawRepeats ()=0
virtual OEffectiveEvent::ValueList effectiveEvents (const QDate &from, const QDate &to)
virtual OEffectiveEvent::ValueList effectiveEvents (const QDateTime &start)
virtual OEffectiveEvent::ValueList effectiveNonRepeatingEvents (const QDate &from, const QDate &to)
virtual OEffectiveEvent::ValueList effectiveNonRepeatingEvents (const QDateTime &start)

Private Attributes

Private * d

Detailed Description

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

Definition at line 14 of file odatebookaccessbackend.h.


Member Typedef Documentation

typedef int ODateBookAccessBackend::UID
 

Definition at line 16 of file odatebookaccessbackend.h.


Constructor & Destructor Documentation

ODateBookAccessBackend::ODateBookAccessBackend  ) 
 

c'tor without parameter

Definition at line 122 of file odatebookaccessbackend.cpp.

ODateBookAccessBackend::~ODateBookAccessBackend  ) 
 

Definition at line 127 of file odatebookaccessbackend.cpp.


Member Function Documentation

virtual OEvent::ValueList ODateBookAccessBackend::directNonRepeats  )  [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 ODateBookAccessBackend_SQL, and ODateBookAccessBackend_XML.

Referenced by effectiveEvents(), and effectiveNonRepeatingEvents().

virtual OEvent::ValueList ODateBookAccessBackend::directRawRepeats  )  [pure virtual]
 

Same as above but return raw repeats!

Implemented in ODateBookAccessBackend_SQL, and ODateBookAccessBackend_XML.

Referenced by effectiveEvents().

OEffectiveEvent::ValueList ODateBookAccessBackend::effectiveEvents const QDateTime start  )  [virtual]
 

this is an overloaded member function

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

Definition at line 143 of file odatebookaccessbackend.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QDateTime::date(), effectiveEvents(), QValueList< T >::end(), and QDateTime::secsTo().

OEffectiveEvent::ValueList ODateBookAccessBackend::effectiveEvents const QDate from,
const QDate to
[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 130 of file odatebookaccessbackend.cpp.

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

Referenced by ODateBookAccess::effectiveEvents(), and effectiveEvents().

OEffectiveEvent::ValueList ODateBookAccessBackend::effectiveNonRepeatingEvents const QDateTime start  )  [virtual]
 

this is an overloaded member function

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

Definition at line 169 of file odatebookaccessbackend.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QDateTime::date(), effectiveNonRepeatingEvents(), QValueList< T >::end(), and QDateTime::secsTo().

OEffectiveEvent::ValueList ODateBookAccessBackend::effectiveNonRepeatingEvents const QDate from,
const QDate to
[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 158 of file odatebookaccessbackend.cpp.

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

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

virtual QArray<UID> 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 ODateBookAccessBackend_SQL, and ODateBookAccessBackend_XML.

Referenced by ODateBookAccess::nonRepeats().

virtual QArray<UID> ODateBookAccessBackend::rawEvents  )  const [pure virtual]
 

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

Returns:
list of events

Implemented in ODateBookAccessBackend_SQL, and ODateBookAccessBackend_XML.

Referenced by ODateBookAccess::rawEvents().

virtual QArray<UID> 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 ODateBookAccessBackend_SQL, and ODateBookAccessBackend_XML.

Referenced by ODateBookAccess::rawRepeats().


Member Data Documentation

Private* ODateBookAccessBackend::d [private]
 

Reimplemented from OPimAccessBackend< OEvent >.

Reimplemented in ODateBookAccessBackend_SQL, and ODateBookAccessBackend_XML.

Definition at line 85 of file odatebookaccessbackend.h.


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