-rw-r--r-- | libopie/pim/ocontact.cpp | 12 |
1 files changed, 6 insertions, 6 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 | |||
@@ -1388,46 +1388,46 @@ bool OContact::match( const QString ®exp ) const | |||
1388 | { | 1388 | { |
1389 | return match(QRegExp(regexp)); | 1389 | return match(QRegExp(regexp)); |
1390 | } | 1390 | } |
1391 | 1391 | ||
1392 | /*! | 1392 | /*! |
1393 | \overload | 1393 | \overload |
1394 | Returns TRUE if the contact matches the regular expression \a regexp. | 1394 | Returns TRUE if the contact matches the regular expression \a regexp. |
1395 | Otherwise returns FALSE. | 1395 | Otherwise returns FALSE. |
1396 | */ | 1396 | */ |
1397 | bool OContact::match( const QRegExp &r ) const | 1397 | bool OContact::match( const QRegExp &r ) const |
1398 | { | 1398 | { |
1399 | bool match; | 1399 | bool match; |
1400 | match = false; | 1400 | match = false; |
1401 | QMap<int, QString>::ConstIterator it; | 1401 | QMap<int, QString>::ConstIterator it; |
1402 | for ( it = mMap.begin(); it != mMap.end(); ++it ) { | 1402 | for ( it = mMap.begin(); it != mMap.end(); ++it ) { |
1403 | if ( (*it).find( r ) > -1 ) { | 1403 | if ( (*it).find( r ) > -1 ) { |
1404 | match = true; | 1404 | match = true; |
1405 | break; | 1405 | break; |
1406 | } | 1406 | } |
1407 | } | 1407 | } |
1408 | return match; | 1408 | return match; |
1409 | } | 1409 | } |
1410 | 1410 | ||
1411 | 1411 | ||
1412 | // Noch nicht definiert ! :SX | ||
1413 | QString OContact::toShortText() const | 1412 | QString OContact::toShortText() const |
1414 | { | 1413 | { |
1415 | return ( QString::fromLatin1( "Not defined!") ); | 1414 | return ( fullName() ); |
1416 | } | 1415 | } |
1417 | QString OContact::type() const | 1416 | QString OContact::type() const |
1418 | { | 1417 | { |
1419 | return QString::fromLatin1( "OContact" ); | 1418 | return QString::fromLatin1( "OContact" ); |
1420 | } | 1419 | } |
1421 | 1420 | ||
1422 | // Noch nicht definiert ! :SX | 1421 | // Definition is missing ! (se) |
1423 | QMap<QString,QString> OContact::toExtraMap() const | 1422 | QMap<QString,QString> OContact::toExtraMap() const |
1424 | { | 1423 | { |
1424 | qWarning ("Function not implemented: OContact::toExtraMap()"); | ||
1425 | QMap <QString,QString> useless; | 1425 | QMap <QString,QString> useless; |
1426 | return useless; | 1426 | return useless; |
1427 | } | 1427 | } |
1428 | 1428 | ||
1429 | // Noch nicht definiert ! :SX | 1429 | class QString OContact::recordField( int pos ) const |
1430 | class QString OContact::recordField(int) const | ||
1431 | { | 1430 | { |
1432 | return QString::fromLatin1( "Noch nicht implementiert !" ); | 1431 | QStringList SLFIELDS = fields(); // ?? why this ? (se) |
1432 | return SLFIELDS[pos]; | ||
1433 | } | 1433 | } |