#include <QMetaMethod>
#include <QMetaProperty>
#include <QRegExp>
+#ifdef HAVE_SSL
#include <QSslSocket>
+#endif
#include <QThread>
#include <QTime>
#include <QEvent>
}
bool SignalProxy::IODevicePeer::isSecure() const {
+#ifdef HAVE_SSL
QSslSocket *sslSocket = qobject_cast<QSslSocket *>(_device);
if(sslSocket)
return sslSocket->isEncrypted() || sslSocket->localAddress() == QHostAddress::LocalHost || sslSocket->localAddress() == QHostAddress::LocalHostIPv6;
+#endif
QAbstractSocket *socket = qobject_cast<QAbstractSocket *>(_device);
if(socket)
connect(iodev, SIGNAL(disconnected()), this, SLOT(removePeerBySender()));
connect(iodev, SIGNAL(readyRead()), this, SLOT(dataAvailable()));
+#ifdef HAVE_SSL
QSslSocket *sslSocket = qobject_cast<QSslSocket *>(iodev);
if(sslSocket) {
connect(iodev, SIGNAL(encrypted()), this, SLOT(updateSecureState()));
}
+#endif
if(!iodev->parent())
iodev->setParent(this);