issue #65 - Auto config feature using Zeroconf/Bonjour

matched argument in error handle
This commit is contained in:
jerry 2014-08-26 10:25:01 +00:00
parent 2ec6a49795
commit 828f7c02b1
2 changed files with 5 additions and 3 deletions

View File

@ -56,7 +56,7 @@ ZeroconfService::ZeroconfService(MainWindow* mainWindow) :
}
connect(m_pZeroconfBrowser, SIGNAL(error(DNSServiceErrorType)),
this, SLOT(errorHandle(int32_t)));
this, SLOT(errorHandle(DNSServiceErrorType)));
}
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"),
tr("Error code: %1.").arg(errorCode));

View File

@ -22,6 +22,8 @@
#include <QtCore/QObject>
typedef int32_t DNSServiceErrorType;
class ZeroconfRegister;
class ZeroconfBrowser;
class MainWindow;
@ -37,7 +39,7 @@ public:
private slots:
void serverDetected(const QList<ZeroconfRecord>& list);
void clientDetected(const QList<ZeroconfRecord>& list);
void errorHandle(int32_t errorCode);
void errorHandle(DNSServiceErrorType errorCode);
private:
QString getLocalIPAddresses();