Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandxdgdialogv1_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:critical reason:network-protocol
4
5#ifndef QWAYLANDXDGDIALOGV1_P_H
6#define QWAYLANDXDGDIALOGV1_P_H
8#include <QtWaylandCompositor/QWaylandCompositorExtensionTemplate>
9#include <QtWaylandCompositor/private/qwaylandcompositorextension_p.h>
10#include <QtWaylandCompositor/private/qwayland-server-xdg-dialog-v1.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
24
25class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandXdgDialogV1Global
26 : public QWaylandCompositorExtensionTemplate<QWaylandXdgDialogV1Global>
27 , public QtWaylandServer::xdg_wm_dialog_v1
28{
29 Q_OBJECT
30public:
31 QWaylandXdgDialogV1Global(QWaylandCompositor *parent = nullptr);
32
33 void initialize() override;
34
35protected:
36 void xdg_wm_dialog_v1_get_xdg_dialog(Resource *resource, uint32_t id, wl_resource *toplevelResource) override;
37};
38
39class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandXdgDialogV1
40 : public QtWaylandServer::xdg_dialog_v1
41{
42public:
43 QWaylandXdgDialogV1(QWaylandXdgToplevel *toplevel, wl_client *client, int id);
44
45protected:
46 void xdg_dialog_v1_destroy_resource(Resource *resource) override;
47 void xdg_dialog_v1_destroy(Resource *resource) override;
48
49 void xdg_dialog_v1_set_modal(Resource *resource) override;
50 void xdg_dialog_v1_unset_modal(Resource *resource) override;
51
52private:
53 QPointer<QWaylandXdgToplevel> m_topLevel;
54};
55
56QT_END_NAMESPACE
57
58#endif
\qmltype WaylandCompositor \nativetype QWaylandCompositor \inqmlmodule QtWayland.Compositor
Combined button and popup list for selecting options.
const QLoggingCategory & qLcWaylandCompositorTextInput()
const QLoggingCategory & qLcWaylandCompositorInputMethods()