#ifndef QTSSLSOCKET_H #define QTSSLSOCKET_H #include #include #include #include #include #include #define milisTimeOut 5000 class qtsslsocket : public QObject { Q_OBJECT public: qtsslsocket(std::string server,int port); ~qtsslsocket() { socket->close(); socket = NULL; } bool isCon(); bool send(std::string str); bool recieve(std::string &str); private: QSslSocket *socket; bool flag; }; #endif // QTSSLSOCKET_H