From 213a9d993e5a4751b64e18320cfbebb000681d13 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 09 Oct 2004 21:35:22 +0000 Subject: ab phone sync implemented --- (limited to 'libkcal') diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index c39413e..3555dc6 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp @@ -291,16 +291,12 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal) QString fileName; #ifdef _WIN32_ - fileName = locateLocal("tmp", "tempfile.vcs"); + fileName = locateLocal("tmp", "phonefile.vcs"); #else - fileName = "/tmp/kdepimtemp.vcs"; + fileName = "/tmp/phonefile.vcs"; #endif -#ifdef DESKTOP_VERSION - QString command ="./kammu --backup " + fileName + " -yes" ; -#else - QString command ="kammu --backup " + fileName + " -yes" ; -#endif - int ret = system ( command.latin1() ); + QString command; + int ret = PhoneAccess::readFromPhone( fileName ); if ( ret != 0 ) { qDebug("Error::command returned %d", ret); return false; -- cgit v0.9.0.2