Changeset View
Changeset View
Standalone View
Standalone View
src/client/registry.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | struct xdg_shell; | 55 | struct xdg_shell; | ||
56 | struct zxdg_shell_v6; | 56 | struct zxdg_shell_v6; | ||
57 | struct zwp_relative_pointer_manager_v1; | 57 | struct zwp_relative_pointer_manager_v1; | ||
58 | struct zwp_pointer_gestures_v1; | 58 | struct zwp_pointer_gestures_v1; | ||
59 | struct zwp_pointer_constraints_v1; | 59 | struct zwp_pointer_constraints_v1; | ||
60 | struct zxdg_exporter_v2; | 60 | struct zxdg_exporter_v2; | ||
61 | struct zxdg_importer_v2; | 61 | struct zxdg_importer_v2; | ||
62 | struct zwp_idle_inhibit_manager_v1; | 62 | struct zwp_idle_inhibit_manager_v1; | ||
63 | struct zxdg_output_manager_v1; | ||||
63 | 64 | | |||
64 | namespace KWayland | 65 | namespace KWayland | ||
65 | { | 66 | { | ||
66 | namespace Client | 67 | namespace Client | ||
67 | { | 68 | { | ||
68 | 69 | | |||
69 | class AppMenuManager; | 70 | class AppMenuManager; | ||
70 | class Compositor; | 71 | class Compositor; | ||
Show All 27 Lines | |||||
98 | class TextInputManagerUnstableV0; | 99 | class TextInputManagerUnstableV0; | ||
99 | class TextInputManagerUnstableV2; | 100 | class TextInputManagerUnstableV2; | ||
100 | class XdgShell; | 101 | class XdgShell; | ||
101 | class RelativePointerManager; | 102 | class RelativePointerManager; | ||
102 | class XdgExporterUnstableV2; | 103 | class XdgExporterUnstableV2; | ||
103 | class XdgImporterUnstableV2; | 104 | class XdgImporterUnstableV2; | ||
104 | class XdgExporter; | 105 | class XdgExporter; | ||
105 | class XdgImporter; | 106 | class XdgImporter; | ||
107 | class XdgOutputManager; | ||||
106 | 108 | | |||
107 | /** | 109 | /** | ||
108 | * @short Wrapper for the wl_registry interface. | 110 | * @short Wrapper for the wl_registry interface. | ||
109 | * | 111 | * | ||
110 | * The purpose of this class is to manage the wl_registry interface. | 112 | * The purpose of this class is to manage the wl_registry interface. | ||
111 | * This class supports some well-known interfaces and can create a | 113 | * This class supports some well-known interfaces and can create a | ||
112 | * wrapper class for those. | 114 | * wrapper class for those. | ||
113 | * | 115 | * | ||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 143 | enum class Interface { | |||
167 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | 169 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | ||
168 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | 170 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | ||
169 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | 171 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | ||
170 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | 172 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | ||
171 | XdgShellUnstableV6, ///< Refers to zxdg_shell_v6 (unstable version 6), @since 5.39 | 173 | XdgShellUnstableV6, ///< Refers to zxdg_shell_v6 (unstable version 6), @since 5.39 | ||
172 | IdleInhibitManagerUnstableV1, ///< Refers to zwp_idle_inhibit_manager_v1 (unstable version 1), @since 5.41 | 174 | IdleInhibitManagerUnstableV1, ///< Refers to zwp_idle_inhibit_manager_v1 (unstable version 1), @since 5.41 | ||
173 | AppMenu, ///Refers to org_kde_kwin_appmenu @since 5.42 | 175 | AppMenu, ///Refers to org_kde_kwin_appmenu @since 5.42 | ||
174 | ServerSideDecorationPalette, ///Refers to org_kde_kwin_server_decoration_palette_manager @since 5.42 | 176 | ServerSideDecorationPalette, ///Refers to org_kde_kwin_server_decoration_palette_manager @since 5.42 | ||
175 | RemoteAccessManager ///< Refers to org_kde_kwin_remote_access_manager interface, @since 5.45 | 177 | RemoteAccessManager, ///< Refers to org_kde_kwin_remote_access_manager interface, @since 5.45 | ||
178 | XdgOutputUnstableV1, ///refers to zxdg_output_v1, @since 5.XDGOUTPUTVERSION | ||||
176 | }; | 179 | }; | ||
177 | explicit Registry(QObject *parent = nullptr); | 180 | explicit Registry(QObject *parent = nullptr); | ||
178 | virtual ~Registry(); | 181 | virtual ~Registry(); | ||
179 | 182 | | |||
180 | /** | 183 | /** | ||
181 | * Releases the wl_registry interface. | 184 | * Releases the wl_registry interface. | ||
182 | * After the interface has been released the Registry instance is no | 185 | * After the interface has been released the Registry instance is no | ||
183 | * longer valid and can be setup with another wl_registry interface. | 186 | * longer valid and can be setup with another wl_registry interface. | ||
▲ Show 20 Lines • Show All 418 Lines • ▼ Show 20 Line(s) | |||||
602 | org_kde_kwin_appmenu_manager *bindAppMenuManager(uint32_t name, uint32_t version) const; | 605 | org_kde_kwin_appmenu_manager *bindAppMenuManager(uint32_t name, uint32_t version) const; | ||
603 | 606 | | |||
604 | /** | 607 | /** | ||
605 | * Binds the org_kde_kwin_server_decoration_palette_manager with @p name and @p version. | 608 | * Binds the org_kde_kwin_server_decoration_palette_manager with @p name and @p version. | ||
606 | * If the @p name does not exist or is not for the server side decoration palette manager interface, | 609 | * If the @p name does not exist or is not for the server side decoration palette manager interface, | ||
607 | * @c null will be returned. | 610 | * @c null will be returned. | ||
608 | * | 611 | * | ||
609 | * Prefer using createServerSideDecorationPaletteManager instead. | 612 | * Prefer using createServerSideDecorationPaletteManager instead. | ||
610 | * @see createAppMenuManager | 613 | * @see createServerSideDecorationPaletteManager | ||
611 | * @since 5.42 | 614 | * @since 5.42 | ||
612 | **/ | 615 | **/ | ||
613 | org_kde_kwin_server_decoration_palette_manager *bindServerSideDecorationPaletteManager(uint32_t name, uint32_t version) const; | 616 | org_kde_kwin_server_decoration_palette_manager *bindServerSideDecorationPaletteManager(uint32_t name, uint32_t version) const; | ||
617 | | ||||
618 | /** | ||||
619 | * Binds the zxdg_output_v1 with @p name and @p version. | ||||
620 | * If the @p name does not exist, | ||||
621 | * @c null will be returned. | ||||
622 | * | ||||
623 | * Prefer using createXdgOutputManager instead. | ||||
624 | * @see createXdgOutputManager | ||||
romangg: Function `createXdgOutputUnstableV1` does not exist. Do you mean `createXdgOutputManager`? | |||||
625 | * @since 5.XDGOUTPUTVERSION | ||||
626 | **/ | ||||
627 | zxdg_output_manager_v1 *bindXdgOutputUnstableV1(uint32_t name, uint32_t version) const; | ||||
628 | | ||||
614 | ///@} | 629 | ///@} | ||
615 | 630 | | |||
616 | /** | 631 | /** | ||
617 | * @name Convenient factory methods for global objects. | 632 | * @name Convenient factory methods for global objects. | ||
618 | **/ | 633 | **/ | ||
619 | ///@{ | 634 | ///@{ | ||
620 | /** | 635 | /** | ||
621 | * Creates a Compositor and sets it up to manage the interface identified by | 636 | * Creates a Compositor and sets it up to manage the interface identified by | ||
▲ Show 20 Lines • Show All 489 Lines • ▼ Show 20 Line(s) | |||||
1111 | * @param name The name of the org_kde_kwin_server_decoration_palette_manager interface to bind | 1126 | * @param name The name of the org_kde_kwin_server_decoration_palette_manager interface to bind | ||
1112 | * @param version The version or the org_kde_kwin_server_decoration_palette_manager interface to use | 1127 | * @param version The version or the org_kde_kwin_server_decoration_palette_manager interface to use | ||
1113 | * @param parent The parent for ServerSideDecorationPaletteManager | 1128 | * @param parent The parent for ServerSideDecorationPaletteManager | ||
1114 | * | 1129 | * | ||
1115 | * @returns The created ServerSideDecorationPaletteManager. | 1130 | * @returns The created ServerSideDecorationPaletteManager. | ||
1116 | * @since 5.42 | 1131 | * @since 5.42 | ||
1117 | **/ | 1132 | **/ | ||
1118 | ServerSideDecorationPaletteManager *createServerSideDecorationPaletteManager(quint32 name, quint32 version, QObject *parent = nullptr); | 1133 | ServerSideDecorationPaletteManager *createServerSideDecorationPaletteManager(quint32 name, quint32 version, QObject *parent = nullptr); | ||
1134 | | ||||
1135 | /** | ||||
1136 | * Creates an XdgOutputManager and sets it up to manage the interface identified by | ||||
1137 | * @p name and @p version. | ||||
1138 | * | ||||
1139 | * Note: in case @p name is invalid or isn't for the zxdg_output_manager_v1 interface, | ||||
1140 | * the returned XdgOutputManager will not be valid. Therefore it's recommended to call | ||||
1141 | * isValid on the created instance. | ||||
1142 | * | ||||
1143 | * @param name The name of the zxdg_output_manager_v1 interface to bind | ||||
1144 | * @param version The version or the zxdg_output_manager_v1 interface to use | ||||
1145 | * @param parent The parent for XdgOuptutManager | ||||
1146 | * | ||||
1147 | * @returns The created XdgOuptutManager. | ||||
1148 | * @since 5.XDGOUTPUTVERSION | ||||
1149 | **/ | ||||
1150 | XdgOutputManager *createXdgOutputManager(quint32 name, quint32 version, QObject *parent = nullptr); | ||||
1151 | | ||||
1119 | ///@} | 1152 | ///@} | ||
1120 | 1153 | | |||
1121 | 1154 | | |||
1122 | /** | 1155 | /** | ||
1123 | * cast operator to the low-level Wayland @c wl_registry | 1156 | * cast operator to the low-level Wayland @c wl_registry | ||
1124 | **/ | 1157 | **/ | ||
1125 | operator wl_registry*(); | 1158 | operator wl_registry*(); | ||
1126 | /** | 1159 | /** | ||
▲ Show 20 Lines • Show All 230 Lines • ▼ Show 20 Line(s) | 1168 | Q_SIGNALS: | |||
1357 | /** | 1390 | /** | ||
1358 | * Emitted whenever a org_kde_kwin_server_decoration_palette_manager interface gets announced. | 1391 | * Emitted whenever a org_kde_kwin_server_decoration_palette_manager interface gets announced. | ||
1359 | * @param name The name for the announced interface | 1392 | * @param name The name for the announced interface | ||
1360 | * @param version The maximum supported version of the announced interface | 1393 | * @param version The maximum supported version of the announced interface | ||
1361 | * @since 5.42 | 1394 | * @since 5.42 | ||
1362 | */ | 1395 | */ | ||
1363 | void serverSideDecorationPaletteManagerAnnounced(quint32 name, quint32 version); | 1396 | void serverSideDecorationPaletteManagerAnnounced(quint32 name, quint32 version); | ||
1364 | 1397 | | |||
1398 | /** | ||||
1399 | * Emitted whenever a zxdg_output_v1 interface gets announced. | ||||
1400 | * @param name The name for the announced interface | ||||
1401 | * @param version The maximum supported version of the announced interface | ||||
1402 | * @since 5.XDGOUTPUTVERSION | ||||
1403 | */ | ||||
1404 | void xdgOutputAnnounced(quint32 name, quint32 version); | ||||
1405 | | ||||
1365 | ///@} | 1406 | ///@} | ||
1366 | 1407 | | |||
1367 | /** | 1408 | /** | ||
1368 | * @name Interface removed signals. | 1409 | * @name Interface removed signals. | ||
1369 | **/ | 1410 | **/ | ||
1370 | ///@{ | 1411 | ///@{ | ||
1371 | /** | 1412 | /** | ||
1372 | * Emitted whenever a wl_compositor interface gets removed. | 1413 | * Emitted whenever a wl_compositor interface gets removed. | ||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | |||||
1559 | 1600 | | |||
1560 | /** | 1601 | /** | ||
1561 | * Emitted whenever a org_kde_kwin_server_decoration_palette_manager gets removed. | 1602 | * Emitted whenever a org_kde_kwin_server_decoration_palette_manager gets removed. | ||
1562 | * @param name The name of the removed interface | 1603 | * @param name The name of the removed interface | ||
1563 | * @since 5.42 | 1604 | * @since 5.42 | ||
1564 | **/ | 1605 | **/ | ||
1565 | void serverSideDecorationPaletteManagerRemoved(quint32 name); | 1606 | void serverSideDecorationPaletteManagerRemoved(quint32 name); | ||
1566 | 1607 | | |||
1608 | /** | ||||
1609 | * Emitted whenever a zxdg_output_v1 gets removed. | ||||
1610 | * @param name The name of the removed interface | ||||
1611 | * @since 5.XDGOUTPUTVERSION | ||||
1612 | **/ | ||||
1613 | void xdgOutputRemoved(quint32 name); | ||||
1614 | | ||||
1567 | ///@} | 1615 | ///@} | ||
1568 | /** | 1616 | /** | ||
1569 | * Generic announced signal which gets emitted whenever an interface gets | 1617 | * Generic announced signal which gets emitted whenever an interface gets | ||
1570 | * announced. | 1618 | * announced. | ||
1571 | * | 1619 | * | ||
1572 | * This signal is emitted before the dedicated signals are handled. If one | 1620 | * This signal is emitted before the dedicated signals are handled. If one | ||
1573 | * wants to know about one of the well-known interfaces use the dedicated | 1621 | * wants to know about one of the well-known interfaces use the dedicated | ||
1574 | * signals instead. Especially the bind methods might fail before the dedicated | 1622 | * signals instead. Especially the bind methods might fail before the dedicated | ||
Show All 40 Lines |
Function createXdgOutputUnstableV1 does not exist. Do you mean createXdgOutputManager?