Changeset View
Changeset View
Standalone View
Standalone View
src/windowsystem/waylandintegration.h
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2014 Martin Gräßlin <mgraesslin@kde.org> | 2 | * Copyright 2014 Martin Gräßlin <mgraesslin@kde.org> | ||
3 | * Copyright 2015 Marco Martin <mart@kde.org> | 3 | * Copyright 2015 Marco Martin <mart@kde.org> | ||
4 | * Copyright 2020 Vlad Zahorodnii <vladzzag@gmail.com> | ||||
4 | * | 5 | * | ||
5 | * This library is free software; you can redistribute it and/or | 6 | * This library is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU Lesser General Public | 7 | * modify it under the terms of the GNU Lesser General Public | ||
7 | * License as published by the Free Software Foundation; either | 8 | * License as published by the Free Software Foundation; either | ||
8 | * version 2.1 of the License, or (at your option) version 3, or any | 9 | * version 2.1 of the License, or (at your option) version 3, or any | ||
9 | * later version accepted by the membership of KDE e.V. (or its | 10 | * later version accepted by the membership of KDE e.V. (or its | ||
10 | * successor approved by the membership of KDE e.V.), which shall | 11 | * successor approved by the membership of KDE e.V.), which shall | ||
11 | * act as a proxy defined in Section 6 of version 3 of the license. | 12 | * act as a proxy defined in Section 6 of version 3 of the license. | ||
Show All 18 Lines | 29 | { | |||
30 | { | 31 | { | ||
31 | class BlurManager; | 32 | class BlurManager; | ||
32 | class ContrastManager; | 33 | class ContrastManager; | ||
33 | class Compositor; | 34 | class Compositor; | ||
34 | class ConnectionThread; | 35 | class ConnectionThread; | ||
35 | class PlasmaWindowManagement; | 36 | class PlasmaWindowManagement; | ||
36 | class PlasmaShell; | 37 | class PlasmaShell; | ||
37 | class Registry; | 38 | class Registry; | ||
39 | class ShadowManager; | ||||
40 | class ShmPool; | ||||
38 | class SlideManager; | 41 | class SlideManager; | ||
39 | } | 42 | } | ||
40 | } | 43 | } | ||
41 | 44 | | |||
42 | class WaylandIntegration : public QObject | 45 | class WaylandIntegration : public QObject | ||
43 | { | 46 | { | ||
44 | public: | 47 | public: | ||
45 | explicit WaylandIntegration(); | 48 | explicit WaylandIntegration(); | ||
46 | ~WaylandIntegration(); | 49 | ~WaylandIntegration(); | ||
47 | void setupKWaylandIntegration(); | 50 | void setupKWaylandIntegration(); | ||
48 | 51 | | |||
49 | static WaylandIntegration *self(); | 52 | static WaylandIntegration *self(); | ||
50 | 53 | | |||
51 | KWayland::Client::ConnectionThread *waylandConnection() const; | 54 | KWayland::Client::ConnectionThread *waylandConnection() const; | ||
52 | KWayland::Client::BlurManager *waylandBlurManager(); | 55 | KWayland::Client::BlurManager *waylandBlurManager(); | ||
53 | KWayland::Client::ContrastManager *waylandContrastManager(); | 56 | KWayland::Client::ContrastManager *waylandContrastManager(); | ||
54 | KWayland::Client::SlideManager *waylandSlideManager(); | 57 | KWayland::Client::SlideManager *waylandSlideManager(); | ||
58 | KWayland::Client::ShadowManager *waylandShadowManager(); | ||||
55 | KWayland::Client::Compositor *waylandCompositor() const; | 59 | KWayland::Client::Compositor *waylandCompositor() const; | ||
56 | KWayland::Client::PlasmaWindowManagement *plasmaWindowManagement(); | 60 | KWayland::Client::PlasmaWindowManagement *plasmaWindowManagement(); | ||
57 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | 61 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | ||
62 | KWayland::Client::ShmPool *waylandShmPool(); | ||||
58 | 63 | | |||
59 | private: | 64 | private: | ||
60 | QPointer<KWayland::Client::ConnectionThread> m_waylandConnection; | 65 | QPointer<KWayland::Client::ConnectionThread> m_waylandConnection; | ||
61 | QPointer<KWayland::Client::Compositor> m_waylandCompositor; | 66 | QPointer<KWayland::Client::Compositor> m_waylandCompositor; | ||
62 | QPointer<KWayland::Client::Registry> m_registry; | 67 | QPointer<KWayland::Client::Registry> m_registry; | ||
63 | QPointer<KWayland::Client::BlurManager> m_waylandBlurManager; | 68 | QPointer<KWayland::Client::BlurManager> m_waylandBlurManager; | ||
64 | QPointer<KWayland::Client::ContrastManager> m_waylandContrastManager; | 69 | QPointer<KWayland::Client::ContrastManager> m_waylandContrastManager; | ||
65 | QPointer<KWayland::Client::SlideManager> m_waylandSlideManager; | 70 | QPointer<KWayland::Client::SlideManager> m_waylandSlideManager; | ||
71 | QPointer<KWayland::Client::ShadowManager> m_waylandShadowManager; | ||||
66 | QPointer<KWayland::Client::PlasmaWindowManagement> m_wm; | 72 | QPointer<KWayland::Client::PlasmaWindowManagement> m_wm; | ||
67 | QPointer<KWayland::Client::PlasmaShell> m_waylandPlasmaShell; | 73 | QPointer<KWayland::Client::PlasmaShell> m_waylandPlasmaShell; | ||
74 | QPointer<KWayland::Client::ShmPool> m_waylandShmPool; | ||||
68 | }; | 75 | }; | ||
69 | 76 | | |||
70 | #endif | 77 | #endif |