author | zecke <zecke> | 2003-06-20 15:40:07 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-06-20 15:40:07 (UTC) |
commit | ec80e207cce9ebb55be771603fc47a4e7892fd6c (patch) (unidiff) | |
tree | 0ec055e15a0ca1ec9ff0e9c674ecbcca389acbf4 /libopie2/opiepim/ocontact.cpp | |
parent | c57f817ceca0eff0f6f3e90ad01654252911c1c5 (diff) | |
download | opie-ec80e207cce9ebb55be771603fc47a4e7892fd6c.zip opie-ec80e207cce9ebb55be771603fc47a4e7892fd6c.tar.gz opie-ec80e207cce9ebb55be771603fc47a4e7892fd6c.tar.bz2 |
toExtraMap is no more virtual
we save custom entries now
setExtraMap added as well
Diffstat (limited to 'libopie2/opiepim/ocontact.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/ocontact.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index a2fb68c..be4ce0a 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp | |||
@@ -432,25 +432,25 @@ QMap<int, QString> OContact::toMap() const | |||
432 | Returns a rich text formatted QString representing the contents the contact. | 432 | Returns a rich text formatted QString representing the contents the contact. |
433 | */ | 433 | */ |
434 | QString OContact::toRichText() const | 434 | QString OContact::toRichText() const |
435 | { | 435 | { |
436 | QString text; | 436 | QString text; |
437 | QString value, comp, state; | 437 | QString value, comp, state; |
438 | QString str; | 438 | QString str; |
439 | bool marker = false; | 439 | bool marker = false; |
440 | 440 | ||
441 | // name, jobtitle and company | 441 | // name, jobtitle and company |
442 | if ( !(value = fullName()).isEmpty() ) | 442 | if ( !(value = fullName()).isEmpty() ) |
443 | text += "<b><h3><img src=\"addressbook/AddressBook\">" + Qtopia::escapeString(value) + "</h3></b>"; | 443 | text += "<b><h3><img src=\"addressbook/AddressBook\">" + Qtopia::escapeString(value) + "</h3></b>"; |
444 | 444 | ||
445 | if ( !(value = jobTitle()).isEmpty() ) | 445 | if ( !(value = jobTitle()).isEmpty() ) |
446 | text += Qtopia::escapeString(value) + "<br>"; | 446 | text += Qtopia::escapeString(value) + "<br>"; |
447 | 447 | ||
448 | comp = company(); | 448 | comp = company(); |
449 | if ( !(value = department()).isEmpty() ) { | 449 | if ( !(value = department()).isEmpty() ) { |
450 | text += Qtopia::escapeString(value); | 450 | text += Qtopia::escapeString(value); |
451 | if ( comp ) | 451 | if ( comp ) |
452 | text += ", "; | 452 | text += ", "; |
453 | else | 453 | else |
454 | text += "<br>"; | 454 | text += "<br>"; |
455 | } | 455 | } |
456 | if ( !comp.isEmpty() ) | 456 | if ( !comp.isEmpty() ) |
@@ -973,31 +973,25 @@ bool OContact::match( const QRegExp &r ) const | |||
973 | } | 973 | } |
974 | 974 | ||
975 | 975 | ||
976 | QString OContact::toShortText() const | 976 | QString OContact::toShortText() const |
977 | { | 977 | { |
978 | return ( fullName() ); | 978 | return ( fullName() ); |
979 | } | 979 | } |
980 | QString OContact::type() const | 980 | QString OContact::type() const |
981 | { | 981 | { |
982 | return QString::fromLatin1( "OContact" ); | 982 | return QString::fromLatin1( "OContact" ); |
983 | } | 983 | } |
984 | 984 | ||
985 | // Definition is missing ! (se) | 985 | |
986 | QMap<QString,QString> OContact::toExtraMap() const | ||
987 | { | ||
988 | qWarning ("Function not implemented: OContact::toExtraMap()"); | ||
989 | QMap <QString,QString> useless; | ||
990 | return useless; | ||
991 | } | ||
992 | 986 | ||
993 | class QString OContact::recordField( int pos ) const | 987 | class QString OContact::recordField( int pos ) const |
994 | { | 988 | { |
995 | QStringList SLFIELDS = fields(); // ?? why this ? (se) | 989 | QStringList SLFIELDS = fields(); // ?? why this ? (se) |
996 | return SLFIELDS[pos]; | 990 | return SLFIELDS[pos]; |
997 | } | 991 | } |
998 | 992 | ||
999 | // In future releases, we should store birthday and anniversary | 993 | // In future releases, we should store birthday and anniversary |
1000 | // internally as QDate instead of QString ! | 994 | // internally as QDate instead of QString ! |
1001 | // QString is always too complicate to interprete (DD.MM.YY, DD/MM/YY, MM/DD/YY, etc..)(se) | 995 | // QString is always too complicate to interprete (DD.MM.YY, DD/MM/YY, MM/DD/YY, etc..)(se) |
1002 | 996 | ||
1003 | /*! \fn void OContact::setBirthday( const QDate& date ) | 997 | /*! \fn void OContact::setBirthday( const QDate& date ) |