jce-manager/src/connection/qtsslsocket.h
2014-06-18 21:42:46 +03:00

33 lines
579 B
C++

#ifndef QTSSLSOCKET_H
#define QTSSLSOCKET_H
#include <QObject>
#include <QSslSocket>
#include <QtNetwork/QSslCipher>
#include <QString>
#include <iostream>
#include <string>
#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