summaryrefslogtreecommitdiff
path: root/libopie
authoreilers <eilers>2003-11-17 15:57:10 (UTC)
committer eilers <eilers>2003-11-17 15:57:10 (UTC)
commit5228be0c7dfe6ce10330133fde6a5b15f836403b (patch) (unidiff)
treeaf8e5771fce916db0544f23e5c513d3cb3d60c7b /libopie
parent3ba032c6a4833260ef6274b6b2bf6a6a9ccc2540 (diff)
downloadopie-5228be0c7dfe6ce10330133fde6a5b15f836403b.zip
opie-5228be0c7dfe6ce10330133fde6a5b15f836403b.tar.gz
opie-5228be0c7dfe6ce10330133fde6a5b15f836403b.tar.bz2
Added #include QDateTime which is needed by this header file itself
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/opimaccessbackend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/pim/opimaccessbackend.h b/libopie/pim/opimaccessbackend.h
index c3d91f7..fd264fc 100644
--- a/libopie/pim/opimaccessbackend.h
+++ b/libopie/pim/opimaccessbackend.h
@@ -1,52 +1,53 @@
1#ifndef OPIE_PIM_ACCESS_BACKEND 1#ifndef OPIE_PIM_ACCESS_BACKEND
2#define OPIE_PIM_ACCESS_BACKEND 2#define OPIE_PIM_ACCESS_BACKEND
3 3
4#include <qarray.h> 4#include <qarray.h>
5#include <qdatetime.h>
5 6
6#include <opie/otemplatebase.h> 7#include <opie/otemplatebase.h>
7#include <opie/opimrecord.h> 8#include <opie/opimrecord.h>
8 9
9 10
10class OPimAccessBackendPrivate; 11class OPimAccessBackendPrivate;
11/** 12/**
12 * OPimAccessBackend is the base class 13 * OPimAccessBackend is the base class
13 * for all private backends 14 * for all private backends
14 * it operates on OPimRecord as the base class 15 * it operates on OPimRecord as the base class
15 * and it's responsible for fast manipulating 16 * and it's responsible for fast manipulating
16 * the resource the implementation takes care 17 * the resource the implementation takes care
17 * of 18 * of
18 */ 19 */
19template <class T = OPimRecord> 20template <class T = OPimRecord>
20class OPimAccessBackend { 21class OPimAccessBackend {
21public: 22public:
22 typedef OTemplateBase<T> Frontend; 23 typedef OTemplateBase<T> Frontend;
23 24
24 /** The access hint from the frontend */ 25 /** The access hint from the frontend */
25 OPimAccessBackend(int access = 0); 26 OPimAccessBackend(int access = 0);
26 virtual ~OPimAccessBackend(); 27 virtual ~OPimAccessBackend();
27 28
28 /** 29 /**
29 * load the resource 30 * load the resource
30 */ 31 */
31 virtual bool load() = 0; 32 virtual bool load() = 0;
32 33
33 /** 34 /**
34 * reload the resource 35 * reload the resource
35 */ 36 */
36 virtual bool reload() = 0; 37 virtual bool reload() = 0;
37 38
38 /** 39 /**
39 * save the resource and 40 * save the resource and
40 * all it's changes 41 * all it's changes
41 */ 42 */
42 virtual bool save() = 0; 43 virtual bool save() = 0;
43 44
44 /** 45 /**
45 * return an array of 46 * return an array of
46 * all available uids 47 * all available uids
47 */ 48 */
48 virtual QArray<int> allRecords()const = 0; 49 virtual QArray<int> allRecords()const = 0;
49 50
50 /** 51 /**
51 * return a List of records 52 * return a List of records
52 * that match the regex 53 * that match the regex