summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncmanager.cpp
authorzautrix <zautrix>2004-10-26 22:56:24 (UTC)
committer zautrix <zautrix>2004-10-26 22:56:24 (UTC)
commit00d623c9391a9bdaeb142f443f1dd09861317608 (patch) (side-by-side diff)
tree941b77a6da7a5db84ed9f4c00ab18918231cb643 /libkdepim/ksyncmanager.cpp
parent6385f303bef3cbcd19d097a7b05c30e144d5dd6e (diff)
downloadkdepimpi-00d623c9391a9bdaeb142f443f1dd09861317608.zip
kdepimpi-00d623c9391a9bdaeb142f443f1dd09861317608.tar.gz
kdepimpi-00d623c9391a9bdaeb142f443f1dd09861317608.tar.bz2
added external time for pisync - kdesync
Diffstat (limited to 'libkdepim/ksyncmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index feb184b..e09050e 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -57,2 +57,5 @@
+QDateTime KSyncManager::mRequestedSyncEvent;
+
+
KSyncManager::KSyncManager(QWidget* parent, KSyncInterface* implementation, TargetApp ta, KPimPrefs* prefs, QPopupMenu* syncmenu)
@@ -1113,5 +1116,12 @@ void KServerSocket::readClient()
if ( tokens[0] == "GET" ) {
- if ( tokens[1] == mPassWord )
+ if ( tokens[1] == mPassWord ) {
//emit sendFile( mSocket );
+ bool ok = false;
+ QDateTime dt = KGlobal::locale()->readDateTime( tokens[2], KLocale::ISODate, &ok);
+ if ( ok )
+ KSyncManager::mRequestedSyncEvent = dt;
+ else
+ KSyncManager::mRequestedSyncEvent = QDateTime();
send_file();
+ }
else {
@@ -1269,3 +1279,5 @@ void KCommandSocket::readFile( QString fn )
os.setEncoding( QTextStream::Latin1 );
- os << "GET " << mPassWord << "\r\n";
+
+ QString curDt = KGlobal::locale()->formatDateTime(QDateTime::currentDateTime().addSecs(-1),true, true,KLocale::ISODate );
+ os << "GET " << mPassWord << curDt <<"\r\n";
mTimerSocket->start( 20000 );