summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.h
authorzautrix <zautrix>2004-10-07 07:28:54 (UTC)
committer zautrix <zautrix>2004-10-07 07:28:54 (UTC)
commit77280f6a176a15b60004f312e6cacdfbbd3909c1 (patch) (side-by-side diff)
treee074d4abedc2f4cc575e5655575e038b9d460106 /korganizer/mainwindow.h
parentf1eb5b74c962909851607c4b4cb05ee18a347d37 (diff)
downloadkdepimpi-77280f6a176a15b60004f312e6cacdfbbd3909c1.zip
kdepimpi-77280f6a176a15b60004f312e6cacdfbbd3909c1.tar.gz
kdepimpi-77280f6a176a15b60004f312e6cacdfbbd3909c1.tar.bz2
sync changes
Diffstat (limited to 'korganizer/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.h70
1 files changed, 1 insertions, 69 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index 4f89e03..0da0be0 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -5,12 +5,12 @@
#include <qtimer.h>
#include <qdict.h>
#include <qfile.h>
-#include <qsocket.h>
#include <qtextstream.h>
#include <qregexp.h>
#include <libkcal/incidence.h>
#include "simplealarmclient.h"
+#include <ksyncmanager.h>
class QAction;
class CalendarView;
@@ -21,74 +21,7 @@ class KSyncProfile;
#define QPEMenuBar QMenuBar
#endif
class QPEToolBar;
-#include <qserversocket.h>
-#include <qsocket.h>
-#include <qnetworkprotocol.h>
-class KServerSocket : public QServerSocket
-{
- Q_OBJECT
-
-public:
- KServerSocket ( QString password, Q_UINT16 port, int backlog = 0, QObject * parent=0, const char * name=0 );
-
- void newConnection ( int socket ) ;
- void setFileName( QString fn ) {mFileName = fn;};
-
-signals:
- //void sendFile(QSocket*);
- //void getFile(QSocket*);
- void file_received( bool );
- //void file_sent();
- void saveFile();
- void endConnect();
-private slots:
- void discardClient();
- void readClient();
- void readBackFileFromSocket();
- private :
- bool blockRC;
- void send_file();
- void get_file();
- void end_connect();
- QDialog* mSyncActionDialog;
- QSocket* mSocket;
- QString mPassWord;
- QString mFileName;
- QTime piTime;
- QString piFileString;
-};
-
-class KCommandSocket : public QObject
-{
- Q_OBJECT
-public:
- enum state { successR, errorR, successW, errorW, quiet };
- KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 );
- void readFile( QString );
- void writeFile( QString );
- void sendStop();
-
-
-signals:
- void commandFinished( KCommandSocket*, int );
-private slots:
- void startReadFileFromSocket();
- void readFileFromSocket();
- void deleteSocket();
- void writeFileToSocket();
- private :
- QSocket* mSocket;
- QString mPassWord;
- Q_UINT16 mPort;
- QString mHost;
- QString mFileName;
- QTimer* mTimerSocket;
- int mRetVal;
- QTime mTime;
- QString mFileString;
- bool mFirst;
-};
namespace KCal {
class CalendarLocal;
@@ -209,7 +142,6 @@ class MainWindow : public QMainWindow
bool mBlockSaveFlag;
bool mCalendarModifiedFlag;
QPixmap loadPixmap( QString );
- QDialog * mSyncActionDialog;
};