summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/core/opimrecord.h
Unidiff
Diffstat (limited to 'libopie2/opiepim/core/opimrecord.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/core/opimrecord.h11
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
@@ -23,24 +23,26 @@
23 -_. . . )=. = Library General Public License along with 23 -_. . . )=. = Library General Public License along with
24 -- :-=` this library; see the file COPYING.LIB. 24 -- :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28*/ 28*/
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
41 43
42/* QT */ 44/* QT */
43#include <qdatastream.h> 45#include <qdatastream.h>
44#include <qmap.h> 46#include <qmap.h>
45#include <qstring.h> 47#include <qstring.h>
46#include <qstringlist.h> 48#include <qstringlist.h>
@@ -51,25 +53,25 @@ namespace Opie
51 * This is the base class for 53 * This is the base class for
52 * all PIM Records 54 * all PIM Records
53 * 55 *
54 */ 56 */
55class OPimRecord : public Qtopia::Record 57class OPimRecord : public Qtopia::Record
56{ 58{
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 );
70 72
71 /** 73 /**
72 * copy operator 74 * copy operator
73 */ 75 */
74 OPimRecord &operator=( const OPimRecord& ); 76 OPimRecord &operator=( const OPimRecord& );
75 77
@@ -129,28 +131,33 @@ class OPimRecord : public Qtopia::Record
129 /** 131 /**
130 * converts the internal structure to a map 132 * converts the internal structure to a map
131 */ 133 */
132 virtual QMap<int, QString> toMap() const = 0; 134 virtual QMap<int, QString> toMap() const = 0;
133 // virtual fromMap( const <int, QString>& map ) = 0; // Should be added in the future (eilers) 135 // virtual fromMap( const <int, QString>& map ) = 0; // Should be added in the future (eilers)
134 136
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
151 */ 158 */
152 OPimXRefManager& xrefmanager(); 159 OPimXRefManager& xrefmanager();
153 160
154 /** 161 /**
155 * set the uid 162 * set the uid
156 */ 163 */