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

ODateBookAccess Class Reference

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

Inheritance diagram for ODateBookAccess:

Inheritance graph
[legend]
Collaboration diagram for ODateBookAccess:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ODateBookAccess (ODateBookAccessBackend *=0l, enum Access acc=Random)
 ~ODateBookAccess ()
List rawEvents () const
List rawRepeats () const
List nonRepeats () const
OEffectiveEvent::ValueList effectiveEvents (const QDate &from, const QDate &to) const
OEffectiveEvent::ValueList effectiveEvents (const QDateTime &start) const
OEffectiveEvent::ValueList effectiveNonRepeatingEvents (const QDate &from, const QDate &to) const
OEffectiveEvent::ValueList effectiveNonRepeatingEvents (const QDateTime &start) const

Private Attributes

ODateBookAccessBackendm_backEnd
Private * d

Detailed Description

This is the object orientated datebook database. It'll use OBackendFactory to query for a backend. All access to the datebook should be done via this class. Make sure to load and save the datebook this is not part of destructing and creating the object

Author:
Holger Freyther, Stefan Eilers

Definition at line 18 of file odatebookaccess.h.


Constructor & Destructor Documentation

ODateBookAccess::ODateBookAccess ODateBookAccessBackend back = 0l,
enum Access  ac = Random
 

Simple constructor It takes a ODateBookAccessBackend as parent. If it is 0 the default implementation will be used!

Parameters:
back The backend to be used or 0 for the default backend
ac What kind of access is intended

Definition at line 11 of file odatebookaccess.cpp.

References OBackendFactory< T >::Default(), m_backEnd, QString::null, and OPimAccessTemplate< OEvent >::setBackEnd().

ODateBookAccess::~ODateBookAccess  ) 
 

Definition at line 20 of file odatebookaccess.cpp.


Member Function Documentation

OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents const QDateTime start  )  const
 

Returns:
all events at a given datetime

Definition at line 64 of file odatebookaccess.cpp.

References ODateBookAccessBackend::effectiveEvents(), and m_backEnd.

OEffectiveEvent::ValueList ODateBookAccess::effectiveEvents const QDate from,
const QDate to
const
 

Returns:
dates in the time span between from and to
Parameters:
from Include all events from...
to Include all events to...

Definition at line 58 of file odatebookaccess.cpp.

References ODateBookAccessBackend::effectiveEvents(), and m_backEnd.

Referenced by Datebook::BookManager::list().

OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents const QDateTime start  )  const
 

Returns:
all non repeating events at a given datetime

Definition at line 79 of file odatebookaccess.cpp.

References ODateBookAccessBackend::effectiveNonRepeatingEvents(), and m_backEnd.

OEffectiveEvent::ValueList ODateBookAccess::effectiveNonRepeatingEvents const QDate from,
const QDate to
const
 

Returns:
non repeating dates in the time span between from and to
Parameters:
from Include all events from...
to Include all events to...

Definition at line 73 of file odatebookaccess.cpp.

References ODateBookAccessBackend::effectiveNonRepeatingEvents(), and m_backEnd.

ODateBookAccess::List ODateBookAccess::nonRepeats  )  const
 

Returns:
all non repeating events

Definition at line 46 of file odatebookaccess.cpp.

References m_backEnd, and ODateBookAccessBackend::nonRepeats().

ODateBookAccess::List ODateBookAccess::rawEvents  )  const
 

Returns:
all events available

Definition at line 26 of file odatebookaccess.cpp.

References m_backEnd, and ODateBookAccessBackend::rawEvents().

Referenced by Datebook::BookManager::allRecords().

ODateBookAccess::List ODateBookAccess::rawRepeats  )  const
 

Returns:
all repeating events

Definition at line 36 of file odatebookaccess.cpp.

References m_backEnd, and ODateBookAccessBackend::rawRepeats().


Member Data Documentation

Private* ODateBookAccess::d [private]
 

Reimplemented from OPimAccessTemplate< OEvent >.

Definition at line 40 of file odatebookaccess.h.

ODateBookAccessBackend* ODateBookAccess::m_backEnd [private]
 

Reimplemented from OPimAccessTemplate< OEvent >.

Definition at line 39 of file odatebookaccess.h.

Referenced by effectiveEvents(), effectiveNonRepeatingEvents(), Opie::ODateBookAccess::effectiveNonRepeatingEvents(), nonRepeats(), Opie::ODateBookAccess::nonRepeats(), ODateBookAccess(), rawEvents(), rawRepeats(), and Opie::ODateBookAccess::rawRepeats().


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