author | eilers <eilers> | 2003-01-02 14:27:12 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-01-02 14:27:12 (UTC) |
commit | 8a9fc13259d7c2797068752687a011f57f613251 (patch) (unidiff) | |
tree | 26019057f2974c71881d9d7759732326cd0ede25 /libopie2/opiepim/core | |
parent | 12e9ed4ac80ac7fa042059b48d7447db0e59a86c (diff) | |
download | opie-8a9fc13259d7c2797068752687a011f57f613251.zip opie-8a9fc13259d7c2797068752687a011f57f613251.tar.gz opie-8a9fc13259d7c2797068752687a011f57f613251.tar.bz2 |
Improved query by example: Search by date is possible.. First step
for a today plugin for birthdays..
-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 | |||
@@ -8,24 +8,28 @@ | |||
8 | *This program is free software; you can redistribute it and/or | 8 | *This program is free software; you can redistribute it and/or |
9 | *modify it under the terms of the GNU Library General Public | 9 | *modify it under the terms of the GNU Library General Public |
10 | * License as published by the Free Software Foundation; | 10 | * License as published by the Free Software Foundation; |
11 | * either version 2 of the License, or (at your option) any later | 11 | * either version 2 of the License, or (at your option) any later |
12 | * version. | 12 | * version. |
13 | * ===================================================================== | 13 | * ===================================================================== |
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 | * |
26 | * Revision 1.3 2002/10/16 10:52:40 eilers | 30 | * Revision 1.3 2002/10/16 10:52:40 eilers |
27 | * Added some docu to the interface and now using the cache infrastucture by zecke.. :) | 31 | * Added some docu to the interface and now using the cache infrastucture by zecke.. :) |
28 | * | 32 | * |
29 | * Revision 1.2 2002/10/14 16:21:54 eilers | 33 | * Revision 1.2 2002/10/14 16:21:54 eilers |
30 | * Some minor interface updates | 34 | * Some minor interface updates |
31 | * | 35 | * |
@@ -79,25 +83,29 @@ class OContactAccess: public QObject, public OPimAccessTemplate<OContact> | |||
79 | ~OContactAccess (); | 83 | ~OContactAccess (); |
80 | 84 | ||
81 | /** Constants for query. | 85 | /** Constants for query. |
82 | * Use this constants to set the query parameters. | 86 | * Use this constants to set the query parameters. |
83 | * Note: <i>query_IgnoreCase</i> just make sense with one of the other attributes ! | 87 | * Note: <i>query_IgnoreCase</i> just make sense with one of the other attributes ! |
84 | * @see queryByExample() | 88 | * @see queryByExample() |
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. |
98 | * @param ascending true: Sorted in acending order. | 106 | * @param ascending true: Sorted in acending order. |
99 | * @param sortOrder Currently not implemented. Just defined to stay compatible to otodoaccess | 107 | * @param sortOrder Currently not implemented. Just defined to stay compatible to otodoaccess |
100 | * @param sortFilter Currently not implemented. Just defined to stay compatible to otodoaccess | 108 | * @param sortFilter Currently not implemented. Just defined to stay compatible to otodoaccess |
101 | * @param cat Currently not implemented. Just defined to stay compatible to otodoaccess | 109 | * @param cat Currently not implemented. Just defined to stay compatible to otodoaccess |
102 | */ | 110 | */ |
103 | List sorted( bool ascending, int sortOrder, int sortFilter, int cat ) const; | 111 | List sorted( bool ascending, int sortOrder, int sortFilter, int cat ) const; |