Changeset View
Changeset View
Standalone View
Standalone View
src/avahi-servicebrowser_p.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | namespace KDNSSD | 31 | namespace KDNSSD | ||
32 | { | 32 | { | ||
33 | 33 | | |||
34 | class ServiceBrowserPrivate : public QObject, public AvahiListener | 34 | class ServiceBrowserPrivate : public QObject, public AvahiListener | ||
35 | { | 35 | { | ||
36 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | friend class ServiceBrowser; // So the public class may functor connect. | 37 | friend class ServiceBrowser; // So the public class may functor connect. | ||
38 | void clean(); | ||||
sitter: put this in an actual private section at the bottom please | |||||
38 | public: | 39 | public: | ||
39 | ServiceBrowserPrivate(ServiceBrowser *parent) : QObject(), m_running(false), m_browser(nullptr), m_parent(parent) | 40 | ServiceBrowserPrivate(ServiceBrowser *parent) : QObject(), m_running(false), m_browser(nullptr), m_parent(parent) | ||
40 | {} | 41 | {} | ||
41 | ~ServiceBrowserPrivate() | 42 | ~ServiceBrowserPrivate() | ||
42 | { | 43 | { | ||
43 | if (m_browser) { | 44 | if (m_browser) { | ||
44 | m_browser->Free(); | 45 | m_browser->Free(); | ||
45 | } delete m_browser; | 46 | } delete m_browser; | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |
put this in an actual private section at the bottom please