-rw-r--r-- | libopie/pim/opimrecord.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libopie/pim/opimrecord.h b/libopie/pim/opimrecord.h index ec99a13..665530f 100644 --- a/libopie/pim/opimrecord.h +++ b/libopie/pim/opimrecord.h | |||
@@ -1,15 +1,16 @@ | |||
1 | #ifndef OPIE_PIM_RECORD_H | 1 | #ifndef OPIE_PIM_RECORD_H |
2 | #define OPIE_PIM_RECORD_H | 2 | #define OPIE_PIM_RECORD_H |
3 | 3 | ||
4 | #include <qdatastream.h> | ||
4 | #include <qmap.h> | 5 | #include <qmap.h> |
5 | #include <qstring.h> | 6 | #include <qstring.h> |
6 | #include <qstringlist.h> | 7 | #include <qstringlist.h> |
7 | 8 | ||
8 | #include <qpe/palmtoprecord.h> | 9 | #include <qpe/palmtoprecord.h> |
9 | 10 | ||
10 | #include <opie/opimxrefmanager.h> | 11 | #include <opie/opimxrefmanager.h> |
11 | 12 | ||
12 | /** | 13 | /** |
13 | * This is the base class for | 14 | * This is the base class for |
14 | * all PIM Records | 15 | * all PIM Records |
15 | * | 16 | * |
@@ -96,27 +97,38 @@ public: | |||
96 | 97 | ||
97 | /** | 98 | /** |
98 | * set the uid | 99 | * set the uid |
99 | */ | 100 | */ |
100 | virtual void setUid( int uid ); | 101 | virtual void setUid( int uid ); |
101 | 102 | ||
102 | /* | 103 | /* |
103 | * used inside the Templates for casting | 104 | * used inside the Templates for casting |
104 | * REIMPLEMENT in your .... | 105 | * REIMPLEMENT in your .... |
105 | */ | 106 | */ |
106 | static int rtti(); | 107 | static int rtti(); |
107 | 108 | ||
109 | /** | ||
110 | * some marshalling and de marshalling code | ||
111 | * saves the OPimRecord | ||
112 | * to and from a DataStream | ||
113 | */ | ||
114 | virtual bool loadFromStream(QDataStream& ); | ||
115 | virtual bool saveToStream( QDataStream& stream )const; | ||
116 | |||
108 | protected: | 117 | protected: |
109 | Qtopia::UidGen &uidGen(); | 118 | Qtopia::UidGen &uidGen(); |
110 | // QString crossToString()const; | 119 | // QString crossToString()const; |
111 | 120 | ||
112 | private: | 121 | private: |
113 | class OPimRecordPrivate; | 122 | class OPimRecordPrivate; |
114 | OPimRecordPrivate *d; | 123 | OPimRecordPrivate *d; |
115 | OPimXRefManager m_xrefman; | 124 | OPimXRefManager m_xrefman; |
116 | static Qtopia::UidGen m_uidGen; | 125 | static Qtopia::UidGen m_uidGen; |
117 | 126 | ||
127 | private: | ||
128 | void flush( const OPimXRefPartner&, QDataStream& stream )const; | ||
129 | OPimXRefPartner partner( QDataStream& ); | ||
118 | }; | 130 | }; |
119 | 131 | ||
120 | 132 | ||
121 | 133 | ||
122 | #endif | 134 | #endif |