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

Datebook::BookManager Class Reference

#include </home/clem/local/src/opie/core/pim/datebook2/bookmanager.h>

Collaboration diagram for Datebook::BookManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BookManager ()
 ~BookManager ()
bool isLoaded () const
bool load ()
void reload ()
bool save ()
OEvent event (int uid)
OEffectiveEvent::ValueList list (const QDate &from, const QDate &to)
ODateBookAccess::List allRecords () const
void add (const OEvent &)
void add (const OPimRecord &)
void update (const OEvent &)
void remove (int uid)
void remove (const QArray< int > &)
QList< OPimRecordrecords (const QDate &from, const QDate &to)

Private Attributes

ODateBookAccessm_db

Detailed Description

book manager is responsible for managing the access All access to the underlying API will be done through this class

Definition at line 16 of file bookmanager.h.


Constructor & Destructor Documentation

BookManager::BookManager  ) 
 

Definition at line 5 of file bookmanager.cpp.

References m_db.

BookManager::~BookManager  ) 
 

Definition at line 8 of file bookmanager.cpp.

References m_db.


Member Function Documentation

void BookManager::add const OPimRecord  ) 
 

Definition at line 16 of file bookmanager.cpp.

References OPimAccessTemplate< T >::add(), load(), and m_db.

void BookManager::add const OEvent  ) 
 

Definition at line 11 of file bookmanager.cpp.

References OPimAccessTemplate< T >::add(), and m_db.

ODateBookAccess::List BookManager::allRecords  )  const
 

Definition at line 53 of file bookmanager.cpp.

References m_db, and ODateBookAccess::rawEvents().

OEvent BookManager::event int  uid  ) 
 

Definition at line 48 of file bookmanager.cpp.

References OPimAccessTemplate< T >::find(), and m_db.

bool BookManager::isLoaded  )  const
 

Definition at line 36 of file bookmanager.cpp.

References m_db.

OEffectiveEvent::ValueList BookManager::list const QDate from,
const QDate to
 

Definition at line 58 of file bookmanager.cpp.

References ODateBookAccess::effectiveEvents(), and m_db.

bool BookManager::load  ) 
 

Definition at line 39 of file bookmanager.cpp.

References OPimAccessTemplate< T >::load(), and m_db.

Referenced by add().

QList< OPimRecord > BookManager::records const QDate from,
const QDate to
 

Definition at line 33 of file bookmanager.cpp.

void BookManager::reload  ) 
 

Definition at line 43 of file bookmanager.cpp.

References m_db, and OPimAccessTemplate< T >::reload().

void BookManager::remove const QArray< int > &   ) 
 

Definition at line 28 of file bookmanager.cpp.

References i, and remove().

void BookManager::remove int  uid  ) 
 

Definition at line 24 of file bookmanager.cpp.

References m_db, and OPimAccessTemplate< T >::remove().

Referenced by remove().

bool BookManager::save  ) 
 

Definition at line 64 of file bookmanager.cpp.

References m_db, and OPimAccessTemplate< T >::save().

void BookManager::update const OEvent  ) 
 

Definition at line 20 of file bookmanager.cpp.

References m_db, and OPimAccessTemplate< T >::replace().


Member Data Documentation

ODateBookAccess* Datebook::BookManager::m_db [private]
 

Definition at line 41 of file bookmanager.h.

Referenced by add(), allRecords(), BookManager(), event(), isLoaded(), list(), load(), reload(), remove(), save(), update(), and ~BookManager().


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