author | eilers <eilers> | 2002-10-01 16:20:40 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-01 16:20:40 (UTC) |
commit | 541bd9eaebd630a39a9f1df320bf6e46d499c10a (patch) (side-by-side diff) | |
tree | b897e17212c13432b142574ed4e23f59020e5a5d | |
parent | 3352558f31f2f3f5f32730a28f07161fe71787a9 (diff) | |
download | opie-541bd9eaebd630a39a9f1df320bf6e46d499c10a.zip opie-541bd9eaebd630a39a9f1df320bf6e46d499c10a.tar.gz opie-541bd9eaebd630a39a9f1df320bf6e46d499c10a.tar.bz2 |
Implementation of some virtual methods
-rw-r--r-- | libopie/pim/ocontact.cpp | 12 | ||||
-rw-r--r-- | libopie/pim/ocontact.h | 11 | ||||
-rw-r--r-- | libopie2/opiepim/ocontact.cpp | 12 | ||||
-rw-r--r-- | libopie2/opiepim/ocontact.h | 11 |
4 files changed, 26 insertions, 20 deletions
diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index 66632f5..828a9de 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp @@ -1411,6 +1411,5 @@ bool OContact::match( const QRegExp &r ) const -// Noch nicht definiert ! :SX QString OContact::toShortText() const { - return ( QString::fromLatin1( "Not defined!") ); + return ( fullName() ); } @@ -1421,5 +1420,6 @@ QString OContact::type() const -// Noch nicht definiert ! :SX +// Definition is missing ! (se) QMap<QString,QString> OContact::toExtraMap() const { + qWarning ("Function not implemented: OContact::toExtraMap()"); QMap <QString,QString> useless; @@ -1428,6 +1428,6 @@ QMap<QString,QString> OContact::toExtraMap() const -// Noch nicht definiert ! :SX -class QString OContact::recordField(int) const +class QString OContact::recordField( int pos ) const { - return QString::fromLatin1( "Noch nicht implementiert !" ); + QStringList SLFIELDS = fields(); // ?? why this ? (se) + return SLFIELDS[pos]; } diff --git a/libopie/pim/ocontact.h b/libopie/pim/ocontact.h index e0555c8..756c87d 100644 --- a/libopie/pim/ocontact.h +++ b/libopie/pim/ocontact.h @@ -210,2 +210,9 @@ public: + // Why private ? (eilers,se) + QString emailSeparator() const { return " "; } + // the emails should be seperated by a comma + void setEmails( const QString &v ); + QString emails() const { return find( Qtopia::Emails ); } + + private: @@ -216,6 +223,2 @@ private: - QString emailSeparator() const { return " "; } - // the emails should be seperated by a comma - void setEmails( const QString &v ); - QString emails() const { return find( Qtopia::Emails ); } diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index 66632f5..828a9de 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp @@ -1411,6 +1411,5 @@ bool OContact::match( const QRegExp &r ) const -// Noch nicht definiert ! :SX QString OContact::toShortText() const { - return ( QString::fromLatin1( "Not defined!") ); + return ( fullName() ); } @@ -1421,5 +1420,6 @@ QString OContact::type() const -// Noch nicht definiert ! :SX +// Definition is missing ! (se) QMap<QString,QString> OContact::toExtraMap() const { + qWarning ("Function not implemented: OContact::toExtraMap()"); QMap <QString,QString> useless; @@ -1428,6 +1428,6 @@ QMap<QString,QString> OContact::toExtraMap() const -// Noch nicht definiert ! :SX -class QString OContact::recordField(int) const +class QString OContact::recordField( int pos ) const { - return QString::fromLatin1( "Noch nicht implementiert !" ); + QStringList SLFIELDS = fields(); // ?? why this ? (se) + return SLFIELDS[pos]; } diff --git a/libopie2/opiepim/ocontact.h b/libopie2/opiepim/ocontact.h index e0555c8..756c87d 100644 --- a/libopie2/opiepim/ocontact.h +++ b/libopie2/opiepim/ocontact.h @@ -210,2 +210,9 @@ public: + // Why private ? (eilers,se) + QString emailSeparator() const { return " "; } + // the emails should be seperated by a comma + void setEmails( const QString &v ); + QString emails() const { return find( Qtopia::Emails ); } + + private: @@ -216,6 +223,2 @@ private: - QString emailSeparator() const { return " "; } - // the emails should be seperated by a comma - void setEmails( const QString &v ); - QString emails() const { return find( Qtopia::Emails ); } |