-rw-r--r-- | kaddressbook/kabcore.cpp | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 185cf46..7bec90a 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -23,3 +23,3 @@ | |||
23 | 23 | ||
24 | /* | 24 | /*s |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
@@ -41,2 +41,3 @@ $Id$ | |||
41 | #include <qprogressbar.h> | 41 | #include <qprogressbar.h> |
42 | #include <libkdepim/phoneaccess.h> | ||
42 | 43 | ||
@@ -675,4 +676,4 @@ void KABCore::export2phone() | |||
675 | 676 | ||
676 | #if 0 | 677 | |
677 | PhoneFormat::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, | 678 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, |
678 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, | 679 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, |
@@ -680,12 +681,12 @@ void KABCore::export2phone() | |||
680 | 681 | ||
682 | QStringList uids = mViewManager->selectedUids(); | ||
683 | if ( uids.isEmpty() ) | ||
684 | return; | ||
681 | 685 | ||
686 | #ifdef _WIN32_ | ||
687 | QString fileName = locateLocal("tmp", "tempfile.vcf"); | ||
688 | #else | ||
689 | QString fileName = "/tmp/kdepimtemp.vcf"; | ||
690 | #endif | ||
682 | 691 | ||
683 | |||
684 | |||
685 | QString fileName = "/tmp/kapibeamfile.vcf"; | ||
686 | |||
687 | |||
688 | //QDir().mkdir( dirName, true ); | ||
689 | |||
690 | |||
691 | KABC::VCardConverter converter; | 692 | KABC::VCardConverter converter; |
@@ -720,3 +721,2 @@ void KABCore::export2phone() | |||
720 | } | 721 | } |
721 | #ifndef DESKTOP_VERSION | ||
722 | QFile outFile(fileName); | 722 | QFile outFile(fileName); |
@@ -728,13 +728,9 @@ void KABCore::export2phone() | |||
728 | outFile.close(); | 728 | outFile.close(); |
729 | Ir *ir = new Ir( this ); | ||
730 | connect( ir, SIGNAL( done(Ir*) ), this, SLOT( beamDone(Ir*) ) ); | ||
731 | ir->send( fileName, description, "text/x-vCard" ); | ||
732 | } else { | 729 | } else { |
733 | qDebug("Error open temp beam file "); | 730 | qDebug("Error open temp file "); |
734 | return; | 731 | return; |
735 | } | 732 | } |
736 | #endif | ||
737 | |||
738 | 733 | ||
739 | 734 | ||
735 | #if 0 | ||
740 | 736 | ||