From 0981af024243b314b45ddaf3ebee08bc184f06e2 Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 07 Oct 2002 17:34:24 +0000 Subject: added OBackendFactory for advanced backend access --- (limited to 'libopie2/opiepim/core/ocontactaccess.cpp') diff --git a/libopie2/opiepim/core/ocontactaccess.cpp b/libopie2/opiepim/core/ocontactaccess.cpp index 8a8ff08..b5f358b 100644 --- a/libopie2/opiepim/core/ocontactaccess.cpp +++ b/libopie2/opiepim/core/ocontactaccess.cpp @@ -21,6 +21,9 @@ * ===================================================================== * History: * $Log$ + * Revision 1.3 2002/10/07 17:34:24 eilers + * added OBackendFactory for advanced backend access + * * Revision 1.2 2002/10/02 16:18:11 eilers * debugged and seems to work almost perfectly .. * @@ -34,6 +37,7 @@ */ #include "ocontactaccess.h" +#include "obackendfactory.h" #include #include @@ -53,7 +57,7 @@ #include "ocontactaccessbackend_xml.h" -OContactAccess::OContactAccess ( const QString appname, const QString filename, +OContactAccess::OContactAccess ( const QString appname, const QString , OContactAccessBackend* end, bool autosync ): OPimAccessTemplate( end ), m_changed ( false ) @@ -62,7 +66,9 @@ OContactAccess::OContactAccess ( const QString appname, const QString filename, * will use the XML-Backend as default (until we have a cute SQL-Backend..). */ if( end == 0 ) { - end = new OContactAccessBackend_XML( appname, filename ); + // __asm__("int3"); + qWarning ("Using BackendFactory !"); + end = OBackendFactory::Default( "contact", appname ); } // Set backend locally and in template m_backEnd = end; -- cgit v0.9.0.2