jce-manager/src/connection/qtsslsocket.h

33 lines
549 B
C
Raw Normal View History

2014-06-14 17:02:50 +00:00
#ifndef QTSSLSOCKET_H
#define QTSSLSOCKET_H
#include <QObject>
#include <QSslSocket>
#include <QtNetwork/QSslCipher>
#include <QString>
#include <iostream>
#include <string>
2014-06-18 23:44:46 +00:00
#define milisTimeOut 3000
2014-06-14 17:02:50 +00:00
class qtsslsocket : public QObject
{
Q_OBJECT
public:
2014-06-18 23:44:46 +00:00
qtsslsocket();
~qtsslsocket();
bool makeConnect(std::string server,int port);
2014-06-14 17:02:50 +00:00
bool isCon();
bool send(std::string str);
bool recieve(std::string &str);
private:
2014-06-18 23:44:46 +00:00
2014-06-14 17:02:50 +00:00
QSslSocket *socket;
bool flag;
};
#endif // QTSSLSOCKET_H