From 4d0773414a0fb59e53f30d4d2363f73304f474dc Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 18 Nov 2002 09:36:41 +0000 Subject: Back to main tree.. Waiting for feature freeze --- (limited to 'libopie2/opiepim/ocontact.h') diff --git a/libopie2/opiepim/ocontact.h b/libopie2/opiepim/ocontact.h index 9643e8b..d97af1c 100644 --- a/libopie2/opiepim/ocontact.h +++ b/libopie2/opiepim/ocontact.h @@ -34,16 +34,8 @@ QPC_TEMPLATEEXTERN template class QPC_EXPORT QMap; // MOC_SKIP_END #endif -class ContactPrivate; // Wozu ist das gut und wo ist das decrariert ? (se) - /* Stefan das ist eine forward declaration - * dann machst du in der private section - * ContactPrivate *d; - * - * und wenn du bei Opie1.1 was hinzufuegen moechtest - * packst du es in ContactPrivate damit Opie - * binaer kompatibel bleibt - * -zecke - */ +class ContactPrivate; + class QPC_EXPORT OContact : public OPimRecord { friend class DataSet; @@ -52,11 +44,6 @@ public: OContact( const QMap &fromMap ); virtual ~OContact(); - /* VCARD stuff should vanish! -zecke */ - static void writeVCard( const QString &filename, const QValueList &contacts); - static void writeVCard( const QString &filename, const OContact &c ); - static QValueList readVCard( const QString &filename ); - enum journal_action { ACTION_ADD, ACTION_REMOVE, ACTION_REPLACE }; /* @@ -206,23 +193,13 @@ public: // const QString &customField( const QString &key ) // { return find( Custom- + key ); } - static QStringList fields(); - static QStringList trfields(); - static QStringList untrfields(); QString toRichText() const; QMap toMap() const; QString field( int key ) const { return find( key ); } - // journaling... - /* do we still need them? Stefan your backend takes care of these -zecke */ - void saveJournal( journal_action action, const QString &key = QString::null ); - void save( QString &buf ) const; - - /* we shouldn't inline this one -zecke */ - void setUid( int i ) -{ OPimRecord::setUid(i); replace( Qtopia::AddressUid , QString::number(i)); } + void setUid( int i ); QString toShortText()const; QString OContact::type()const; @@ -237,18 +214,15 @@ public: private: - /* I do not like friends ;) - * besides that I think we do not need them - * anymore -zecke - */ - friend class AbEditor; - friend class AbTable; - friend class AddressBookAccessPrivate; - friend class XMLIO; + // The XML-Backend needs some access to the private functions + friend class OContactAccessBackend_XML; void insert( int key, const QString &value ); void replace( int key, const QString &value ); QString find( int key ) const; + static QStringList fields(); + + void save( QString &buf ) const; QString displayAddress( const QString &street, const QString &city, -- cgit v0.9.0.2