-rw-r--r-- | kaddressbook/xxport/qtopia_xxport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbook/xxport/qtopia_xxport.cpp b/kaddressbook/xxport/qtopia_xxport.cpp index fc4abbb..e3457a1 100644 --- a/kaddressbook/xxport/qtopia_xxport.cpp +++ b/kaddressbook/xxport/qtopia_xxport.cpp | |||
@@ -52,35 +52,35 @@ extern "C" | |||
52 | { | 52 | { |
53 | return ( new QtopiaXXPortFactory() ); | 53 | return ( new QtopiaXXPortFactory() ); |
54 | } | 54 | } |
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
58 | 58 | ||
59 | QtopiaXXPort::QtopiaXXPort( KABC::AddressBook *ab, QWidget *parent, const char *name ) | 59 | QtopiaXXPort::QtopiaXXPort( KABC::AddressBook *ab, QWidget *parent, const char *name ) |
60 | : XXPortResourceObject( ab, parent, name ) | 60 | : XXPortResourceObject( ab, parent, name ) |
61 | { | 61 | { |
62 | defaultFileName = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml"; | 62 | defaultFileName = QDir::homeDirPath() + "/Applications/addressbook/addressbook.xml"; |
63 | 63 | ||
64 | if ( mFactory && !mFactory->typeName( "qtopia" ).isEmpty() ) | 64 | if ( mFactory && !mFactory->typeName( "qtopia" ).isEmpty() ) |
65 | { | 65 | { |
66 | createImportAction( i18n( "Import xml (Qtopia)..." ) ); | 66 | createImportAction( i18n( "Import xml (Qtopia)..." ) ); |
67 | createExportAction( i18n( "Export xml (Qtopia)..." ) ); | 67 | createExportAction( i18n( "Export xml (Qtopia)..." ) ); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
71 | bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QString &identifier ) | 71 | bool QtopiaXXPort::exportContacts( const KABC::AddresseeList &list, const QString &identifier ) |
72 | { | 72 | { |
73 | QString fn =KFileDialog::getSaveFileName( defaultFileName, i18n("Import xml file"), 0 ); | 73 | QString fn =KFileDialog::getSaveFileName( defaultFileName, i18n("Import xml file"), 0 ); |
74 | if ( fn == "" ) | 74 | if ( fn == "" ) |
75 | return false; | 75 | return false; |
76 | 76 | ||
77 | return _exportContacts( list, identifier, fn ); | 77 | return _exportContacts( list, identifier, fn ); |
78 | } | 78 | } |
79 | 79 | ||
80 | KABC::AddresseeList QtopiaXXPort::importContacts( const QString &identifier ) const | 80 | KABC::AddresseeList QtopiaXXPort::importContacts( const QString &identifier ) const |
81 | { | 81 | { |
82 | QString fn =KFileDialog::getOpenFileName( defaultFileName, i18n("Import xml file"), 0 ); | 82 | QString fn =KFileDialog::getOpenFileName( defaultFileName, i18n("Import xml file"), 0 ); |
83 | if ( fn == "" ) | 83 | if ( fn == "" ) |
84 | return KABC::AddresseeList() ; | 84 | return KABC::AddresseeList() ; |
85 | return _importContacts( identifier, fn ); | 85 | return _importContacts( identifier, fn ); |
86 | } | 86 | } |