From 828f7c02b16ccf4c640256682477d7897e132867 Mon Sep 17 00:00:00 2001 From: jerry Date: Tue, 26 Aug 2014 10:25:01 +0000 Subject: [PATCH] issue #65 - Auto config feature using Zeroconf/Bonjour matched argument in error handle --- src/gui/src/ZeroconfService.cpp | 4 ++-- src/gui/src/ZeroconfService.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/src/ZeroconfService.cpp b/src/gui/src/ZeroconfService.cpp index 3660a312..be553b8a 100644 --- a/src/gui/src/ZeroconfService.cpp +++ b/src/gui/src/ZeroconfService.cpp @@ -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& 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)); diff --git a/src/gui/src/ZeroconfService.h b/src/gui/src/ZeroconfService.h index 44782a5d..d5f896a9 100644 --- a/src/gui/src/ZeroconfService.h +++ b/src/gui/src/ZeroconfService.h @@ -22,6 +22,8 @@ #include +typedef int32_t DNSServiceErrorType; + class ZeroconfRegister; class ZeroconfBrowser; class MainWindow; @@ -37,7 +39,7 @@ public: private slots: void serverDetected(const QList& list); void clientDetected(const QList& list); - void errorHandle(int32_t errorCode); + void errorHandle(DNSServiceErrorType errorCode); private: QString getLocalIPAddresses();