-rw-r--r-- | libopie2/opiepim/core/ocontactaccess.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libopie2/opiepim/core/ocontactaccess.h b/libopie2/opiepim/core/ocontactaccess.h index 961968f..32b2dcb 100644 --- a/libopie2/opiepim/core/ocontactaccess.h +++ b/libopie2/opiepim/core/ocontactaccess.h | |||
@@ -14,12 +14,16 @@ | |||
14 | * ToDo: Define enum for query settings | 14 | * ToDo: Define enum for query settings |
15 | * ===================================================================== | 15 | * ===================================================================== |
16 | * Version: $Id$ | 16 | * Version: $Id$ |
17 | * ===================================================================== | 17 | * ===================================================================== |
18 | * History: | 18 | * History: |
19 | * $Log$ | 19 | * $Log$ |
20 | * Revision 1.6 2003/01/02 14:27:12 eilers | ||
21 | * Improved query by example: Search by date is possible.. First step | ||
22 | * for a today plugin for birthdays.. | ||
23 | * | ||
20 | * Revision 1.5 2002/11/13 14:14:51 eilers | 24 | * Revision 1.5 2002/11/13 14:14:51 eilers |
21 | * Added sorted for Contacts.. | 25 | * Added sorted for Contacts.. |
22 | * | 26 | * |
23 | * Revision 1.4 2002/11/01 15:10:42 eilers | 27 | * Revision 1.4 2002/11/01 15:10:42 eilers |
24 | * Added regExp-search in database for all fields in a contact. | 28 | * Added regExp-search in database for all fields in a contact. |
25 | * | 29 | * |
@@ -85,13 +89,17 @@ class OContactAccess: public QObject, public OPimAccessTemplate<OContact> | |||
85 | */ | 89 | */ |
86 | enum QuerySettings { | 90 | enum QuerySettings { |
87 | WildCards = 0x0001, | 91 | WildCards = 0x0001, |
88 | IgnoreCase = 0x0002, | 92 | IgnoreCase = 0x0002, |
89 | RegExp = 0x0004, | 93 | RegExp = 0x0004, |
90 | ExactMatch = 0x0008, | 94 | ExactMatch = 0x0008, |
91 | MatchOne = 0x0010 // Only one Entry must match | 95 | MatchOne = 0x0010, // Only one Entry must match |
96 | DateDiff = 0x0020, // Find all entries from today until given date | ||
97 | DateYear = 0x0040, // The year matches | ||
98 | DateMonth = 0x0080, // The month matches | ||
99 | DateDay = 0x0100, // The day matches | ||
92 | }; | 100 | }; |
93 | 101 | ||
94 | 102 | ||
95 | ORecordList<OContact> matchRegexp( const QRegExp &r )const; | 103 | ORecordList<OContact> matchRegexp( const QRegExp &r )const; |
96 | 104 | ||
97 | /** Return all Contacts in a sorted manner. | 105 | /** Return all Contacts in a sorted manner. |