Diffstat (limited to 'libopie2/opiepim/backend/obackendfactory.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/obackendfactory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiepim/backend/obackendfactory.h b/libopie2/opiepim/backend/obackendfactory.h index 993ecb4..4daf861 100644 --- a/libopie2/opiepim/backend/obackendfactory.h +++ b/libopie2/opiepim/backend/obackendfactory.h | |||
@@ -169,25 +169,25 @@ class OBackendFactory | |||
169 | return OPimGlobal::UNKNOWN; | 169 | return OPimGlobal::UNKNOWN; |
170 | 170 | ||
171 | return (OPimGlobal::DatabaseStyle) *db_find; | 171 | return (OPimGlobal::DatabaseStyle) *db_find; |
172 | } | 172 | } |
173 | 173 | ||
174 | 174 | ||
175 | /** | 175 | /** |
176 | * Returns the default backend implementation for backendName. Which one is used, is defined | 176 | * Returns the default backend implementation for backendName. Which one is used, is defined |
177 | * by the configfile "pimaccess.conf". | 177 | * by the configfile "pimaccess.conf". |
178 | * @param backendName the type of the backend (use "todo", "contact" or "datebook" ) | 178 | * @param backendName the type of the backend (use "todo", "contact" or "datebook" ) |
179 | * @param appName The name of your application. It will be passed on to the backend | 179 | * @param appName The name of your application. It will be passed on to the backend |
180 | */ | 180 | */ |
181 | static T* Default( const QString backendName, const QString& appName ){ | 181 | static T* defaultBackend( const QString backendName, const QString& appName ){ |
182 | 182 | ||
183 | QAsciiDict<int> dictBackends( OPimGlobal::_END_PimType ); | 183 | QAsciiDict<int> dictBackends( OPimGlobal::_END_PimType ); |
184 | dictBackends.setAutoDelete ( TRUE ); | 184 | dictBackends.setAutoDelete ( TRUE ); |
185 | 185 | ||
186 | dictBackends.insert( "todo", new int (OPimGlobal::TODOLIST) ); | 186 | dictBackends.insert( "todo", new int (OPimGlobal::TODOLIST) ); |
187 | dictBackends.insert( "contact", new int (OPimGlobal::CONTACTLIST) ); | 187 | dictBackends.insert( "contact", new int (OPimGlobal::CONTACTLIST) ); |
188 | dictBackends.insert( "datebook", new int(OPimGlobal::DATEBOOK) ); | 188 | dictBackends.insert( "datebook", new int(OPimGlobal::DATEBOOK) ); |
189 | 189 | ||
190 | int* backend_find = dictBackends[ backendName ]; | 190 | int* backend_find = dictBackends[ backendName ]; |
191 | if ( !backend_find ) return NULL; | 191 | if ( !backend_find ) return NULL; |
192 | 192 | ||
193 | OPimGlobal::DatabaseStyle style = defaultDB( static_cast<OPimGlobal::PimType>( *backend_find ) ); | 193 | OPimGlobal::DatabaseStyle style = defaultDB( static_cast<OPimGlobal::PimType>( *backend_find ) ); |