libopie PIM API Documentation

OBackendFactory< T > Class Template Reference

This class is our factory. More...

#include <obackendfactory.h>

List of all members.

Public Types

enum  BACKENDS { TODO, CONTACT, DATE }

Public Member Functions

 OBackendFactory ()

Static Public Member Functions

T * Default (const QString backendName, const QString &appName)
 Returns a backend implementation for backendName.


Detailed Description

template<class T>
class OBackendFactory< T >

This class is our factory.

It will give us the default implementations of at least Todolist, Contacts and Datebook. In the future this class will allow users to switch the backend with ( XML->SQLite ) without the need to recompile.# This class as the whole PIM Api is making use of templates

OTodoAccessBackend* backend = OBackEndFactory<OTodoAccessBackend>::Default("todo", QString::null ); backend->load();

Author:
Stefan Eilers
Version:
0.1

Definition at line 116 of file obackendfactory.h.


Member Enumeration Documentation

template<class T>
enum OBackendFactory::BACKENDS
 

Enumeration values:
TODO 
CONTACT 
DATE 

Definition at line 121 of file obackendfactory.h.


Constructor & Destructor Documentation

template<class T>
OBackendFactory< T >::OBackendFactory  )  [inline]
 

Definition at line 119 of file obackendfactory.h.


Member Function Documentation

template<class T>
T* OBackendFactory< T >::Default const QString  backendName,
const QString appName
[inline, static]
 

Returns a backend implementation for backendName.

Parameters:
backendName the type of the backend
appName will be passed on to the backend

Definition at line 132 of file obackendfactory.h.

References OBackendFactory< T >::CONTACT, OBackendFactory< T >::DATE, QAsciiDict::insert(), QString::latin1(), Config::readEntry(), QCollection::setAutoDelete(), Config::setGroup(), and OBackendFactory< T >::TODO.

Referenced by OContactAccess::OContactAccess(), ODateBookAccess::ODateBookAccess(), and OTodoAccess::OTodoAccess().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:01 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001