author | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
commit | ea3945a9bd8f9830f70b1efa133f9df13b19362f (patch) (unidiff) | |
tree | f2ea22cc50e9aa8aa73ee7dea148f41c563c9666 /noncore/unsupported/libopie/pim/odatebookaccessbackend.h | |
parent | 1c6f490e8541626f68422e0a3a7c7281d7f5b7d3 (diff) | |
download | opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.zip opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.gz opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.bz2 |
libopie1 goes into unsupported
Diffstat (limited to 'noncore/unsupported/libopie/pim/odatebookaccessbackend.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/libopie/pim/odatebookaccessbackend.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/noncore/unsupported/libopie/pim/odatebookaccessbackend.h b/noncore/unsupported/libopie/pim/odatebookaccessbackend.h new file mode 100644 index 0000000..3472ab3 --- a/dev/null +++ b/noncore/unsupported/libopie/pim/odatebookaccessbackend.h | |||
@@ -0,0 +1,90 @@ | |||
1 | #ifndef OPIE_DATE_BOOK_ACCESS_BACKEND_H | ||
2 | #define OPIE_DATE_BOOK_ACCESS_BACKEND_H | ||
3 | |||
4 | #include <qarray.h> | ||
5 | |||
6 | #include "opimaccessbackend.h" | ||
7 | #include "oevent.h" | ||
8 | |||
9 | /** | ||
10 | * This class is the interface to the storage of Events. | ||
11 | * @see OPimAccessBackend | ||
12 | * | ||
13 | */ | ||
14 | class ODateBookAccessBackend : public OPimAccessBackend<OEvent> { | ||
15 | public: | ||
16 | typedef int UID; | ||
17 | |||
18 | /** | ||
19 | * c'tor without parameter | ||
20 | */ | ||
21 | ODateBookAccessBackend(); | ||
22 | ~ODateBookAccessBackend(); | ||
23 | |||
24 | /** | ||
25 | * This method should return a list of UIDs containing | ||
26 | * all events. No filter should be applied | ||
27 | * @return list of events | ||
28 | */ | ||
29 | virtual QArray<UID> rawEvents()const = 0; | ||
30 | |||
31 | /** | ||
32 | * This method should return a list of UIDs containing | ||
33 | * all repeating events. No filter should be applied | ||
34 | * @return list of repeating events | ||
35 | */ | ||
36 | virtual QArray<UID> rawRepeats()const = 0; | ||
37 | |||
38 | /** | ||
39 | * This mthod should return a list of UIDs containing all non | ||
40 | * repeating events. No filter should be applied | ||
41 | * @return list of nonrepeating events | ||
42 | */ | ||
43 | virtual QArray<UID> nonRepeats() const = 0; | ||
44 | |||
45 | /** | ||
46 | * If you do not want to implement the effectiveEvents methods below | ||
47 | * you need to supply it with directNonRepeats. | ||
48 | * This method can return empty lists if effectiveEvents is implememted | ||
49 | */ | ||
50 | virtual OEvent::ValueList directNonRepeats() = 0; | ||
51 | |||
52 | /** | ||
53 | * Same as above but return raw repeats! | ||
54 | */ | ||
55 | virtual OEvent::ValueList directRawRepeats() = 0; | ||
56 | |||
57 | /* is implemented by default but you can reimplement it*/ | ||
58 | /** | ||
59 | * Effective Events are special event occuring during a time frame. This method does calcualte | ||
60 | * EffectiveEvents bases on the directNonRepeats and directRawRepeats. You may implement this method | ||
61 | * yourself | ||
62 | */ | ||
63 | virtual OEffectiveEvent::ValueList effectiveEvents( const QDate& from, const QDate& to ); | ||
64 | |||
65 | /** | ||
66 | * this is an overloaded member function | ||
67 | * @see effectiveEvents( const QDate& from, const QDate& to ) | ||
68 | */ | ||
69 | virtual OEffectiveEvent::ValueList effectiveEvents( const QDateTime& start ); | ||
70 | |||
71 | /** | ||
72 | * Effective Events are special event occuring during a time frame. This method does calcualte | ||
73 | * EffectiveEvents bases on the directNonRepeats and directRawRepeats. You may implement this method | ||
74 | * yourself | ||
75 | */ | ||
76 | virtual OEffectiveEvent::ValueList effectiveNonRepeatingEvents( const QDate& from, const QDate& to ); | ||
77 | |||
78 | /** | ||
79 | * this is an overloaded member function | ||
80 | * @see effectiveNonRepeatingEvents( const QDate& from, const QDate& to ) | ||
81 | */ | ||
82 | virtual OEffectiveEvent::ValueList effectiveNonRepeatingEvents( const QDateTime& start ); | ||
83 | |||
84 | private: | ||
85 | class Private; | ||
86 | Private *d; | ||
87 | |||
88 | }; | ||
89 | |||
90 | #endif | ||