Diffstat (limited to 'libopie2/opiepim/core/opimresolver.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimresolver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libopie2/opiepim/core/opimresolver.cpp b/libopie2/opiepim/core/opimresolver.cpp index 73d7de1..eb6661a 100644 --- a/libopie2/opiepim/core/opimresolver.cpp +++ b/libopie2/opiepim/core/opimresolver.cpp | |||
@@ -63,27 +63,27 @@ OPimRecord* OPimResolver::record( const QString& service, int uid ) { | |||
63 | rec = base->record( uid ); | 63 | rec = base->record( uid ); |
64 | delete base; | 64 | delete base; |
65 | 65 | ||
66 | return rec; | 66 | return rec; |
67 | } | 67 | } |
68 | OPimRecord* OPimResolver::record( const QString& service ) { | 68 | OPimRecord* OPimResolver::record( const QString& service ) { |
69 | return record( serviceId( service ) ); | 69 | return record( serviceId( service ) ); |
70 | } | 70 | } |
71 | OPimRecord* OPimResolver::record( int rtti ) { | 71 | OPimRecord* OPimResolver::record( int rtti ) { |
72 | OPimRecord* rec = 0l; | 72 | OPimRecord* rec = 0l; |
73 | switch( rtti ) { | 73 | switch( rtti ) { |
74 | case 1: /* todolist */ | 74 | case 1: /* todolist */ |
75 | rec = new OTodo(); | 75 | rec = new OPimTodo(); |
76 | case 2: /* contact */ | 76 | case 2: /* contact */ |
77 | rec = new OContact(); | 77 | rec = new OPimContact(); |
78 | default: | 78 | default: |
79 | break; | 79 | break; |
80 | } | 80 | } |
81 | /* | 81 | /* |
82 | * FIXME resolve externally | 82 | * FIXME resolve externally |
83 | */ | 83 | */ |
84 | if (!rec ) { | 84 | if (!rec ) { |
85 | ; | 85 | ; |
86 | } | 86 | } |
87 | return 0l; | 87 | return 0l; |
88 | } | 88 | } |
89 | bool OPimResolver::isBuiltIn( const QString& str) const{ | 89 | bool OPimResolver::isBuiltIn( const QString& str) const{ |
@@ -202,30 +202,30 @@ bool OPimResolver::add( const QString& service, const OPimRecord& rec) { | |||
202 | delete base; | 202 | delete base; |
203 | } | 203 | } |
204 | 204 | ||
205 | return true; | 205 | return true; |
206 | } | 206 | } |
207 | OPimBase* OPimResolver::backend( const QString& service ) { | 207 | OPimBase* OPimResolver::backend( const QString& service ) { |
208 | return backend( serviceId( service ) ); | 208 | return backend( serviceId( service ) ); |
209 | } | 209 | } |
210 | OPimBase* OPimResolver::backend( int rtti ) { | 210 | OPimBase* OPimResolver::backend( int rtti ) { |
211 | OPimBase* base = 0l; | 211 | OPimBase* base = 0l; |
212 | switch( rtti ) { | 212 | switch( rtti ) { |
213 | case TodoList: | 213 | case TodoList: |
214 | base = new OTodoAccess(); | 214 | base = new OPimTodoAccess(); |
215 | break; | 215 | break; |
216 | case DateBook: | 216 | case DateBook: |
217 | break; | 217 | break; |
218 | case AddressBook: | 218 | case AddressBook: |
219 | base = new OContactAccess("Resolver"); | 219 | base = new OPimContactAccess("Resolver"); |
220 | break; | 220 | break; |
221 | default: | 221 | default: |
222 | break; | 222 | break; |
223 | } | 223 | } |
224 | // FIXME for 3rd party | 224 | // FIXME for 3rd party |
225 | if (!base ) | 225 | if (!base ) |
226 | ; | 226 | ; |
227 | 227 | ||
228 | return base; | 228 | return base; |
229 | } | 229 | } |
230 | 230 | ||
231 | } | 231 | } |