Diffstat (limited to 'libopie/pim/ocontactaccessbackend.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/ocontactaccessbackend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libopie/pim/ocontactaccessbackend.h b/libopie/pim/ocontactaccessbackend.h index a651477..c898f61 100644 --- a/libopie/pim/ocontactaccessbackend.h +++ b/libopie/pim/ocontactaccessbackend.h | |||
@@ -16,12 +16,15 @@ | |||
16 | * ToDo: Define enum for query settings | 16 | * ToDo: Define enum for query settings |
17 | * ===================================================================== | 17 | * ===================================================================== |
18 | * Version: $Id$ | 18 | * Version: $Id$ |
19 | * ===================================================================== | 19 | * ===================================================================== |
20 | * History: | 20 | * History: |
21 | * $Log$ | 21 | * $Log$ |
22 | * Revision 1.3 2002/11/01 15:10:42 eilers | ||
23 | * Added regExp-search in database for all fields in a contact. | ||
24 | * | ||
22 | * Revision 1.2 2002/10/07 17:34:24 eilers | 25 | * Revision 1.2 2002/10/07 17:34:24 eilers |
23 | * added OBackendFactory for advanced backend access | 26 | * added OBackendFactory for advanced backend access |
24 | * | 27 | * |
25 | * Revision 1.1 2002/09/27 17:11:44 eilers | 28 | * Revision 1.1 2002/09/27 17:11:44 eilers |
26 | * Added API for accessing the Contact-Database ! It is compiling, but | 29 | * Added API for accessing the Contact-Database ! It is compiling, but |
27 | * please do not expect that anything is working ! | 30 | * please do not expect that anything is working ! |
@@ -35,12 +38,14 @@ | |||
35 | #ifndef _OCONTACTACCESSBACKEND_H_ | 38 | #ifndef _OCONTACTACCESSBACKEND_H_ |
36 | #define _OCONTACTACCESSBACKEND_H_ | 39 | #define _OCONTACTACCESSBACKEND_H_ |
37 | 40 | ||
38 | #include "ocontact.h" | 41 | #include "ocontact.h" |
39 | #include "opimaccessbackend.h" | 42 | #include "opimaccessbackend.h" |
40 | 43 | ||
44 | #include "qregexp.h" | ||
45 | |||
41 | class OContactAccessBackend: public OPimAccessBackend<OContact> { | 46 | class OContactAccessBackend: public OPimAccessBackend<OContact> { |
42 | public: | 47 | public: |
43 | OContactAccessBackend() {} | 48 | OContactAccessBackend() {} |
44 | virtual ~OContactAccessBackend() {} | 49 | virtual ~OContactAccessBackend() {} |
45 | 50 | ||
46 | 51 | ||
@@ -55,12 +60,14 @@ class OContactAccessBackend: public OPimAccessBackend<OContact> { | |||
55 | * @return <i>true</i> if the database was changed and if save without reload will | 60 | * @return <i>true</i> if the database was changed and if save without reload will |
56 | * be dangerous. <i>false</i> if the database was not changed or it is save to write | 61 | * be dangerous. <i>false</i> if the database was not changed or it is save to write |
57 | * in this situation. | 62 | * in this situation. |
58 | */ | 63 | */ |
59 | virtual bool wasChangedExternally() = 0; | 64 | virtual bool wasChangedExternally() = 0; |
60 | 65 | ||
66 | virtual QArray<int> matchRegexp( const QRegExp &r ) const = 0; | ||
67 | |||
61 | /** Return all possible settings. | 68 | /** Return all possible settings. |
62 | * @return All settings provided by the current backend | 69 | * @return All settings provided by the current backend |
63 | * (i.e.: query_WildCards & query_IgnoreCase) | 70 | * (i.e.: query_WildCards & query_IgnoreCase) |
64 | */ | 71 | */ |
65 | virtual const uint querySettings() = 0; | 72 | virtual const uint querySettings() = 0; |
66 | 73 | ||