Changeset View
Changeset View
Standalone View
Standalone View
client_machine.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | namespace KWin { | 31 | namespace KWin { | ||
32 | 32 | | |||
33 | class GetAddrInfo : public QObject | 33 | class GetAddrInfo : public QObject | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | public: | 36 | public: | ||
37 | explicit GetAddrInfo(const QByteArray &hostName, QObject *parent = NULL); | 37 | explicit GetAddrInfo(const QByteArray &hostName, QObject *parent = NULL); | ||
38 | virtual ~GetAddrInfo(); | 38 | ~GetAddrInfo() override; | ||
39 | 39 | | |||
40 | void resolve(); | 40 | void resolve(); | ||
41 | 41 | | |||
42 | Q_SIGNALS: | 42 | Q_SIGNALS: | ||
43 | void local(); | 43 | void local(); | ||
44 | 44 | | |||
45 | private Q_SLOTS: | 45 | private Q_SLOTS: | ||
46 | void slotResolved(); | 46 | void slotResolved(); | ||
Show All 13 Lines | 49 | private: | |||
60 | QFutureWatcher<int> *m_ownAddressWatcher; | 60 | QFutureWatcher<int> *m_ownAddressWatcher; | ||
61 | }; | 61 | }; | ||
62 | 62 | | |||
63 | class ClientMachine : public QObject | 63 | class ClientMachine : public QObject | ||
64 | { | 64 | { | ||
65 | Q_OBJECT | 65 | Q_OBJECT | ||
66 | public: | 66 | public: | ||
67 | explicit ClientMachine(QObject *parent = NULL); | 67 | explicit ClientMachine(QObject *parent = NULL); | ||
68 | virtual ~ClientMachine(); | 68 | ~ClientMachine() override; | ||
69 | 69 | | |||
70 | void resolve(xcb_window_t window, xcb_window_t clientLeader); | 70 | void resolve(xcb_window_t window, xcb_window_t clientLeader); | ||
71 | const QByteArray &hostName() const; | 71 | const QByteArray &hostName() const; | ||
72 | bool isLocal() const; | 72 | bool isLocal() const; | ||
73 | static QByteArray localhost(); | 73 | static QByteArray localhost(); | ||
74 | bool isResolving() const; | 74 | bool isResolving() const; | ||
75 | 75 | | |||
76 | Q_SIGNALS: | 76 | Q_SIGNALS: | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |