#ifndef JCESSLCLIENT_H #define JCESSLCLIENT_H #include #include #include #include #include #include #define milisTimeOut 3500 #include class jceSSLClient : QSslSocket { Q_OBJECT public: jceSSLClient(QObject *parent = 0); bool makeConnect(std::string server,int port); bool isConnected(); bool sendData(std::string str); bool recieveData(std::string &str, bool fast); bool makeDiconnect(); private slots: void checkErrors(QAbstractSocket::SocketError); void setConnected(); void setEncrypted(); void setDisconnected(); void readIt(); private: bool flag; QString packet; QPlainTextEdit* debugEdit; }; #endif // JCESSLCLIENT_H