summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/backend/obackendfactory.h
Side-by-side diff
Diffstat (limited to 'libopie2/opiepim/backend/obackendfactory.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/backend/obackendfactory.h42
1 files changed, 22 insertions, 20 deletions
diff --git a/libopie2/opiepim/backend/obackendfactory.h b/libopie2/opiepim/backend/obackendfactory.h
index 9f3a823..25e247b 100644
--- a/libopie2/opiepim/backend/obackendfactory.h
+++ b/libopie2/opiepim/backend/obackendfactory.h
@@ -64,5 +64,5 @@ using namespace Opie::Pim;
namespace Opie {
-
+
class OBackendPrivate;
-
+
/**
@@ -86,4 +86,4 @@ class OBackendPrivate;
public:
- OBackendFactory() {};
-
+ OBackendFactory() {};
+
/**
@@ -98,4 +98,6 @@ class OBackendPrivate;
const QString& appName, const QString& filename = QString::null ){
- owarn << "Selected backend for " << type << " is: " << database << oendl;
- // If we should use the dafult database style, we have to request it
+ owarn << "Selected backend for " << type << " is: " <<
+database << oendl;
+
+ // If we should use the dafult database style, we have to request it
OPimGlobal::DatabaseStyle use_database = database;
@@ -104,6 +106,6 @@ class OBackendPrivate;
}
-
+
switch ( type ){
case OPimGlobal::TODOLIST:
-
+
switch ( use_database ){
@@ -168,5 +170,5 @@ class OBackendPrivate;
}
-
+
}
-
+
/**
@@ -191,3 +193,3 @@ class OBackendPrivate;
}
-
+
Config config( "pimaccess" );
@@ -195,6 +197,6 @@ class OBackendPrivate;
QString db_String = config.readEntry( "usebackend", "xml" );
-
+
QAsciiDict<int> dictDbTypes( OPimGlobal::_END_DatabaseStyle );
dictDbTypes.setAutoDelete( TRUE );
-
+
dictDbTypes.insert( "xml", new int (OPimGlobal::XML) );
@@ -202,12 +204,12 @@ class OBackendPrivate;
dictDbTypes.insert( "vcard", new int (OPimGlobal::VCARD) );
-
+
int* db_find = dictDbTypes[ db_String ];
-
+
if ( !db_find )
return OPimGlobal::UNKNOWN;
-
+
return (OPimGlobal::DatabaseStyle) *db_find;
}
-
-
+
+
/**
@@ -224,5 +226,5 @@ class OBackendPrivate;
OBackendPrivate* d;
-
+
};
-
+
}