|
|
@ -27,9 +27,11 @@
|
|
|
|
#include "query.h"
|
|
|
|
#include "query.h"
|
|
|
|
#include "servicebrowser.h"
|
|
|
|
#include "servicebrowser.h"
|
|
|
|
#include <kapplication.h>
|
|
|
|
#include <kapplication.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_DNSSD
|
|
|
|
#ifdef AVAHI_API_0_6
|
|
|
|
#ifdef AVAHI_API_0_6
|
|
|
|
#include <avahi-client/lookup.h>
|
|
|
|
#include <avahi-client/lookup.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
namespace DNSSD
|
|
|
|
namespace DNSSD
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -48,11 +50,11 @@ void domains_callback(AvahiDomainBrowser*, AvahiIfIndex, AvahiProtocol, AvahiBr
|
|
|
|
class DomainBrowserPrivate
|
|
|
|
class DomainBrowserPrivate
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
DomainBrowserPrivate(DomainBrowser* owner) : m_browseLAN(false), m_started(false)
|
|
|
|
|
|
|
|
#ifdef HAVE_DNSSD
|
|
|
|
#ifdef HAVE_DNSSD
|
|
|
|
, m_browser(0), m_owner(owner)
|
|
|
|
DomainBrowserPrivate(DomainBrowser* owner) : m_browseLAN(false), m_started(false), m_browser(0), m_owner(owner) {}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
DomainBrowserPrivate(DomainBrowser* owner) : m_browseLAN(false), m_started(false) {}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
{}
|
|
|
|
|
|
|
|
#ifdef HAVE_DNSSD
|
|
|
|
#ifdef HAVE_DNSSD
|
|
|
|
~DomainBrowserPrivate() { if (m_browser) avahi_domain_browser_free(m_browser); }
|
|
|
|
~DomainBrowserPrivate() { if (m_browser) avahi_domain_browser_free(m_browser); }
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|