mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-10 00:11:43 +08:00
issue #65 - Auto config feature using Zeroconf/Bonjour
matched argument in error handle
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user