Changeset View
Changeset View
Standalone View
Standalone View
plugins/mousepad/mousepadplugin.h
Show All 40 Lines | 40 | class MousepadPlugin | |||
---|---|---|---|---|---|
41 | : public KdeConnectPlugin | 41 | : public KdeConnectPlugin | ||
42 | { | 42 | { | ||
43 | Q_OBJECT | 43 | Q_OBJECT | ||
44 | 44 | | |||
45 | public: | 45 | public: | ||
46 | explicit MousepadPlugin(QObject* parent, const QVariantList& args); | 46 | explicit MousepadPlugin(QObject* parent, const QVariantList& args); | ||
47 | ~MousepadPlugin() override; | 47 | ~MousepadPlugin() override; | ||
48 | 48 | | |||
49 | bool receivePackage(const NetworkPackage& np) override; | 49 | bool receivePacket(const NetworkPacket& np) override; | ||
50 | void connected() override { } | 50 | void connected() override { } | ||
51 | 51 | | |||
52 | private: | 52 | private: | ||
53 | #if HAVE_X11 | 53 | #if HAVE_X11 | ||
54 | bool handlePackageX11(const NetworkPackage& np); | 54 | bool handlePacketX11(const NetworkPacket& np); | ||
55 | #endif | 55 | #endif | ||
56 | #if HAVE_WAYLAND | 56 | #if HAVE_WAYLAND | ||
57 | void setupWaylandIntegration(); | 57 | void setupWaylandIntegration(); | ||
58 | bool handPackageWayland(const NetworkPackage& np); | 58 | bool handPacketWayland(const NetworkPacket& np); | ||
59 | #endif | 59 | #endif | ||
60 | 60 | | |||
61 | #if HAVE_X11 | 61 | #if HAVE_X11 | ||
62 | FakeKey* m_fakekey; | 62 | FakeKey* m_fakekey; | ||
63 | #endif | 63 | #endif | ||
64 | const bool m_x11; | 64 | const bool m_x11; | ||
65 | #if HAVE_WAYLAND | 65 | #if HAVE_WAYLAND | ||
66 | KWayland::Client::FakeInput* m_waylandInput; | 66 | KWayland::Client::FakeInput* m_waylandInput; | ||
67 | bool m_waylandAuthenticationRequested; | 67 | bool m_waylandAuthenticationRequested; | ||
68 | #endif | 68 | #endif | ||
69 | }; | 69 | }; | ||
70 | 70 | | |||
71 | #endif | 71 | #endif |