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

Opie::ODateBookAccess Class Reference

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

Inheritance diagram for Opie::ODateBookAccess:

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

Collaboration graph
[legend]
List of all members.

Public Types

enum  SortFilter
enum  SortOrder {
  SortDescription = SortCustom, SortLocation, SortNote, SortStartTime,
  SortEndTime, SortStartDate, SortEndDate, SortStartDateTime,
  SortEndDateTime, SortAlarmDateTime
}

Public Member Functions

 ODateBookAccess (ODateBookAccessBackend *=0l, enum Access acc=Random)
 ~ODateBookAccess ()
List rawRepeats () const
List nonRepeats () const
OPimOccurrence::List effectiveNonRepeatingEvents (const QDate &from, const QDate &to) const
OPimOccurrence::List effectiveNonRepeatingEvents (const QDateTime &start) const
int rtti () 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 47 of file odatebookaccess.h.


Member Enumeration Documentation

enum Opie::ODateBookAccess::SortFilter
 

Filter for sorted()

See also:
SortFilterBase in OPimBase

Definition at line 53 of file odatebookaccess.h.

enum Opie::ODateBookAccess::SortOrder
 

Sort order for sorted()

See also:
SortOrderBase in OPimBase
Enumeration values:
SortDescription 
SortLocation 
SortNote 
SortStartTime 
SortEndTime 
SortStartDate 
SortEndDate 
SortStartDateTime 
SortEndDateTime 
SortAlarmDateTime 

Definition at line 61 of file odatebookaccess.h.


Constructor & Destructor Documentation

Opie::ODateBookAccess::ODateBookAccess ODateBookAccessBackend back = 0l,
enum Access  acc = 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 42 of file odatebookaccess.cpp.

References m_backEnd, QString::null, and Opie::OPimAccessTemplate< OPimEvent >::setBackEnd().

Opie::ODateBookAccess::~ODateBookAccess  ) 
 

Definition at line 51 of file odatebookaccess.cpp.


Member Function Documentation

OPimOccurrence::List Opie::ODateBookAccess::effectiveNonRepeatingEvents const QDateTime start  )  const
 

Returns:
all non repeating events at a given datetime

Definition at line 86 of file odatebookaccess.cpp.

References Opie::ODateBookAccessBackend::effectiveNonRepeatingEvents(), and ODateBookAccess::m_backEnd.

OPimOccurrence::List Opie::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 80 of file odatebookaccess.cpp.

References Opie::ODateBookAccessBackend::effectiveNonRepeatingEvents(), and ODateBookAccess::m_backEnd.

ODateBookAccess::List Opie::ODateBookAccess::nonRepeats  )  const
 

Returns:
all non repeating events

Definition at line 68 of file odatebookaccess.cpp.

References ODateBookAccess::m_backEnd, and Opie::ODateBookAccessBackend::nonRepeats().

ODateBookAccess::List Opie::ODateBookAccess::rawRepeats  )  const
 

Returns:
all repeating events

Definition at line 58 of file odatebookaccess.cpp.

References ODateBookAccess::m_backEnd, and Opie::ODateBookAccessBackend::rawRepeats().

int Opie::ODateBookAccess::rtti  )  const [virtual]
 

Return identification of used records

Implements Opie::OPimBase.

Definition at line 90 of file odatebookaccess.cpp.

References OPimResolver::DateBook.


Member Data Documentation

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

Reimplemented from Opie::OPimAccessTemplate< OPimEvent >.

Definition at line 95 of file odatebookaccess.h.

ODateBookAccessBackend* Opie::ODateBookAccess::m_backEnd [private]
 

Reimplemented from Opie::OPimAccessTemplate< OPimEvent >.

Definition at line 94 of file odatebookaccess.h.

Referenced by ODateBookAccess().


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