summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/pim/obackendfactory.h14
-rw-r--r--libopie2/opiepim/backend/obackendfactory.h14
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
@@ -16,6 +16,9 @@
16 * ===================================================================== 16 * =====================================================================
17 * History: 17 * History:
18 * $Log$ 18 * $Log$
19 * Revision 1.4 2002/10/14 15:55:18 eilers
20 * Redeactivate SQL.. ;)
21 *
19 * Revision 1.3 2002/10/10 17:08:58 zecke 22 * Revision 1.3 2002/10/10 17:08:58 zecke
20 * The Cache is finally in place 23 * The Cache is finally in place
21 * I tested it with my todolist and it 'works' for 10.000 todos the hits are awesome ;) 24 * I tested it with my todolist and it 'works' for 10.000 todos the hits are awesome ;)
@@ -45,10 +48,10 @@
45#include "otodoaccessxml.h" 48#include "otodoaccessxml.h"
46#include "ocontactaccessbackend_xml.h" 49#include "ocontactaccessbackend_xml.h"
47 50
48/*#ifdef __USE_SQL 51#ifdef __USE_SQL
49#include "otodoaccesssql.h" 52#include "otodoaccesssql.h"
50#endif 53#endif
51*/ 54
52 55
53template<class T> 56template<class T>
54class OBackendFactory 57class OBackendFactory
@@ -64,6 +67,7 @@ class OBackendFactory
64 67
65 static T* Default( const QString backendName, const QString& appName ){ 68 static T* Default( const QString backendName, const QString& appName ){
66 69
70 // __asm__("int3");
67 71
68 Config config( "pimaccess" ); 72 Config config( "pimaccess" );
69 config.setGroup ( backendName ); 73 config.setGroup ( backendName );
@@ -80,13 +84,13 @@ class OBackendFactory
80 84
81 switch ( *dict.take( backendName ) ){ 85 switch ( *dict.take( backendName ) ){
82 case TODO: 86 case TODO:
83/*#ifdef __USE_SQL 87#ifdef __USE_SQL
84 if ( backend == "sql" ) 88 if ( backend == "sql" )
85 return (T*) new OTodoAccessBackendSQL(""); 89 return (T*) new OTodoAccessBackendSQL("");
86#else*/ 90#else
87 if ( backend == "sql" ) 91 if ( backend == "sql" )
88 qWarning ("OBackendFactory:: sql Backend not implemented! Using XML instead!"); 92 qWarning ("OBackendFactory:: sql Backend not implemented! Using XML instead!");
89//#endif 93#endif
90 94
91 return (T*) new OTodoAccessXML( appName ); 95 return (T*) new OTodoAccessXML( appName );
92 case CONTACT: 96 case CONTACT:
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
@@ -16,6 +16,9 @@
16 * ===================================================================== 16 * =====================================================================
17 * History: 17 * History:
18 * $Log$ 18 * $Log$
19 * Revision 1.4 2002/10/14 15:55:18 eilers
20 * Redeactivate SQL.. ;)
21 *
19 * Revision 1.3 2002/10/10 17:08:58 zecke 22 * Revision 1.3 2002/10/10 17:08:58 zecke
20 * The Cache is finally in place 23 * The Cache is finally in place
21 * I tested it with my todolist and it 'works' for 10.000 todos the hits are awesome ;) 24 * I tested it with my todolist and it 'works' for 10.000 todos the hits are awesome ;)
@@ -45,10 +48,10 @@
45#include "otodoaccessxml.h" 48#include "otodoaccessxml.h"
46#include "ocontactaccessbackend_xml.h" 49#include "ocontactaccessbackend_xml.h"
47 50
48/*#ifdef __USE_SQL 51#ifdef __USE_SQL
49#include "otodoaccesssql.h" 52#include "otodoaccesssql.h"
50#endif 53#endif
51*/ 54
52 55
53template<class T> 56template<class T>
54class OBackendFactory 57class OBackendFactory
@@ -64,6 +67,7 @@ class OBackendFactory
64 67
65 static T* Default( const QString backendName, const QString& appName ){ 68 static T* Default( const QString backendName, const QString& appName ){
66 69
70 // __asm__("int3");
67 71
68 Config config( "pimaccess" ); 72 Config config( "pimaccess" );
69 config.setGroup ( backendName ); 73 config.setGroup ( backendName );
@@ -80,13 +84,13 @@ class OBackendFactory
80 84
81 switch ( *dict.take( backendName ) ){ 85 switch ( *dict.take( backendName ) ){
82 case TODO: 86 case TODO:
83/*#ifdef __USE_SQL 87#ifdef __USE_SQL
84 if ( backend == "sql" ) 88 if ( backend == "sql" )
85 return (T*) new OTodoAccessBackendSQL(""); 89 return (T*) new OTodoAccessBackendSQL("");
86#else*/ 90#else
87 if ( backend == "sql" ) 91 if ( backend == "sql" )
88 qWarning ("OBackendFactory:: sql Backend not implemented! Using XML instead!"); 92 qWarning ("OBackendFactory:: sql Backend not implemented! Using XML instead!");
89//#endif 93#endif
90 94
91 return (T*) new OTodoAccessXML( appName ); 95 return (T*) new OTodoAccessXML( appName );
92 case CONTACT: 96 case CONTACT: