summaryrefslogtreecommitdiff
path: root/libopie/pim/ocontact.h
authorzecke <zecke>2003-05-14 14:41:47 (UTC)
committer zecke <zecke>2003-05-14 14:41:47 (UTC)
commitcc794c5ba028bbf07fa280ed49bd0b8cfb745bd7 (patch) (unidiff)
treea5496cd003388591cc4a5e323bb5c99646919b92 /libopie/pim/ocontact.h
parent3c4a67b8b8d3fb554c5259f9f5ca35c5c826b13c (diff)
downloadopie-cc794c5ba028bbf07fa280ed49bd0b8cfb745bd7.zip
opie-cc794c5ba028bbf07fa280ed49bd0b8cfb745bd7.tar.gz
opie-cc794c5ba028bbf07fa280ed49bd0b8cfb745bd7.tar.bz2
move lastHitField stuff into OPIMRecord
Diffstat (limited to 'libopie/pim/ocontact.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie/pim/ocontact.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/libopie/pim/ocontact.h b/libopie/pim/ocontact.h
index f79f0f3..dd2de17 100644
--- a/libopie/pim/ocontact.h
+++ b/libopie/pim/ocontact.h
@@ -193,52 +193,48 @@ public:
193 193
194// // custom 194// // custom
195// const QString &customField( const QString &key ) 195// const QString &customField( const QString &key )
196// { return find( Custom- + key ); } 196// { return find( Custom- + key ); }
197 197
198 198
199 QString toRichText() const; 199 QString toRichText() const;
200 QMap<int, QString> toMap() const; 200 QMap<int, QString> toMap() const;
201 QString field( int key ) const { return find( key ); } 201 QString field( int key ) const { return find( key ); }
202 202
203 203
204 void setUid( int i ); 204 void setUid( int i );
205 205
206 QString toShortText()const; 206 QString toShortText()const;
207 QString OContact::type()const; 207 QString OContact::type()const;
208 QMap<QString,QString> OContact::toExtraMap() const; 208 QMap<QString,QString> OContact::toExtraMap() const;
209 class QString OContact::recordField(int) const; 209 class QString OContact::recordField(int) const;
210 210
211 // Why private ? (eilers,se) 211 // Why private ? (eilers,se)
212 QString emailSeparator() const { return " "; } 212 QString emailSeparator() const { return " "; }
213 // the emails should be seperated by a comma 213 // the emails should be seperated by a comma
214 void setEmails( const QString &v ); 214 void setEmails( const QString &v );
215 QString emails() const { return find( Qtopia::Emails ); } 215 QString emails() const { return find( Qtopia::Emails ); }
216 static int rtti(); 216 static int rtti();
217 int lastHitField() const {return m_lastHitField;};
218protected:
219 mutable int m_lastHitField;
220 void setLastHitField(int i) const { m_lastHitField = i; };
221 217
222private: 218private:
223 // The XML-Backend needs some access to the private functions 219 // The XML-Backend needs some access to the private functions
224 friend class OContactAccessBackend_XML; 220 friend class OContactAccessBackend_XML;
225 221
226 void insert( int key, const QString &value ); 222 void insert( int key, const QString &value );
227 void replace( int key, const QString &value ); 223 void replace( int key, const QString &value );
228 QString find( int key ) const; 224 QString find( int key ) const;
229 static QStringList fields(); 225 static QStringList fields();
230 226
231 void save( QString &buf ) const; 227 void save( QString &buf ) const;
232 228
233 QString displayAddress( const QString &street, 229 QString displayAddress( const QString &street,
234 const QString &city, 230 const QString &city,
235 const QString &state, 231 const QString &state,
236 const QString &zip, 232 const QString &zip,
237 const QString &country ) const; 233 const QString &country ) const;
238 234
239 QMap<int, QString> mMap; 235 QMap<int, QString> mMap;
240 ContactPrivate *d; 236 ContactPrivate *d;
241}; 237};
242 238
243 239
244#endif 240#endif