Diffstat (limited to 'libopie2/opiepim/backend/odatebookaccessbackend_xml.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/odatebookaccessbackend_xml.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_xml.h b/libopie2/opiepim/backend/odatebookaccessbackend_xml.h index 563c31f..7848f7c 100644 --- a/libopie2/opiepim/backend/odatebookaccessbackend_xml.h +++ b/libopie2/opiepim/backend/odatebookaccessbackend_xml.h | |||
@@ -1,31 +1,37 @@ | |||
1 | #ifndef OPIE_DATE_BOOK_ACCESS_BACKEND_XML__H | 1 | #ifndef OPIE_DATE_BOOK_ACCESS_BACKEND_XML__H |
2 | #define OPIE_DATE_BOOK_ACCESS_BACKEND_XML__H | 2 | #define OPIE_DATE_BOOK_ACCESS_BACKEND_XML__H |
3 | 3 | ||
4 | #include <qmap.h> | 4 | #include <qmap.h> |
5 | 5 | ||
6 | #include "odatebookaccessbackend.h" | 6 | #include "odatebookaccessbackend.h" |
7 | 7 | ||
8 | /** | ||
9 | * This is the default XML implementation for DateBoook XML storage | ||
10 | * It fully implements the interface | ||
11 | * @see ODateBookAccessBackend | ||
12 | * @see OPimAccessBackend | ||
13 | */ | ||
8 | class ODateBookAccessBackend_XML : public ODateBookAccessBackend { | 14 | class ODateBookAccessBackend_XML : public ODateBookAccessBackend { |
9 | public: | 15 | public: |
10 | ODateBookAccessBackend_XML( const QString& appName, | 16 | ODateBookAccessBackend_XML( const QString& appName, |
11 | const QString& fileName = QString::null); | 17 | const QString& fileName = QString::null); |
12 | ~ODateBookAccessBackend_XML(); | 18 | ~ODateBookAccessBackend_XML(); |
13 | 19 | ||
14 | bool load(); | 20 | bool load(); |
15 | bool reload(); | 21 | bool reload(); |
16 | bool save(); | 22 | bool save(); |
17 | 23 | ||
18 | QArray<int> allRecords()const; | 24 | QArray<int> allRecords()const; |
19 | QArray<int> queryByExample( const OEvent&, int, const QDateTime& d = QDateTime() ); | 25 | QArray<int> queryByExample( const OEvent&, int, const QDateTime& d = QDateTime() ); |
20 | OEvent find( int uid )const; | 26 | OEvent find( int uid )const; |
21 | void clear(); | 27 | void clear(); |
22 | bool add( const OEvent& ev ); | 28 | bool add( const OEvent& ev ); |
23 | bool remove( int uid ); | 29 | bool remove( int uid ); |
24 | bool replace( const OEvent& ev ); | 30 | bool replace( const OEvent& ev ); |
25 | 31 | ||
26 | QArray<UID> rawEvents()const; | 32 | QArray<UID> rawEvents()const; |
27 | QArray<UID> rawRepeats()const; | 33 | QArray<UID> rawRepeats()const; |
28 | QArray<UID> nonRepeats()const; | 34 | QArray<UID> nonRepeats()const; |
29 | 35 | ||
30 | OEvent::ValueList directNonRepeats(); | 36 | OEvent::ValueList directNonRepeats(); |
31 | OEvent::ValueList directRawRepeats(); | 37 | OEvent::ValueList directRawRepeats(); |