issue #65 - Auto config feature using Zeroconf/Bonjour
matched argument in error handle
This commit is contained in:
parent
2ec6a49795
commit
828f7c02b1
|
@ -56,7 +56,7 @@ ZeroconfService::ZeroconfService(MainWindow* mainWindow) :
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(m_pZeroconfBrowser, SIGNAL(error(DNSServiceErrorType)),
|
connect(m_pZeroconfBrowser, SIGNAL(error(DNSServiceErrorType)),
|
||||||
this, SLOT(errorHandle(int32_t)));
|
this, SLOT(errorHandle(DNSServiceErrorType)));
|
||||||
}
|
}
|
||||||
|
|
||||||
ZeroconfService::~ZeroconfService()
|
ZeroconfService::~ZeroconfService()
|
||||||
|
@ -96,7 +96,7 @@ void ZeroconfService::clientDetected(const QList<ZeroconfRecord>& list)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZeroconfService::errorHandle(int32_t errorCode)
|
void ZeroconfService::errorHandle(DNSServiceErrorType errorCode)
|
||||||
{
|
{
|
||||||
QMessageBox::critical(0, tr("Zero configuration service"),
|
QMessageBox::critical(0, tr("Zero configuration service"),
|
||||||
tr("Error code: %1.").arg(errorCode));
|
tr("Error code: %1.").arg(errorCode));
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
|
|
||||||
|
typedef int32_t DNSServiceErrorType;
|
||||||
|
|
||||||
class ZeroconfRegister;
|
class ZeroconfRegister;
|
||||||
class ZeroconfBrowser;
|
class ZeroconfBrowser;
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
@ -37,7 +39,7 @@ public:
|
||||||
private slots:
|
private slots:
|
||||||
void serverDetected(const QList<ZeroconfRecord>& list);
|
void serverDetected(const QList<ZeroconfRecord>& list);
|
||||||
void clientDetected(const QList<ZeroconfRecord>& list);
|
void clientDetected(const QList<ZeroconfRecord>& list);
|
||||||
void errorHandle(int32_t errorCode);
|
void errorHandle(DNSServiceErrorType errorCode);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString getLocalIPAddresses();
|
QString getLocalIPAddresses();
|
||||||
|
|
Loading…
Reference in New Issue