-rw-r--r-- | korganizer/mainwindow.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 8b76067..5a67765 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h @@ -48,8 +48,9 @@ private slots: void readBackFileFromSocket(); private : void send_file(); void get_file(); + void end_connect(); QDialog* mSyncActionDialog; QSocket* mSocket; QString mPassWord; QString mFileName; @@ -64,12 +65,13 @@ class KCommandSocket : public QObject public: 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( bool ); + void commandFinished( KCommandSocket*, bool ); private slots: void startReadFileFromSocket(); void readFileFromSocket(); void deleteSocket(); @@ -159,21 +161,16 @@ class MainWindow : public QMainWindow private slots: QSocket* piSocket; QString piFileString; QTime piTime; - void deleteCommandSocket(bool); - void deleteCommandSocketFinish(); + void deleteCommandSocket(KCommandSocket* s, bool success); + void deleteCommandSocketFinish(KCommandSocket* s, bool success); void fillSyncMenu(); - void sendFile(QSocket* s); void getFile( bool ); void readFileFromSocket(); - void readBackFileFromSocket(); - void endConnect(); private: //QTimer* mTimerCommandSocket; QString mPassWordPiSync; - KCommandSocket* mCommandSocket; - QSocket* mCommandSocketFinish; KServerSocket * mServerSocket; bool mClosed; void saveOnClose(); int mCurrentSyncProfile; |