Diffstat (limited to 'kaddressbook/xxport/vcard_xxport.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/xxport/vcard_xxport.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kaddressbook/xxport/vcard_xxport.cpp b/kaddressbook/xxport/vcard_xxport.cpp index adf47cd..4819341 100644 --- a/kaddressbook/xxport/vcard_xxport.cpp +++ b/kaddressbook/xxport/vcard_xxport.cpp @@ -92,3 +92,3 @@ bool VCardXXPort::exportContacts( const KABC::AddresseeList &list, const QString name = "addressbook.vcf"; - + #ifndef KAB_EMBEDDED @@ -98,5 +98,5 @@ bool VCardXXPort::exportContacts( const KABC::AddresseeList &list, const QString #endif //KAB_EMBEDDED - + if ( fileName.isEmpty() ) - return true; + return false; @@ -170,9 +170,9 @@ KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const } - + } - + #else //KAB_EMBEDDED - - + + if ( !XXPortManager::importData.isEmpty() ) @@ -185,3 +185,3 @@ KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const return addrList; - + } @@ -193,6 +193,6 @@ KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const return addrList; - + } - + QFile file( fileName ); @@ -205,6 +205,6 @@ KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const addrList = parseVCard( data ); - + } -#endif //KAB_EMBEDDED - +#endif //KAB_EMBEDDED + return addrList; @@ -213,4 +213,4 @@ KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const KABC::AddresseeList VCardXXPort::parseVCard( const QString &data ) const -{ - +{ + KABC::VCardTool tool; |