Changeset View
Changeset View
Standalone View
Standalone View
src/plasmaquick/waylandintegration_p.h
Show All 22 Lines | |||||
23 | #include <QPointer> | 23 | #include <QPointer> | ||
24 | 24 | | |||
25 | namespace KWayland | 25 | namespace KWayland | ||
26 | { | 26 | { | ||
27 | namespace Client | 27 | namespace Client | ||
28 | { | 28 | { | ||
29 | class PlasmaShell; | 29 | class PlasmaShell; | ||
30 | class Registry; | 30 | class Registry; | ||
31 | class ShadowManager; | | |||
32 | class ShmPool; | | |||
33 | } | 31 | } | ||
34 | } | 32 | } | ||
35 | 33 | | |||
36 | class WaylandIntegration : public QObject | 34 | class WaylandIntegration : public QObject | ||
37 | { | 35 | { | ||
38 | Q_OBJECT | 36 | Q_OBJECT | ||
39 | 37 | | |||
40 | public: | 38 | public: | ||
41 | explicit WaylandIntegration(QObject *parent = nullptr); | 39 | explicit WaylandIntegration(QObject *parent = nullptr); | ||
42 | ~WaylandIntegration() override; | 40 | ~WaylandIntegration() override; | ||
43 | 41 | | |||
44 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | 42 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | ||
45 | KWayland::Client::ShadowManager *waylandShadowManager(); | | |||
46 | KWayland::Client::ShmPool *waylandShmPool(); | | |||
47 | 43 | | |||
48 | static WaylandIntegration *self(); | 44 | static WaylandIntegration *self(); | ||
49 | 45 | | |||
50 | private: | 46 | private: | ||
51 | void setupKWaylandIntegration(); | 47 | void setupKWaylandIntegration(); | ||
52 | 48 | | |||
53 | QPointer<KWayland::Client::Registry> m_registry; | 49 | QPointer<KWayland::Client::Registry> m_registry; | ||
54 | QPointer<KWayland::Client::PlasmaShell> m_waylandPlasmaShell; | 50 | QPointer<KWayland::Client::PlasmaShell> m_waylandPlasmaShell; | ||
55 | QPointer<KWayland::Client::ShadowManager> m_waylandShadowManager; | | |||
56 | QPointer<KWayland::Client::ShmPool> m_waylandShmPool; | | |||
57 | 51 | | |||
58 | Q_DISABLE_COPY(WaylandIntegration) | 52 | Q_DISABLE_COPY(WaylandIntegration) | ||
59 | }; | 53 | }; | ||
60 | 54 | | |||
61 | #endif // WAYLANDINTEGRATION_P_H | 55 | #endif // WAYLANDINTEGRATION_P_H |