-rw-r--r-- | libopie/pim/opimrecord.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie/pim/opimrecord.cpp b/libopie/pim/opimrecord.cpp index d45417a..9510357 100644 --- a/libopie/pim/opimrecord.cpp +++ b/libopie/pim/opimrecord.cpp | |||
@@ -8,12 +8,13 @@ | |||
8 | Qtopia::UidGen OPimRecord::m_uidGen( Qtopia::UidGen::Qtopia ); | 8 | Qtopia::UidGen OPimRecord::m_uidGen( Qtopia::UidGen::Qtopia ); |
9 | 9 | ||
10 | 10 | ||
11 | OPimRecord::OPimRecord( int uid ) | 11 | OPimRecord::OPimRecord( int uid ) |
12 | : Qtopia::Record() { | 12 | : Qtopia::Record() { |
13 | 13 | ||
14 | m_lastHit = -1; | ||
14 | setUid( uid ); | 15 | setUid( uid ); |
15 | } | 16 | } |
16 | OPimRecord::~OPimRecord() { | 17 | OPimRecord::~OPimRecord() { |
17 | } | 18 | } |
18 | OPimRecord::OPimRecord( const OPimRecord& rec ) | 19 | OPimRecord::OPimRecord( const OPimRecord& rec ) |
19 | : Qtopia::Record( rec ) | 20 | : Qtopia::Record( rec ) |
@@ -21,12 +22,13 @@ OPimRecord::OPimRecord( const OPimRecord& rec ) | |||
21 | (*this) = rec; | 22 | (*this) = rec; |
22 | } | 23 | } |
23 | 24 | ||
24 | OPimRecord &OPimRecord::operator=( const OPimRecord& rec) { | 25 | OPimRecord &OPimRecord::operator=( const OPimRecord& rec) { |
25 | Qtopia::Record::operator=( rec ); | 26 | Qtopia::Record::operator=( rec ); |
26 | m_xrefman = rec.m_xrefman; | 27 | m_xrefman = rec.m_xrefman; |
28 | m_lastHit = rec.m_lastHit; | ||
27 | 29 | ||
28 | return *this; | 30 | return *this; |
29 | } | 31 | } |
30 | /* | 32 | /* |
31 | * category names | 33 | * category names |
32 | */ | 34 | */ |
@@ -161,6 +163,12 @@ OPimXRefPartner OPimRecord::partner( QDataStream& stream ) { | |||
161 | 163 | ||
162 | stream >> i ; | 164 | stream >> i ; |
163 | par.setField( i ); | 165 | par.setField( i ); |
164 | 166 | ||
165 | return par; | 167 | return par; |
166 | } | 168 | } |
169 | void OPimRecord::setLastHitField( int lastHit )const { | ||
170 | m_lastHit = lastHit; | ||
171 | } | ||
172 | int OPimRecord::lastHitField()const{ | ||
173 | return m_lastHit; | ||
174 | } | ||