author | eilers <eilers> | 2002-10-14 15:55:18 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-14 15:55:18 (UTC) |
commit | 16caa7343f4190a31bd80a9caa76118d7177ad3f (patch) (side-by-side diff) | |
tree | 0f1e71fbe2be969c2620b88e645ad12174b887ef | |
parent | 17e4897122da8089fadb05496d09fb196919f674 (diff) | |
download | opie-16caa7343f4190a31bd80a9caa76118d7177ad3f.zip opie-16caa7343f4190a31bd80a9caa76118d7177ad3f.tar.gz opie-16caa7343f4190a31bd80a9caa76118d7177ad3f.tar.bz2 |
Redeactivate SQL.. ;)
-rw-r--r-- | libopie/pim/obackendfactory.h | 14 | ||||
-rw-r--r-- | libopie2/opiepim/backend/obackendfactory.h | 14 |
2 files changed, 18 insertions, 10 deletions
diff --git a/libopie/pim/obackendfactory.h b/libopie/pim/obackendfactory.h index 89b8c58..b796fb8 100644 --- a/libopie/pim/obackendfactory.h +++ b/libopie/pim/obackendfactory.h @@ -15,8 +15,11 @@ * Version: $Id$ * ===================================================================== * History: * $Log$ + * Revision 1.4 2002/10/14 15:55:18 eilers + * Redeactivate SQL.. ;) + * * Revision 1.3 2002/10/10 17:08:58 zecke * The Cache is finally in place * I tested it with my todolist and it 'works' for 10.000 todos the hits are awesome ;) * The read ahead functionality does not make sense for XMLs backends because most of the stuff is already in memory. While using readahead on SQL makes things a lot faster.... @@ -44,12 +47,12 @@ #include "otodoaccessxml.h" #include "ocontactaccessbackend_xml.h" -/*#ifdef __USE_SQL +#ifdef __USE_SQL #include "otodoaccesssql.h" #endif -*/ + template<class T> class OBackendFactory { @@ -63,8 +66,9 @@ class OBackendFactory }; static T* Default( const QString backendName, const QString& appName ){ + // __asm__("int3"); Config config( "pimaccess" ); config.setGroup ( backendName ); QString backend = config.readEntry( "usebackend" ); @@ -79,15 +83,15 @@ class OBackendFactory qWarning ("CONTACT is: %d", CONTACT); switch ( *dict.take( backendName ) ){ case TODO: -/*#ifdef __USE_SQL +#ifdef __USE_SQL if ( backend == "sql" ) return (T*) new OTodoAccessBackendSQL(""); -#else*/ +#else if ( backend == "sql" ) qWarning ("OBackendFactory:: sql Backend not implemented! Using XML instead!"); -//#endif +#endif return (T*) new OTodoAccessXML( appName ); case CONTACT: if ( backend == "sql" ) diff --git a/libopie2/opiepim/backend/obackendfactory.h b/libopie2/opiepim/backend/obackendfactory.h index 89b8c58..b796fb8 100644 --- a/libopie2/opiepim/backend/obackendfactory.h +++ b/libopie2/opiepim/backend/obackendfactory.h @@ -15,8 +15,11 @@ * Version: $Id$ * ===================================================================== * History: * $Log$ + * Revision 1.4 2002/10/14 15:55:18 eilers + * Redeactivate SQL.. ;) + * * Revision 1.3 2002/10/10 17:08:58 zecke * The Cache is finally in place * I tested it with my todolist and it 'works' for 10.000 todos the hits are awesome ;) * The read ahead functionality does not make sense for XMLs backends because most of the stuff is already in memory. While using readahead on SQL makes things a lot faster.... @@ -44,12 +47,12 @@ #include "otodoaccessxml.h" #include "ocontactaccessbackend_xml.h" -/*#ifdef __USE_SQL +#ifdef __USE_SQL #include "otodoaccesssql.h" #endif -*/ + template<class T> class OBackendFactory { @@ -63,8 +66,9 @@ class OBackendFactory }; static T* Default( const QString backendName, const QString& appName ){ + // __asm__("int3"); Config config( "pimaccess" ); config.setGroup ( backendName ); QString backend = config.readEntry( "usebackend" ); @@ -79,15 +83,15 @@ class OBackendFactory qWarning ("CONTACT is: %d", CONTACT); switch ( *dict.take( backendName ) ){ case TODO: -/*#ifdef __USE_SQL +#ifdef __USE_SQL if ( backend == "sql" ) return (T*) new OTodoAccessBackendSQL(""); -#else*/ +#else if ( backend == "sql" ) qWarning ("OBackendFactory:: sql Backend not implemented! Using XML instead!"); -//#endif +#endif return (T*) new OTodoAccessXML( appName ); case CONTACT: if ( backend == "sql" ) |