author | zautrix <zautrix> | 2005-02-24 02:01:08 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-24 02:01:08 (UTC) |
commit | 5af16f69232073d1fa46d2dea3774beaaafb00c5 (patch) (side-by-side diff) | |
tree | 0790afdd906df50520ac4415a9d35b95107d4d48 /libkdepim/ksyncmanager.h | |
parent | 513496c67403deb04339cfc87143ed5554720e32 (diff) | |
download | kdepimpi-5af16f69232073d1fa46d2dea3774beaaafb00c5.zip kdepimpi-5af16f69232073d1fa46d2dea3774beaaafb00c5.tar.gz kdepimpi-5af16f69232073d1fa46d2dea3774beaaafb00c5.tar.bz2 |
socket fixes
-rw-r--r-- | libkdepim/ksyncmanager.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h index 810a515..bd3ecdc 100644 --- a/libkdepim/ksyncmanager.h +++ b/libkdepim/ksyncmanager.h @@ -46,45 +46,48 @@ class KServerSocket : public QServerSocket 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 file_received( bool ); void request_file(); void saveFile(); void endConnect(); private slots: void discardClient(); + void deleteSocket(); void readClient(); + void displayErrorMessage(); void readBackFileFromSocket(); private : + int mErrorMessage; bool blockRC; void send_file(); void get_file(); void end_connect(); - void error_connect(); + void error_connect( QString ); 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, errorTO, errorPW,quiet }; + enum state { successR, errorR, successW, errorW, errorTO, errorPW, errorCA, errorFI, errorUN,quiet }; KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, QWidget* cap = 0, const char * name=0 ); void readFile( QString ); void writeFile( QString ); void sendStop(); private slots : void sendFileRequest(); signals: void commandFinished( KCommandSocket*, int ); private slots: void startReadFileFromSocket(); |