Changeset View
Changeset View
Standalone View
Standalone View
src/client/registry.h
Show All 31 Lines | |||||
32 | struct wl_registry; | 32 | struct wl_registry; | ||
33 | struct wl_seat; | 33 | struct wl_seat; | ||
34 | struct wl_shell; | 34 | struct wl_shell; | ||
35 | struct wl_shm; | 35 | struct wl_shm; | ||
36 | struct wl_subcompositor; | 36 | struct wl_subcompositor; | ||
37 | struct wl_text_input_manager; | 37 | struct wl_text_input_manager; | ||
38 | struct zwp_text_input_manager_v2; | 38 | struct zwp_text_input_manager_v2; | ||
39 | struct _wl_fullscreen_shell; | 39 | struct _wl_fullscreen_shell; | ||
40 | struct org_kde_kwin_appmenu_manager; | ||||
40 | struct org_kde_kwin_outputmanagement; | 41 | struct org_kde_kwin_outputmanagement; | ||
41 | struct org_kde_kwin_outputdevice; | 42 | struct org_kde_kwin_outputdevice; | ||
42 | struct org_kde_kwin_fake_input; | 43 | struct org_kde_kwin_fake_input; | ||
43 | struct org_kde_kwin_idle; | 44 | struct org_kde_kwin_idle; | ||
44 | struct org_kde_kwin_dpms_manager; | 45 | struct org_kde_kwin_dpms_manager; | ||
45 | struct org_kde_kwin_shadow_manager; | 46 | struct org_kde_kwin_shadow_manager; | ||
46 | struct org_kde_kwin_blur_manager; | 47 | struct org_kde_kwin_blur_manager; | ||
47 | struct org_kde_kwin_contrast_manager; | 48 | struct org_kde_kwin_contrast_manager; | ||
Show All 10 Lines | |||||
58 | struct zxdg_importer_v2; | 59 | struct zxdg_importer_v2; | ||
59 | struct zwp_idle_inhibit_manager_v1; | 60 | struct zwp_idle_inhibit_manager_v1; | ||
60 | 61 | | |||
61 | namespace KWayland | 62 | namespace KWayland | ||
62 | { | 63 | { | ||
63 | namespace Client | 64 | namespace Client | ||
64 | { | 65 | { | ||
65 | 66 | | |||
67 | class AppMenuManager; | ||||
66 | class Compositor; | 68 | class Compositor; | ||
67 | class ConnectionThread; | 69 | class ConnectionThread; | ||
68 | class DataDeviceManager; | 70 | class DataDeviceManager; | ||
69 | class DpmsManager; | 71 | class DpmsManager; | ||
70 | class EventQueue; | 72 | class EventQueue; | ||
71 | class FakeInput; | 73 | class FakeInput; | ||
72 | class FullscreenShell; | 74 | class FullscreenShell; | ||
73 | class OutputManagement; | 75 | class OutputManagement; | ||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | 137 | enum class Interface { | |||
158 | TextInputManagerUnstableV2, ///< Refers to zwp_text_input_manager_v2, @since 5.23 | 160 | TextInputManagerUnstableV2, ///< Refers to zwp_text_input_manager_v2, @since 5.23 | ||
159 | XdgShellUnstableV5, ///< Refers to xdg_shell (unstable version 5), @since 5.25 | 161 | XdgShellUnstableV5, ///< Refers to xdg_shell (unstable version 5), @since 5.25 | ||
160 | RelativePointerManagerUnstableV1, ///< Refers to zwp_relative_pointer_manager_v1, @since 5.28 | 162 | RelativePointerManagerUnstableV1, ///< Refers to zwp_relative_pointer_manager_v1, @since 5.28 | ||
161 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | 163 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | ||
162 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | 164 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | ||
163 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | 165 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | ||
164 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | 166 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | ||
165 | XdgShellUnstableV6, ///< Refers to zxdg_shell_v6 (unstable version 6), @since 5.XX | 167 | 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 | 168 | IdleInhibitManagerUnstableV1, ///< Refers to zwp_idle_inhibit_manager_v1 (unstable version 1), @since 5.41 | ||
169 | AppMenu ///Refers to org_kde_kwin_appmenu @since 5.XXX | ||||
167 | }; | 170 | }; | ||
168 | explicit Registry(QObject *parent = nullptr); | 171 | explicit Registry(QObject *parent = nullptr); | ||
169 | virtual ~Registry(); | 172 | virtual ~Registry(); | ||
170 | 173 | | |||
171 | /** | 174 | /** | ||
172 | * Releases the wl_registry interface. | 175 | * Releases the wl_registry interface. | ||
173 | * After the interface has been released the Registry instance is no | 176 | * After the interface has been released the Registry instance is no | ||
174 | * longer valid and can be setup with another wl_registry interface. | 177 | * longer valid and can be setup with another wl_registry interface. | ||
▲ Show 20 Lines • Show All 393 Lines • ▼ Show 20 Line(s) | |||||
568 | * | 571 | * | ||
569 | * Prefer using createIdleInhibitManager | 572 | * Prefer using createIdleInhibitManager | ||
570 | * @since 5.41 | 573 | * @since 5.41 | ||
571 | */ | 574 | */ | ||
572 | zwp_idle_inhibit_manager_v1 *bindIdleInhibitManagerUnstableV1(uint32_t name, uint32_t version) const; | 575 | zwp_idle_inhibit_manager_v1 *bindIdleInhibitManagerUnstableV1(uint32_t name, uint32_t version) const; | ||
573 | ///@} | 576 | ///@} | ||
574 | 577 | | |||
575 | /** | 578 | /** | ||
579 | * Binds the org_kde_kwin_appmenu_manager with @p name and @p version. | ||||
580 | * If the @p name does not exist or is not for the appmenu manager interface, | ||||
581 | * @c null will be returned. | ||||
582 | * | ||||
583 | * Prefer using createAppMenuManager instead. | ||||
584 | * @see createAppMenuManager | ||||
585 | * @since 5.5 | ||||
graesslin: 5.XX | |||||
586 | **/ | ||||
587 | org_kde_kwin_appmenu_manager *bindAppMenuManager(uint32_t name, uint32_t version) const; | ||||
588 | | ||||
589 | /** | ||||
576 | * @name Convenient factory methods for global objects. | 590 | * @name Convenient factory methods for global objects. | ||
577 | **/ | 591 | **/ | ||
578 | ///@{ | 592 | ///@{ | ||
579 | /** | 593 | /** | ||
580 | * Creates a Compositor and sets it up to manage the interface identified by | 594 | * Creates a Compositor and sets it up to manage the interface identified by | ||
581 | * @p name and @p version. | 595 | * @p name and @p version. | ||
582 | * | 596 | * | ||
583 | * Note: in case @p name is invalid or isn't for the wl_compositor interface, | 597 | * Note: in case @p name is invalid or isn't for the wl_compositor interface, | ||
▲ Show 20 Lines • Show All 439 Lines • ▼ Show 20 Line(s) | |||||
1023 | * | 1037 | * | ||
1024 | * @returns The created IdleInhibitManager | 1038 | * @returns The created IdleInhibitManager | ||
1025 | * @since 5.41 | 1039 | * @since 5.41 | ||
1026 | */ | 1040 | */ | ||
1027 | IdleInhibitManager *createIdleInhibitManager(quint32 name, quint32 version, QObject *parent = nullptr); | 1041 | IdleInhibitManager *createIdleInhibitManager(quint32 name, quint32 version, QObject *parent = nullptr); | ||
1028 | ///@} | 1042 | ///@} | ||
1029 | 1043 | | |||
1030 | /** | 1044 | /** | ||
1045 | * Creates a AppMenuManager and sets it up to manage the interface identified by | ||||
1046 | * @p name and @p version. | ||||
1047 | * | ||||
1048 | * Note: in case @p name is invalid or isn't for the org_kde_kwin_appmenu_manager interface, | ||||
1049 | * the returned AppMenuManager will not be valid. Therefore it's recommended to call | ||||
1050 | * isValid on the created instance. | ||||
1051 | * | ||||
1052 | * @param name The name of the org_kde_kwin_appmenu_manager interface to bind | ||||
1053 | * @param version The version or the org_kde_kwin_appmenu_manager interface to use | ||||
1054 | * @param parent The parent for AppMenuManager | ||||
1055 | * | ||||
1056 | * @returns The created AppMenuManager. | ||||
1057 | * @since 5.XXX | ||||
1058 | **/ | ||||
1059 | AppMenuManager *createAppMenuManager(quint32 name, quint32 version, QObject *parent = nullptr); | ||||
1060 | | ||||
1061 | /** | ||||
1031 | * cast operator to the low-level Wayland @c wl_registry | 1062 | * cast operator to the low-level Wayland @c wl_registry | ||
1032 | **/ | 1063 | **/ | ||
1033 | operator wl_registry*(); | 1064 | operator wl_registry*(); | ||
1034 | /** | 1065 | /** | ||
1035 | * cast operator to the low-level Wayland @c wl_registry | 1066 | * cast operator to the low-level Wayland @c wl_registry | ||
1036 | **/ | 1067 | **/ | ||
1037 | operator wl_registry*() const; | 1068 | operator wl_registry*() const; | ||
1038 | /** | 1069 | /** | ||
▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Line(s) | 1074 | Q_SIGNALS: | |||
1241 | 1272 | | |||
1242 | /** | 1273 | /** | ||
1243 | * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets announced. | 1274 | * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets announced. | ||
1244 | * @param name The name for the announced interface | 1275 | * @param name The name for the announced interface | ||
1245 | * @param version The maximum supported version of the announced interface | 1276 | * @param version The maximum supported version of the announced interface | ||
1246 | * @since 5.41 | 1277 | * @since 5.41 | ||
1247 | */ | 1278 | */ | ||
1248 | void idleInhibitManagerUnstableV1Announced(quint32 name, quint32 version); | 1279 | void idleInhibitManagerUnstableV1Announced(quint32 name, quint32 version); | ||
1280 | | ||||
1281 | /** | ||||
1282 | * Emitted whenever a org_kde_kwin_appmenu_manager interface gets announced. | ||||
1283 | * @param name The name for the announced interface | ||||
1284 | * @param version The maximum supported version of the announced interface | ||||
1285 | * @since 5.XXX | ||||
1286 | */ | ||||
1287 | void appMenuAnnounced(quint32 name, quint32 version); | ||||
1249 | ///@} | 1288 | ///@} | ||
1289 | | ||||
1250 | /** | 1290 | /** | ||
1251 | * @name Interface removed signals. | 1291 | * @name Interface removed signals. | ||
1252 | **/ | 1292 | **/ | ||
1253 | ///@{ | 1293 | ///@{ | ||
1254 | /** | 1294 | /** | ||
1255 | * Emitted whenever a wl_compositor interface gets removed. | 1295 | * Emitted whenever a wl_compositor interface gets removed. | ||
1256 | * @param name The name for the removed interface | 1296 | * @param name The name for the removed interface | ||
1257 | **/ | 1297 | **/ | ||
▲ Show 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | |||||
1421 | void importerUnstableV2Removed(quint32 name); | 1461 | void importerUnstableV2Removed(quint32 name); | ||
1422 | 1462 | | |||
1423 | /** | 1463 | /** | ||
1424 | * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets removed. | 1464 | * Emitted whenever a zwp_idle_inhibit_manager_v1 interface gets removed. | ||
1425 | * @param name The name of the removed interface | 1465 | * @param name The name of the removed interface | ||
1426 | * @since 5.41 | 1466 | * @since 5.41 | ||
1427 | **/ | 1467 | **/ | ||
1428 | void idleInhibitManagerUnstableV1Removed(quint32 name); | 1468 | void idleInhibitManagerUnstableV1Removed(quint32 name); | ||
1469 | | ||||
1470 | /** | ||||
1471 | * Emitted whenever a org_kde_kwin_appmenu_manager gets removed. | ||||
1472 | * @param name The name of the removed interface | ||||
1473 | * @since 5.41 | ||||
5.XX, though I think you don't need to change it. I'm quite certain we make 5.41 graesslin: 5.XX, though I think you don't need to change it. I'm quite certain we make 5.41 | |||||
1474 | **/ | ||||
1475 | void appMenuRemoved(quint32 name); | ||||
1429 | ///@} | 1476 | ///@} | ||
1430 | /** | 1477 | /** | ||
1431 | * Generic announced signal which gets emitted whenever an interface gets | 1478 | * Generic announced signal which gets emitted whenever an interface gets | ||
1432 | * announced. | 1479 | * announced. | ||
1433 | * | 1480 | * | ||
1434 | * This signal is emitted before the dedicated signals are handled. If one | 1481 | * This signal is emitted before the dedicated signals are handled. If one | ||
1435 | * wants to know about one of the well-known interfaces use the dedicated | 1482 | * wants to know about one of the well-known interfaces use the dedicated | ||
1436 | * signals instead. Especially the bind methods might fail before the dedicated | 1483 | * signals instead. Especially the bind methods might fail before the dedicated | ||
Show All 40 Lines |
5.XX