-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,7 +1,8 @@ | |||
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 | ||
@@ -104,8 +105,16 @@ public: | |||
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 | ||
@@ -114,8 +123,11 @@ private: | |||
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 | ||