Diffstat (limited to 'libopie2/opiepim/backend/odatebookaccessbackend_sql.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/odatebookaccessbackend_sql.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_sql.h b/libopie2/opiepim/backend/odatebookaccessbackend_sql.h index 85e0d4f..f39e154 100644 --- a/libopie2/opiepim/backend/odatebookaccessbackend_sql.h +++ b/libopie2/opiepim/backend/odatebookaccessbackend_sql.h | |||
@@ -1,16 +1,17 @@ | |||
1 | #ifndef OPIE_DATE_BOOK_ACCESS_BACKEND_SQL__H | 1 | #ifndef OPIE_DATE_BOOK_ACCESS_BACKEND_SQL__H |
2 | #define OPIE_DATE_BOOK_ACCESS_BACKEND_SQL__H | 2 | #define OPIE_DATE_BOOK_ACCESS_BACKEND_SQL__H |
3 | 3 | ||
4 | #include <qmap.h> | 4 | #include <qmap.h> |
5 | #include <opie2/osqlresult.h> | ||
5 | 6 | ||
6 | #include "odatebookaccessbackend.h" | 7 | #include "odatebookaccessbackend.h" |
7 | 8 | ||
8 | class OSQLDriver; | 9 | class OSQLDriver; |
9 | 10 | ||
10 | /** | 11 | /** |
11 | * This is the default SQL implementation for DateBoook SQL storage | 12 | * This is the default SQL implementation for DateBoook SQL storage |
12 | * It fully implements the interface | 13 | * It fully implements the interface |
13 | * @see ODateBookAccessBackend | 14 | * @see ODateBookAccessBackend |
14 | * @see OPimAccessBackend | 15 | * @see OPimAccessBackend |
15 | */ | 16 | */ |
16 | class ODateBookAccessBackend_SQL : public ODateBookAccessBackend { | 17 | class ODateBookAccessBackend_SQL : public ODateBookAccessBackend { |
@@ -36,24 +37,25 @@ public: | |||
36 | QArray<UID> rawRepeats()const; | 37 | QArray<UID> rawRepeats()const; |
37 | QArray<UID> nonRepeats()const; | 38 | QArray<UID> nonRepeats()const; |
38 | 39 | ||
39 | OEvent::ValueList directNonRepeats(); | 40 | OEvent::ValueList directNonRepeats(); |
40 | OEvent::ValueList directRawRepeats(); | 41 | OEvent::ValueList directRawRepeats(); |
41 | 42 | ||
42 | private: | 43 | private: |
43 | bool loadFile(); | 44 | bool loadFile(); |
44 | QString m_fileName; | 45 | QString m_fileName; |
45 | QArray<int> m_uids; | 46 | QArray<int> m_uids; |
46 | 47 | ||
47 | QMap<int, QString> m_fieldMap; | 48 | QMap<int, QString> m_fieldMap; |
49 | QMap<QString, int> m_reverseFieldMap; | ||
48 | 50 | ||
49 | OSQLDriver* m_driver; | 51 | OSQLDriver* m_driver; |
50 | 52 | ||
51 | class Private; | 53 | class Private; |
52 | Private *d; | 54 | Private *d; |
53 | 55 | ||
54 | void initFields(); | 56 | void initFields(); |
55 | void update(); | 57 | void update(); |
56 | QArray<int> extractUids( OSQLResult& res ) const; | 58 | QArray<int> extractUids( OSQLResult& res ) const; |
57 | 59 | ||
58 | }; | 60 | }; |
59 | 61 | ||