summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.h
Unidiff
Diffstat (limited to 'korganizer/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/mainwindow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index ba627b9..7b24b88 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -26,48 +26,49 @@ class QPEToolBar;
26#include <qnetworkprotocol.h> 26#include <qnetworkprotocol.h>
27 27
28class KServerSocket : public QServerSocket 28class KServerSocket : public QServerSocket
29{ 29{
30 Q_OBJECT 30 Q_OBJECT
31 31
32public: 32public:
33 KServerSocket ( QString password, Q_UINT16 port, int backlog = 0, QObject * parent=0, const char * name=0 ); 33 KServerSocket ( QString password, Q_UINT16 port, int backlog = 0, QObject * parent=0, const char * name=0 );
34 34
35 void newConnection ( int socket ) ; 35 void newConnection ( int socket ) ;
36 void setFileName( QString fn ) {mFileName = fn;}; 36 void setFileName( QString fn ) {mFileName = fn;};
37 37
38signals: 38signals:
39 //void sendFile(QSocket*); 39 //void sendFile(QSocket*);
40 //void getFile(QSocket*); 40 //void getFile(QSocket*);
41 void file_received( bool ); 41 void file_received( bool );
42 //void file_sent(); 42 //void file_sent();
43 void saveFile(); 43 void saveFile();
44 void endConnect(); 44 void endConnect();
45private slots: 45private slots:
46 void discardClient(); 46 void discardClient();
47 void readClient(); 47 void readClient();
48 void readBackFileFromSocket(); 48 void readBackFileFromSocket();
49 private : 49 private :
50 bool blockRC;
50 void send_file(); 51 void send_file();
51 void get_file(); 52 void get_file();
52 void end_connect(); 53 void end_connect();
53 QDialog* mSyncActionDialog; 54 QDialog* mSyncActionDialog;
54 QSocket* mSocket; 55 QSocket* mSocket;
55 QString mPassWord; 56 QString mPassWord;
56 QString mFileName; 57 QString mFileName;
57 QTime piTime; 58 QTime piTime;
58 QString piFileString; 59 QString piFileString;
59}; 60};
60 61
61class KCommandSocket : public QObject 62class KCommandSocket : public QObject
62{ 63{
63 Q_OBJECT 64 Q_OBJECT
64public: 65public:
65 enum state { successR, errorR, successW, errorW, quiet }; 66 enum state { successR, errorR, successW, errorW, quiet };
66 KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 ); 67 KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 );
67 void readFile( QString ); 68 void readFile( QString );
68 void writeFile( QString ); 69 void writeFile( QString );
69 void sendStop(); 70 void sendStop();
70 71
71 72
72signals: 73signals:
73 void commandFinished( KCommandSocket*, int ); 74 void commandFinished( KCommandSocket*, int );