mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
refactor(dnssd_service): comment out QWidget related code
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "dnssd_service.h"
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
// #include <QMessageBox>
|
||||
#include <QMutexLocker>
|
||||
#include <cstring>
|
||||
|
||||
@@ -54,10 +54,11 @@ void DnssdService::startBrowsing()
|
||||
|
||||
if (err != kDNSServiceErr_NoError) {
|
||||
qWarning() << "DNSServiceBrowse failed:" << err;
|
||||
QMessageBox::warning(nullptr, "DNSSD failed to launch",
|
||||
"Failed to start DNSSD browsing this means you "
|
||||
"cannot use wireless devices and AirPlay please "
|
||||
"solve this issue from dependency check area");
|
||||
// FIXME: Show a warning message
|
||||
// QMessageBox::warning(nullptr, "DNSSD failed to launch",
|
||||
// "Failed to start DNSSD browsing this means you "
|
||||
// "cannot use wireless devices and AirPlay please "
|
||||
// "solve this issue from dependency check area");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,11 +30,12 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#ifdef WIN32
|
||||
// FIXME
|
||||
// #ifdef WIN32
|
||||
#include "dns_sd.h"
|
||||
#else
|
||||
#include <dns_sd.h>
|
||||
#endif
|
||||
// #else
|
||||
// #include <dns_sd.h>
|
||||
// #endif
|
||||
|
||||
class DnssdService : public QObject
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user