OBackendFactory< T > Class Template Reference
This class is our factory. More...
#include <obackendfactory.h>
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
|
|||||
|
Definition at line 121 of file obackendfactory.h. |
Constructor & Destructor Documentation
|
|||||||||
|
Definition at line 119 of file obackendfactory.h. |
Member Function Documentation
|
||||||||||||||||
|
Returns a backend implementation for backendName.
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:
