summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncmanager.h
authorzautrix <zautrix>2004-10-07 19:42:44 (UTC)
committer zautrix <zautrix>2004-10-07 19:42:44 (UTC)
commit0a661f5800b86df385cc23f4c9a8324bd0b50a5c (patch) (side-by-side diff)
treefcc17cfad0ffd022a4b92974bc53d39ba3f650de /libkdepim/ksyncmanager.h
parent1f1538e5707b59bfcff2014901f29a65589229e3 (diff)
downloadkdepimpi-0a661f5800b86df385cc23f4c9a8324bd0b50a5c.zip
kdepimpi-0a661f5800b86df385cc23f4c9a8324bd0b50a5c.tar.gz
kdepimpi-0a661f5800b86df385cc23f4c9a8324bd0b50a5c.tar.bz2
sync fix
Diffstat (limited to 'libkdepim/ksyncmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.h93
1 files changed, 37 insertions, 56 deletions
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h
index 7027894..1f7c7e7 100644
--- a/libkdepim/ksyncmanager.h
+++ b/libkdepim/ksyncmanager.h
@@ -1,21 +1,21 @@
/*
- This file is part of KDE-Pim/Pi.
- Copyright (c) 2004 Ulf Schenk
+ This file is part of KDE-Pim/Pi.
+ Copyright (c) 2004 Ulf Schenk
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
-$Id$
+ $Id$
*/
@@ -45,3 +45,3 @@ class KServerSocket : public QServerSocket
-public:
+ public:
KServerSocket ( QString password, Q_UINT16 port, int backlog = 0, QObject * parent=0, const char * name=0 );
@@ -50,4 +50,3 @@ public:
void setFileName( QString fn ) {mFileName = fn;};
-
-signals:
+ signals:
void file_received( bool );
@@ -56,3 +55,3 @@ signals:
void endConnect();
-private slots:
+ private slots:
void discardClient();
@@ -76,3 +75,3 @@ class KCommandSocket : public QObject
Q_OBJECT
-public:
+ public:
enum state { successR, errorR, successW, errorW, errorTO, quiet };
@@ -82,7 +81,6 @@ public:
void sendStop();
-
-
-signals:
+
+ signals:
void commandFinished( KCommandSocket*, int );
-private slots:
+ private slots:
void startReadFileFromSocket();
@@ -107,10 +105,9 @@ class KSyncManager : public QObject
{
- Q_OBJECT
+ Q_OBJECT
- public:
+ public:
enum TargetApp {
- KOPI = 0,
- KAPI = 1,
- PWMPI = 2 };
-
+ KOPI = 0,
+ KAPI = 1,
+ PWMPI = 2 };
@@ -125,3 +122,2 @@ class KSyncManager : public QObject
QString syncFileName();
- void fillSyncMenu();
@@ -134,3 +130,3 @@ class KSyncManager : public QObject
- // sync stuff
+ // sync stuff
QString mLocalMachineName;
@@ -140,7 +136,4 @@ class KSyncManager : public QObject
bool mShowSyncSummary;
- bool mShowSyncEvents;
- bool mShowTodoInAgenda;
bool mWriteBackExistingOnly;
int mSyncAlgoPrefs;
- int mRingSyncAlgoPrefs;
bool mWriteBackFile;
@@ -159,3 +152,3 @@ class KSyncManager : public QObject
- public slots:
+ public slots:
void slotSyncMenu( int );
@@ -163,6 +156,5 @@ class KSyncManager : public QObject
void readFileFromSocket();
+ void fillSyncMenu();
private:
- // LR *******************************
- // sync stuff!
void syncPi();
@@ -175,3 +167,3 @@ class KSyncManager : public QObject
void quickSyncLocalFile();
- bool syncWithFile( QString fn , bool quick );
+ bool syncWithFile( QString fn , bool quick );
void syncLocalFile();
@@ -186,10 +178,6 @@ class KSyncManager : public QObject
- private slots:
+ private slots:
void confSync();
- // *********************
-
private:
bool mBlockSaveFlag;
-
-
QWidget* mParent;
@@ -198,9 +186,4 @@ class KSyncManager : public QObject
QPopupMenu* mSyncMenu;
-
QProgressBar* bar;
-
-
-
-
};
@@ -210,12 +193,10 @@ class KSyncInterface
{
-
-
public :
virtual bool sync(KSyncManager* manager, QString filename, int mode) = 0;
-
virtual bool syncExternal(KSyncManager* manager, QString resource)
- {
- // empty implementation, because some syncable applications do not have an external(sharpdtm) syncmode, like pwmanager.
- return false;
- }
+ {
+ // empty implementation, because some syncable applications do not
+ // have an external(sharpdtm) syncmode, like pwmanager.
+ return false;
+ }