-rw-r--r-- | korganizer/mainwindow.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 11a816c..8b76067 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h @@ -30,23 +30,34 @@ 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 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 : + void send_file(); + void get_file(); + QDialog* mSyncActionDialog; QSocket* mSocket; QString mPassWord; + QString mFileName; + QTime piTime; + QString piFileString; }; class KCommandSocket : public QObject { Q_OBJECT @@ -150,13 +161,13 @@ class MainWindow : public QMainWindow QString piFileString; QTime piTime; void deleteCommandSocket(bool); void deleteCommandSocketFinish(); void fillSyncMenu(); void sendFile(QSocket* s); - void getFile(QSocket* socket); + void getFile( bool ); void readFileFromSocket(); void readBackFileFromSocket(); void endConnect(); private: //QTimer* mTimerCommandSocket; QString mPassWordPiSync; |