Diffstat (limited to 'libopie/pim/opimaccessbackend.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/opimaccessbackend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie/pim/opimaccessbackend.h b/libopie/pim/opimaccessbackend.h index 01a0c86..f4bbe35 100644 --- a/libopie/pim/opimaccessbackend.h +++ b/libopie/pim/opimaccessbackend.h | |||
@@ -25,48 +25,54 @@ public: | |||
25 | virtual ~OPimAccessBackend(); | 25 | virtual ~OPimAccessBackend(); |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * load the resource | 28 | * load the resource |
29 | */ | 29 | */ |
30 | virtual bool load() = 0; | 30 | virtual bool load() = 0; |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * reload the resource | 33 | * reload the resource |
34 | */ | 34 | */ |
35 | virtual bool reload() = 0; | 35 | virtual bool reload() = 0; |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * save the resource and | 38 | * save the resource and |
39 | * all it's changes | 39 | * all it's changes |
40 | */ | 40 | */ |
41 | virtual bool save() = 0; | 41 | virtual bool save() = 0; |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * return an array of | 44 | * return an array of |
45 | * all available uids | 45 | * all available uids |
46 | */ | 46 | */ |
47 | virtual QArray<int> allRecords()const = 0; | 47 | virtual QArray<int> allRecords()const = 0; |
48 | 48 | ||
49 | /** | ||
50 | * return a List of records | ||
51 | * that match the regex | ||
52 | */ | ||
53 | virtual QArray<int> matchRegexp(const QRegExp &r) const = 0; | ||
54 | |||
49 | /** | 55 | /** |
50 | * queryByExample for T with the given Settings | 56 | * queryByExample for T with the given Settings |
51 | * | 57 | * |
52 | */ | 58 | */ |
53 | virtual QArray<int> queryByExample( const T& t, int settings, const QDateTime& d = QDateTime() ) = 0; | 59 | virtual QArray<int> queryByExample( const T& t, int settings, const QDateTime& d = QDateTime() ) = 0; |
54 | 60 | ||
55 | /** | 61 | /** |
56 | * find the OPimRecord with uid @param uid | 62 | * find the OPimRecord with uid @param uid |
57 | * returns T and T.isEmpty() if nothing was found | 63 | * returns T and T.isEmpty() if nothing was found |
58 | */ | 64 | */ |
59 | virtual T find(int uid )const = 0; | 65 | virtual T find(int uid )const = 0; |
60 | 66 | ||
61 | virtual T find(int uid, const QArray<int>& items, | 67 | virtual T find(int uid, const QArray<int>& items, |
62 | uint current, typename Frontend::CacheDirection )const ; | 68 | uint current, typename Frontend::CacheDirection )const ; |
63 | /** | 69 | /** |
64 | * clear the back end | 70 | * clear the back end |
65 | */ | 71 | */ |
66 | virtual void clear() = 0; | 72 | virtual void clear() = 0; |
67 | 73 | ||
68 | /** | 74 | /** |
69 | * add T | 75 | * add T |
70 | */ | 76 | */ |
71 | virtual bool add( const T& t ) = 0; | 77 | virtual bool add( const T& t ) = 0; |
72 | 78 | ||