Changeset View
Changeset View
Standalone View
Standalone View
src/client/registry.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | struct org_kde_kwin_server_decoration_manager; | 51 | struct org_kde_kwin_server_decoration_manager; | ||
52 | struct xdg_shell; | 52 | struct xdg_shell; | ||
53 | struct zxdg_shell_v6; | 53 | struct zxdg_shell_v6; | ||
54 | struct zwp_relative_pointer_manager_v1; | 54 | struct zwp_relative_pointer_manager_v1; | ||
55 | struct zwp_pointer_gestures_v1; | 55 | struct zwp_pointer_gestures_v1; | ||
56 | struct zwp_pointer_constraints_v1; | 56 | struct zwp_pointer_constraints_v1; | ||
57 | struct zxdg_exporter_v2; | 57 | struct zxdg_exporter_v2; | ||
58 | struct zxdg_importer_v2; | 58 | struct zxdg_importer_v2; | ||
59 | struct zwp_idle_inhibit_manager_v1; | ||||
59 | 60 | | |||
60 | namespace KWayland | 61 | namespace KWayland | ||
61 | { | 62 | { | ||
62 | namespace Client | 63 | namespace Client | ||
63 | { | 64 | { | ||
64 | 65 | | |||
65 | class Compositor; | 66 | class Compositor; | ||
66 | class ConnectionThread; | 67 | class ConnectionThread; | ||
67 | class DataDeviceManager; | 68 | class DataDeviceManager; | ||
68 | class DpmsManager; | 69 | class DpmsManager; | ||
69 | class EventQueue; | 70 | class EventQueue; | ||
70 | class FakeInput; | 71 | class FakeInput; | ||
71 | class FullscreenShell; | 72 | class FullscreenShell; | ||
72 | class OutputManagement; | 73 | class OutputManagement; | ||
73 | class OutputDevice; | 74 | class OutputDevice; | ||
74 | class Idle; | 75 | class Idle; | ||
76 | class IdleInhibitManager; | ||||
75 | class Output; | 77 | class Output; | ||
76 | class PlasmaShell; | 78 | class PlasmaShell; | ||
77 | class PlasmaWindowManagement; | 79 | class PlasmaWindowManagement; | ||
78 | class PointerConstraints; | 80 | class PointerConstraints; | ||
79 | class PointerGestures; | 81 | class PointerGestures; | ||
80 | class Seat; | 82 | class Seat; | ||
81 | class ShadowManager; | 83 | class ShadowManager; | ||
82 | class BlurManager; | 84 | class BlurManager; | ||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 135 | enum class Interface { | |||
155 | TextInputManagerUnstableV0, ///< Refers to wl_text_input_manager, @since 5.23 | 157 | TextInputManagerUnstableV0, ///< Refers to wl_text_input_manager, @since 5.23 | ||
156 | TextInputManagerUnstableV2, ///< Refers to zwp_text_input_manager_v2, @since 5.23 | 158 | TextInputManagerUnstableV2, ///< Refers to zwp_text_input_manager_v2, @since 5.23 | ||
157 | XdgShellUnstableV5, ///< Refers to xdg_shell (unstable version 5), @since 5.25 | 159 | XdgShellUnstableV5, ///< Refers to xdg_shell (unstable version 5), @since 5.25 | ||
158 | RelativePointerManagerUnstableV1, ///< Refers to zwp_relative_pointer_manager_v1, @since 5.28 | 160 | RelativePointerManagerUnstableV1, ///< Refers to zwp_relative_pointer_manager_v1, @since 5.28 | ||
159 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | 161 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | ||
160 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | 162 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | ||
161 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | 163 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | ||
162 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | 164 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | ||
163 | XdgShellUnstableV6 ///< Refers to zxdg_shell_v6 (unstable version 6), @since 5.XX | 165 | XdgShellUnstableV6, ///< Refers to zxdg_shell_v6 (unstable version 6), @since 5.XX | ||
166 | IdleInhibitManagerUnstableV1 ///< Refers to zwp_idle_inhibit_manager_v1 (unstable version 1), @since 5.41 | ||||
164 | }; | 167 | }; | ||
165 | explicit Registry(QObject *parent = nullptr); | 168 | explicit Registry(QObject *parent = nullptr); | ||
166 | virtual ~Registry(); | 169 | virtual ~Registry(); | ||
167 | 170 | | |||
168 | /** | 171 | /** | ||
169 | * Releases the wl_registry interface. | 172 | * Releases the wl_registry interface. | ||
170 | * After the interface has been released the Registry instance is no | 173 | * After the interface has been released the Registry instance is no | ||
171 | * longer valid and can be setup with another wl_registry interface. | 174 | * longer valid and can be setup with another wl_registry interface. | ||
▲ Show 20 Lines • Show All 380 Lines • ▼ Show 20 Line(s) | |||||
552 | * If the @p name does not exists or isnot for the importer | 555 | * If the @p name does not exists or isnot for the importer | ||
553 | * extension in unstable version 1, | 556 | * extension in unstable version 1, | ||
554 | * @c null will be returned. | 557 | * @c null will be returned. | ||
555 | * | 558 | * | ||
556 | * Prefer using createXdgImporter | 559 | * Prefer using createXdgImporter | ||
557 | * @since 5.40 | 560 | * @since 5.40 | ||
558 | */ | 561 | */ | ||
559 | zxdg_importer_v2 *bindXdgImporterUnstableV2(uint32_t name, uint32_t version) const; | 562 | zxdg_importer_v2 *bindXdgImporterUnstableV2(uint32_t name, uint32_t version) const; | ||
563 | | ||||
564 | /** | ||||
565 | * Binds the zwp_idle_inhibit_manager_v1 with @p name and @p version. | ||||
566 | * If the @p name does not exists or is not for the idle inhibit manager in unstable version 1, | ||||
567 | * @c null will be returned. | ||||
568 | * | ||||
569 | * Prefer using createIdleInhibitManager | ||||
570 | * @since 5.41 | ||||
571 | */ | ||||
572 | zwp_idle_inhibit_manager_v1 *bindIdleInhibitManagerUnstableV1(uint32_t name, uint32_t version) const; | ||||
560 | ///@} | 573 | ///@} | ||
561 | 574 | | |||
562 | /** | 575 | /** | ||
563 | * @name Convenient factory methods for global objects. | 576 | * @name Convenient factory methods for global objects. | ||
564 | **/ | 577 | **/ | ||
565 | ///@{ | 578 | ///@{ | ||
566 | /** | 579 | /** | ||
567 | * Creates a Compositor and sets it up to manage the interface identified by | 580 | * Creates a Compositor and sets it up to manage the interface identified by | ||
▲ Show 20 Lines • Show All 424 Lines • ▼ Show 20 Line(s) | |||||
992 | * | 1005 | * | ||
993 | * If @p name is for one of the supported interfaces the corresponding manager will be created, | 1006 | * If @p name is for one of the supported interfaces the corresponding manager will be created, | ||
994 | * otherwise @c null will be returned. | 1007 | * otherwise @c null will be returned. | ||
995 | * | 1008 | * | ||
996 | * @returns The created XdgImporter | 1009 | * @returns The created XdgImporter | ||
997 | * @since 5.40 | 1010 | * @since 5.40 | ||
998 | */ | 1011 | */ | ||
999 | XdgImporter *createXdgImporter(quint32 name, quint32 version, QObject *parent = nullptr); | 1012 | XdgImporter *createXdgImporter(quint32 name, quint32 version, QObject *parent = nullptr); | ||
1013 | | ||||
1014 | /** | ||||
1015 | * Creates an IdleInhibitManager and sets it up to manage the interface identified by | ||||
1016 | * @p name and @p version. | ||||
1017 | * | ||||
1018 | * This factory method supports the following interfaces: | ||||
1019 | * @li zwp_idle_inhibit_manager_v1 | ||||
1020 | * | ||||
1021 | * If @p name is for one of the supported interfaces the corresponding manager will be created, | ||||
1022 | * otherwise @c null will be returned. | ||||
1023 | * | ||||
1024 | * @returns The created IdleInhibitManager | ||||
1025 | * @since 5.41 | ||||
1026 | */ | ||||
1027 | IdleInhibitManager *createIdleInhibitManager(quint32 name, quint32 version, QObject *parent = nullptr); | ||||
1000 | ///@} | 1028 | ///@} | ||
1001 | 1029 | | |||
1002 | /** | 1030 | /** | ||
1003 | * cast operator to the low-level Wayland @c wl_registry | 1031 | * cast operator to the low-level Wayland @c wl_registry | ||
1004 | **/ | 1032 | **/ | ||
1005 | operator wl_registry*(); | 1033 | operator wl_registry*(); | ||
1006 | /** | 1034 | /** | ||
1007 | * cast operator to the low-level Wayland @c wl_registry | 1035 | * cast operator to the low-level Wayland @c wl_registry | ||
▲ Show 20 Lines • Show All 197 Lines • ▼ Show 20 Line(s) | 1043 | Q_SIGNALS: | |||
1205 | 1233 | | |||
1206 | /** | 1234 | /** | ||
1207 | * Emitted whenever a zxdg_importer_v2 interface gets announced. | 1235 | * Emitted whenever a zxdg_importer_v2 interface gets announced. | ||
1208 | * @param name The name for the announced interface | 1236 | * @param name The name for the announced interface | ||
1209 | * @param version The maximum supported version of the announced interface | 1237 | * @param version The maximum supported version of the announced interface | ||
1210 | * @since 5.40 | 1238 | * @since 5.40 | ||
1211 | */ | 1239 | */ | ||
1212 | void importerUnstableV2Announced(quint32 name, quint32 version); | 1240 | void importerUnstableV2Announced(quint32 name, quint32 version); | ||
1241 | | ||||
1242 | /** | ||||
1243 | * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets announced. | ||||
1244 | * @param name The name for the announced interface | ||||
1245 | * @param version The maximum supported version of the announced interface | ||||
1246 | * @since 5.41 | ||||
1247 | */ | ||||
1248 | void idleInhibitManagerUnstableV1Announced(quint32 name, quint32 version); | ||||
1213 | ///@} | 1249 | ///@} | ||
1214 | /** | 1250 | /** | ||
1215 | * @name Interface removed signals. | 1251 | * @name Interface removed signals. | ||
1216 | **/ | 1252 | **/ | ||
1217 | ///@{ | 1253 | ///@{ | ||
1218 | /** | 1254 | /** | ||
1219 | * Emitted whenever a wl_compositor interface gets removed. | 1255 | * Emitted whenever a wl_compositor interface gets removed. | ||
1220 | * @param name The name for the removed interface | 1256 | * @param name The name for the removed interface | ||
▲ Show 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | |||||
1378 | void exporterUnstableV2Removed(quint32 name); | 1414 | void exporterUnstableV2Removed(quint32 name); | ||
1379 | 1415 | | |||
1380 | /** | 1416 | /** | ||
1381 | * Emitted whenever a zxdg_importer_v2 interface gets removed. | 1417 | * Emitted whenever a zxdg_importer_v2 interface gets removed. | ||
1382 | * @param name The name for the removed interface | 1418 | * @param name The name for the removed interface | ||
1383 | * @since 5.40 | 1419 | * @since 5.40 | ||
1384 | **/ | 1420 | **/ | ||
1385 | void importerUnstableV2Removed(quint32 name); | 1421 | void importerUnstableV2Removed(quint32 name); | ||
1422 | | ||||
1423 | /** | ||||
1424 | * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets removed. | ||||
1425 | * @param name The name of the removed interface | ||||
1426 | * @since 5.41 | ||||
1427 | **/ | ||||
1428 | void idleInhibitManagerUnstableV1Removed(quint32 name); | ||||
1386 | ///@} | 1429 | ///@} | ||
1387 | /** | 1430 | /** | ||
1388 | * Generic announced signal which gets emitted whenever an interface gets | 1431 | * Generic announced signal which gets emitted whenever an interface gets | ||
1389 | * announced. | 1432 | * announced. | ||
1390 | * | 1433 | * | ||
1391 | * This signal is emitted before the dedicated signals are handled. If one | 1434 | * This signal is emitted before the dedicated signals are handled. If one | ||
1392 | * wants to know about one of the well-known interfaces use the dedicated | 1435 | * wants to know about one of the well-known interfaces use the dedicated | ||
1393 | * signals instead. Especially the bind methods might fail before the dedicated | 1436 | * signals instead. Especially the bind methods might fail before the dedicated | ||
Show All 40 Lines |