author | zecke <zecke> | 2004-11-18 21:45:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-11-18 21:45:49 (UTC) |
commit | 7484344ff5be1f7c54e51715776d0e3cadeb1ed0 (patch) (unidiff) | |
tree | 96f427f7a1fb1c8ca0a6efbd72b51e916cb1651d /libopie2/opiepim/core/opimrecord.h | |
parent | 3302eb30390e6053637929316670da3e8fbe279e (diff) | |
download | opie-7484344ff5be1f7c54e51715776d0e3cadeb1ed0.zip opie-7484344ff5be1f7c54e51715776d0e3cadeb1ed0.tar.gz opie-7484344ff5be1f7c54e51715776d0e3cadeb1ed0.tar.bz2 |
Big PIM API Update Core Part (1/2 of what should be implemented):
OPimRecords:
-Add a so called safeCast using the rtti value
OPimTodo:
-Fix memleak with OPimState
OPimOccurrence:
-New class. Every 'Access' can give occurrences
for a period of time
Move Documentation
Diffstat (limited to 'libopie2/opiepim/core/opimrecord.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimrecord.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libopie2/opiepim/core/opimrecord.h b/libopie2/opiepim/core/opimrecord.h index 127439a..363cc78 100644 --- a/libopie2/opiepim/core/opimrecord.h +++ b/libopie2/opiepim/core/opimrecord.h | |||
@@ -29,12 +29,14 @@ | |||
29 | 29 | ||
30 | #ifndef OPIMRECORD_H | 30 | #ifndef OPIMRECORD_H |
31 | #define OPIMRECORD_H | 31 | #define OPIMRECORD_H |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/opimxrefmanager.h> | 34 | #include <opie2/opimxrefmanager.h> |
35 | #include <opie2/opimglobal.h> | ||
36 | |||
35 | /* | 37 | /* |
36 | * we need to get customMap which is private... | 38 | * we need to get customMap which is private... |
37 | */ | 39 | */ |
38 | #define private protected | 40 | #define private protected |
39 | #include <qpe/palmtoprecord.h> | 41 | #include <qpe/palmtoprecord.h> |
40 | #undef private | 42 | #undef private |
@@ -57,13 +59,13 @@ class OPimRecord : public Qtopia::Record | |||
57 | public: | 59 | public: |
58 | /** | 60 | /** |
59 | * c'tor | 61 | * c'tor |
60 | * uid of 0 isEmpty | 62 | * uid of 0 isEmpty |
61 | * uid of 1 will be assigned a new one | 63 | * uid of 1 will be assigned a new one |
62 | */ | 64 | */ |
63 | OPimRecord( int uid = 0 ); | 65 | OPimRecord( UID uid = 0 ); |
64 | ~OPimRecord(); | 66 | ~OPimRecord(); |
65 | 67 | ||
66 | /** | 68 | /** |
67 | * copy c'tor | 69 | * copy c'tor |
68 | */ | 70 | */ |
69 | OPimRecord( const OPimRecord& rec ); | 71 | OPimRecord( const OPimRecord& rec ); |
@@ -135,16 +137,21 @@ class OPimRecord : public Qtopia::Record | |||
135 | /** | 137 | /** |
136 | * key value representation of extra items | 138 | * key value representation of extra items |
137 | */ | 139 | */ |
138 | QMap<QString, QString> toExtraMap() const; | 140 | QMap<QString, QString> toExtraMap() const; |
139 | void setExtraMap( const QMap<QString, QString>& ); | 141 | void setExtraMap( const QMap<QString, QString>& ); |
140 | 142 | ||
143 | //@{ | ||
141 | /** | 144 | /** |
142 | * the name for a recordField | 145 | * the name for a recordField |
143 | */ | 146 | */ |
144 | virtual QString recordField( int ) const = 0; | 147 | virtual QString recordField( int ) const = 0; |
148 | // virtual QArray<int> recordAttributes()const = 0; | ||
149 | // virtual QMap<int,QString> recordAttributesTranslated() const = 0; | ||
150 | // QString recordAttributeTranslated(int field)const; | ||
151 | //@} | ||
145 | 152 | ||
146 | /** | 153 | /** |
147 | * returns a reference of the | 154 | * returns a reference of the |
148 | * Cross Reference Manager | 155 | * Cross Reference Manager |
149 | * Partner 'One' is THIS PIM RECORD! | 156 | * Partner 'One' is THIS PIM RECORD! |
150 | * 'Two' is the Partner where we link to | 157 | * 'Two' is the Partner where we link to |