-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_xml.h | 35 | ||||
-rw-r--r-- | libopie2/opiepim/backend/otodoaccessxml.cpp | 2 | ||||
-rw-r--r-- | libopie2/opiepim/backend/otodoaccessxml.h | 2 |
3 files changed, 21 insertions, 18 deletions
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h index 97ef40f..50ea329 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h +++ b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h | |||
@@ -19,2 +19,5 @@ | |||
19 | * $Log$ | 19 | * $Log$ |
20 | * Revision 1.3 2002/10/14 16:21:54 eilers | ||
21 | * Some minor interface updates | ||
22 | * | ||
20 | * Revision 1.2 2002/10/07 17:34:24 eilers | 23 | * Revision 1.2 2002/10/07 17:34:24 eilers |
@@ -201,6 +204,6 @@ class OContactAccessBackend_XML : public OContactAccessBackend { | |||
201 | if ( !query.field(i).isEmpty() ){ | 204 | if ( !query.field(i).isEmpty() ){ |
202 | switch ( settings & ~OContactAccess::query_IgnoreCase ){ | 205 | switch ( settings & ~OContactAccess::IgnoreCase ){ |
203 | case OContactAccess::query_RegExp:{ | 206 | case OContactAccess::RegExp:{ |
204 | QRegExp expr ( query.field(i), | 207 | QRegExp expr ( query.field(i), |
205 | !(settings & OContactAccess::query_IgnoreCase), | 208 | !(settings & OContactAccess::IgnoreCase), |
206 | false ); | 209 | false ); |
@@ -210,5 +213,5 @@ class OContactAccessBackend_XML : public OContactAccessBackend { | |||
210 | break; | 213 | break; |
211 | case OContactAccess::query_WildCards:{ | 214 | case OContactAccess::WildCards:{ |
212 | QRegExp expr ( query.field(i), | 215 | QRegExp expr ( query.field(i), |
213 | !(settings & OContactAccess::query_IgnoreCase), | 216 | !(settings & OContactAccess::IgnoreCase), |
214 | true ); | 217 | true ); |
@@ -218,4 +221,4 @@ class OContactAccessBackend_XML : public OContactAccessBackend { | |||
218 | break; | 221 | break; |
219 | case OContactAccess::query_ExactMatch:{ | 222 | case OContactAccess::ExactMatch:{ |
220 | if (settings & OContactAccess::query_IgnoreCase){ | 223 | if (settings & OContactAccess::IgnoreCase){ |
221 | if ( query.field(i).upper() != | 224 | if ( query.field(i).upper() != |
@@ -245,6 +248,6 @@ class OContactAccessBackend_XML : public OContactAccessBackend { | |||
245 | { | 248 | { |
246 | return ( OContactAccess::query_WildCards | 249 | return ( OContactAccess::WildCards |
247 | & OContactAccess::query_IgnoreCase | 250 | & OContactAccess::IgnoreCase |
248 | & OContactAccess::query_RegExp | 251 | & OContactAccess::RegExp |
249 | & OContactAccess::query_ExactMatch ); | 252 | & OContactAccess::ExactMatch ); |
250 | } | 253 | } |
@@ -253,3 +256,3 @@ class OContactAccessBackend_XML : public OContactAccessBackend { | |||
253 | { | 256 | { |
254 | /* OContactAccess::query_IgnoreCase may be added with one | 257 | /* OContactAccess::IgnoreCase may be added with one |
255 | * of the other settings, but never used alone. | 258 | * of the other settings, but never used alone. |
@@ -257,8 +260,8 @@ class OContactAccessBackend_XML : public OContactAccessBackend { | |||
257 | */ | 260 | */ |
258 | switch ( querySettings & ~OContactAccess::query_IgnoreCase ){ | 261 | switch ( querySettings & ~OContactAccess::IgnoreCase ){ |
259 | case OContactAccess::query_RegExp: | 262 | case OContactAccess::RegExp: |
260 | return ( true ); | 263 | return ( true ); |
261 | case OContactAccess::query_WildCards: | 264 | case OContactAccess::WildCards: |
262 | return ( true ); | 265 | return ( true ); |
263 | case OContactAccess::query_ExactMatch: | 266 | case OContactAccess::ExactMatch: |
264 | return ( true ); | 267 | return ( true ); |
diff --git a/libopie2/opiepim/backend/otodoaccessxml.cpp b/libopie2/opiepim/backend/otodoaccessxml.cpp index f3b0783..3b4cab2 100644 --- a/libopie2/opiepim/backend/otodoaccessxml.cpp +++ b/libopie2/opiepim/backend/otodoaccessxml.cpp | |||
@@ -189,3 +189,3 @@ QArray<int> OTodoAccessXML::allRecords()const { | |||
189 | } | 189 | } |
190 | QArray<int> OTodoAccessXML::queryByExample( const OTodo&, int sort ) { | 190 | QArray<int> OTodoAccessXML::queryByExample( const OTodo&, int ) { |
191 | QArray<int> ids(0); | 191 | QArray<int> ids(0); |
diff --git a/libopie2/opiepim/backend/otodoaccessxml.h b/libopie2/opiepim/backend/otodoaccessxml.h index 1e7e371..dc41c32 100644 --- a/libopie2/opiepim/backend/otodoaccessxml.h +++ b/libopie2/opiepim/backend/otodoaccessxml.h | |||
@@ -26,3 +26,3 @@ public: | |||
26 | QArray<int> allRecords()const; | 26 | QArray<int> allRecords()const; |
27 | QArray<int> queryByExample( const OTodo&, int sort ); | 27 | QArray<int> queryByExample( const OTodo&, int querysettings ); |
28 | OTodo find( int uid )const; | 28 | OTodo find( int uid )const; |