Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.h
Show All 32 Lines | |||||
33 | class ConnectionThread; | 33 | class ConnectionThread; | ||
34 | class Compositor; | 34 | class Compositor; | ||
35 | class IdleInhibitManager; | 35 | class IdleInhibitManager; | ||
36 | class PlasmaShell; | 36 | class PlasmaShell; | ||
37 | class PlasmaWindowManagement; | 37 | class PlasmaWindowManagement; | ||
38 | class PointerConstraints; | 38 | class PointerConstraints; | ||
39 | class Seat; | 39 | class Seat; | ||
40 | class ServerSideDecorationManager; | 40 | class ServerSideDecorationManager; | ||
41 | class ShadowManager; | ||||
41 | class Shell; | 42 | class Shell; | ||
42 | class ShellSurface; | 43 | class ShellSurface; | ||
43 | class ShmPool; | 44 | class ShmPool; | ||
44 | class Surface; | 45 | class Surface; | ||
45 | class XdgShellSurface; | 46 | class XdgShellSurface; | ||
46 | } | 47 | } | ||
47 | } | 48 | } | ||
48 | 49 | | |||
Show All 31 Lines | |||||
80 | 81 | | |||
81 | enum class AdditionalWaylandInterface { | 82 | enum class AdditionalWaylandInterface { | ||
82 | Seat = 1 << 0, | 83 | Seat = 1 << 0, | ||
83 | Decoration = 1 << 1, | 84 | Decoration = 1 << 1, | ||
84 | PlasmaShell = 1 << 2, | 85 | PlasmaShell = 1 << 2, | ||
85 | WindowManagement = 1 << 3, | 86 | WindowManagement = 1 << 3, | ||
86 | PointerConstraints = 1 << 4, | 87 | PointerConstraints = 1 << 4, | ||
87 | IdleInhibition = 1 << 5, | 88 | IdleInhibition = 1 << 5, | ||
88 | AppMenu = 1 << 6 | 89 | AppMenu = 1 << 6, | ||
90 | ShadowManager = 1 << 7 | ||||
89 | }; | 91 | }; | ||
90 | Q_DECLARE_FLAGS(AdditionalWaylandInterfaces, AdditionalWaylandInterface) | 92 | Q_DECLARE_FLAGS(AdditionalWaylandInterfaces, AdditionalWaylandInterface) | ||
91 | /** | 93 | /** | ||
92 | * Creates a Wayland Connection in a dedicated thread and creates various | 94 | * Creates a Wayland Connection in a dedicated thread and creates various | ||
93 | * client side objects which can be used to create windows. | 95 | * client side objects which can be used to create windows. | ||
94 | * @returns @c true if created successfully, @c false if there was an error | 96 | * @returns @c true if created successfully, @c false if there was an error | ||
95 | * @see destroyWaylandConnection | 97 | * @see destroyWaylandConnection | ||
96 | **/ | 98 | **/ | ||
97 | bool setupWaylandConnection(AdditionalWaylandInterfaces flags = AdditionalWaylandInterfaces()); | 99 | bool setupWaylandConnection(AdditionalWaylandInterfaces flags = AdditionalWaylandInterfaces()); | ||
98 | 100 | | |||
99 | /** | 101 | /** | ||
100 | * Destroys the Wayland Connection created with @link{setupWaylandConnection}. | 102 | * Destroys the Wayland Connection created with @link{setupWaylandConnection}. | ||
101 | * This can be called from cleanup in order to ensure that no Wayland Connection | 103 | * This can be called from cleanup in order to ensure that no Wayland Connection | ||
102 | * leaks into the next test method. | 104 | * leaks into the next test method. | ||
103 | * @see setupWaylandConnection | 105 | * @see setupWaylandConnection | ||
104 | */ | 106 | */ | ||
105 | void destroyWaylandConnection(); | 107 | void destroyWaylandConnection(); | ||
106 | 108 | | |||
107 | KWayland::Client::ConnectionThread *waylandConnection(); | 109 | KWayland::Client::ConnectionThread *waylandConnection(); | ||
108 | KWayland::Client::Compositor *waylandCompositor(); | 110 | KWayland::Client::Compositor *waylandCompositor(); | ||
111 | KWayland::Client::ShadowManager *waylandShadowManager(); | ||||
109 | KWayland::Client::Shell *waylandShell(); | 112 | KWayland::Client::Shell *waylandShell(); | ||
110 | KWayland::Client::ShmPool *waylandShmPool(); | 113 | KWayland::Client::ShmPool *waylandShmPool(); | ||
111 | KWayland::Client::Seat *waylandSeat(); | 114 | KWayland::Client::Seat *waylandSeat(); | ||
112 | KWayland::Client::ServerSideDecorationManager *waylandServerSideDecoration(); | 115 | KWayland::Client::ServerSideDecorationManager *waylandServerSideDecoration(); | ||
113 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | 116 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | ||
114 | KWayland::Client::PlasmaWindowManagement *waylandWindowManagement(); | 117 | KWayland::Client::PlasmaWindowManagement *waylandWindowManagement(); | ||
115 | KWayland::Client::PointerConstraints *waylandPointerConstraints(); | 118 | KWayland::Client::PointerConstraints *waylandPointerConstraints(); | ||
116 | KWayland::Client::IdleInhibitManager *waylandIdleInhibitManager(); | 119 | KWayland::Client::IdleInhibitManager *waylandIdleInhibitManager(); | ||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |