-rw-r--r-- | libopie2/opiepim/core/opimrecord.cpp | 6 | ||||
-rw-r--r-- | libopie2/opiepim/core/opimrecord.h | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/libopie2/opiepim/core/opimrecord.cpp b/libopie2/opiepim/core/opimrecord.cpp index 0c9734d..2365748 100644 --- a/libopie2/opiepim/core/opimrecord.cpp +++ b/libopie2/opiepim/core/opimrecord.cpp | |||
@@ -171,6 +171,12 @@ OPimXRefPartner OPimRecord::partner( QDataStream& stream ) { | |||
171 | void OPimRecord::setLastHitField( int lastHit )const { | 171 | void OPimRecord::setLastHitField( int lastHit )const { |
172 | m_lastHit = lastHit; | 172 | m_lastHit = lastHit; |
173 | } | 173 | } |
174 | int OPimRecord::lastHitField()const{ | 174 | int OPimRecord::lastHitField()const{ |
175 | return m_lastHit; | 175 | return m_lastHit; |
176 | } | 176 | } |
177 | QMap<QString, QString> OPimRecord::toExtraMap()const { | ||
178 | return customMap; | ||
179 | } | ||
180 | void OPimRecord::setExtraMap( const QMap<QString, QString>& map) { | ||
181 | customMap = map; | ||
182 | } | ||
diff --git a/libopie2/opiepim/core/opimrecord.h b/libopie2/opiepim/core/opimrecord.h index 494c78e..563b19c 100644 --- a/libopie2/opiepim/core/opimrecord.h +++ b/libopie2/opiepim/core/opimrecord.h | |||
@@ -3,13 +3,18 @@ | |||
3 | 3 | ||
4 | #include <qdatastream.h> | 4 | #include <qdatastream.h> |
5 | #include <qmap.h> | 5 | #include <qmap.h> |
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | #include <qstringlist.h> | 7 | #include <qstringlist.h> |
8 | 8 | ||
9 | /* | ||
10 | * we need to get customMap which is private... | ||
11 | */ | ||
12 | #define private protected | ||
9 | #include <qpe/palmtoprecord.h> | 13 | #include <qpe/palmtoprecord.h> |
14 | #undef private | ||
10 | 15 | ||
11 | #include <opie/opimxrefmanager.h> | 16 | #include <opie/opimxrefmanager.h> |
12 | 17 | ||
13 | /** | 18 | /** |
14 | * This is the base class for | 19 | * This is the base class for |
15 | * all PIM Records | 20 | * all PIM Records |
@@ -91,13 +96,14 @@ public: | |||
91 | */ | 96 | */ |
92 | virtual QMap<int, QString> toMap()const = 0; | 97 | virtual QMap<int, QString> toMap()const = 0; |
93 | 98 | ||
94 | /** | 99 | /** |
95 | * key value representation of extra items | 100 | * key value representation of extra items |
96 | */ | 101 | */ |
97 | virtual QMap<QString, QString> toExtraMap()const = 0; | 102 | QMap<QString, QString> toExtraMap()const; |
103 | void setExtraMap( const QMap<QString, QString>& ); | ||
98 | 104 | ||
99 | /** | 105 | /** |
100 | * the name for a recordField | 106 | * the name for a recordField |
101 | */ | 107 | */ |
102 | virtual QString recordField(int)const = 0; | 108 | virtual QString recordField(int)const = 0; |
103 | 109 | ||