|
|
@ -15,7 +15,7 @@ |
|
|
|
#include <QtNetwork/QSslError> |
|
|
|
#include <QtNetwork/QSslError> |
|
|
|
#include <QtCore/QTimer> |
|
|
|
#include <QtCore/QTimer> |
|
|
|
#include <QtCore/QDebug> |
|
|
|
#include <QtCore/QDebug> |
|
|
|
// #include <QtCore/QThread>
|
|
|
|
#include <QtCore/QThread> |
|
|
|
#include <map> |
|
|
|
#include <map> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
@ -77,8 +77,7 @@ namespace proxy { |
|
|
|
@example test.cxx */ |
|
|
|
@example test.cxx */ |
|
|
|
class Interface |
|
|
|
class Interface |
|
|
|
#ifdef QT_NETWORK_LIB |
|
|
|
#ifdef QT_NETWORK_LIB |
|
|
|
// : public QThread
|
|
|
|
: public QThread |
|
|
|
: public QObject |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifdef QT_NETWORK_LIB |
|
|
|
#ifdef QT_NETWORK_LIB |
|
|
@ -92,8 +91,8 @@ namespace proxy { |
|
|
|
qFatal("connect failed"); |
|
|
|
qFatal("connect failed"); |
|
|
|
if (!connect(&_timeout2, SIGNAL(timeout()), SLOT(timeout()))) |
|
|
|
if (!connect(&_timeout2, SIGNAL(timeout()), SLOT(timeout()))) |
|
|
|
qFatal("connect failed"); |
|
|
|
qFatal("connect failed"); |
|
|
|
// if (!connect(this, SIGNAL(finished()), SLOT(threadFinished())))
|
|
|
|
if (!connect(this, SIGNAL(finished()), SLOT(threadFinished()))) |
|
|
|
// qFatal("connect failed");
|
|
|
|
qFatal("connect failed"); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
virtual ~Interface() {} |
|
|
|
virtual ~Interface() {} |
|
|
|