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
qdbusmenuregistrarproxy_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 Dmitry Shachnev <mitya57@gmail.com>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
/*
6
* This file was originally created by qdbusxml2cpp version 0.8
7
* Command line was: qdbusxml2cpp -p qdbusmenuregistrarproxy ../../3rdparty/dbus-ifaces/com.canonical.AppMenu.Registrar.xml
8
*
9
* However it is maintained manually.
10
*/
11
12
#
ifndef
QDBUSMENUREGISTRARPROXY_P_H
13
#
define
QDBUSMENUREGISTRARPROXY_P_H
14
15
//
16
// W A R N I N G
17
// -------------
18
//
19
// This file is not part of the Qt API. It exists purely as an
20
// implementation detail. This header file may change from version to
21
// version without notice, or even be removed.
22
//
23
// We mean it.
24
//
25
26
#
include
<
QtCore
/
QObject
>
27
#
include
<
QtCore
/
QByteArray
>
28
#
include
<
QtCore
/
QList
>
29
#
include
<
QtCore
/
QString
>
30
#
include
<
QtCore
/
QVariant
>
31
#
include
<
QtDBus
/
QDBusAbstractInterface
>
32
#
include
<
QtDBus
/
QDBusConnection
>
33
#
include
<
QtDBus
/
QDBusReply
>
34
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
35
36
QT_BEGIN_NAMESPACE
37
38
/*
39
* Proxy class for interface com.canonical.AppMenu.Registrar
40
*/
41
class
QDBusMenuRegistrarInterface
:
public
QDBusAbstractInterface
42
{
43
Q_OBJECT
44
public
:
45
static
inline
const
char
*
staticInterfaceName
()
46
{
47
return
"com.canonical.AppMenu.Registrar"
;
48
}
49
50
public
:
51
explicit
QDBusMenuRegistrarInterface
(
const
QString
&
service
,
52
const
QString
&
path
,
53
const
QDBusConnection
&
connection
,
54
QObject
*
parent
=
nullptr
);
55
56
~
QDBusMenuRegistrarInterface
();
57
58
public
Q_SLOTS
:
// METHODS
59
QDBusPendingReply
<
QString
,
QDBusObjectPath
>
GetMenuForWindow
(
uint
windowId
)
60
{
61
return
asyncCall
(
QStringLiteral
(
"GetMenuForWindow"
),
windowId
);
62
}
63
QDBusReply
<
QString
>
GetMenuForWindow
(
uint
windowId
,
QDBusObjectPath
&
menuObjectPath
)
64
{
65
QDBusMessage
reply
=
call
(
QDBus
::
Block
,
QStringLiteral
(
"GetMenuForWindow"
),
windowId
);
66
QList
<
QVariant
>
arguments
=
reply
.
arguments
();
67
if
(
reply
.
type
() ==
QDBusMessage
::
ReplyMessage
&&
arguments
.
size
() == 2)
68
menuObjectPath
=
qdbus_cast
<
QDBusObjectPath
>(
arguments
.
at
(1));
69
return
reply
;
70
}
71
72
QDBusPendingReply
<>
RegisterWindow
(
uint
windowId
,
const
QDBusObjectPath
&
menuObjectPath
)
73
{
74
return
asyncCall
(
QStringLiteral
(
"RegisterWindow"
),
windowId
,
menuObjectPath
);
75
}
76
77
QDBusPendingReply
<>
UnregisterWindow
(
uint
windowId
)
78
{
79
return
asyncCall
(
QStringLiteral
(
"UnregisterWindow"
),
windowId
);
80
}
81
};
82
83
QT_END_NAMESPACE
84
85
#
endif
// QDBUSMENUREGISTRARPROXY_P_H
QDBusMenuRegistrarInterface
Definition
qdbusmenuregistrarproxy_p.h:42
QDBusMenuRegistrarInterface::~QDBusMenuRegistrarInterface
~QDBusMenuRegistrarInterface()
Definition
qdbusmenuregistrarproxy.cpp:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
REGISTRAR_PATH
#define REGISTRAR_PATH
Definition
qdbusmenubar.cpp:20
REGISTRAR_SERVICE
#define REGISTRAR_SERVICE
Definition
qdbusmenubar.cpp:19
qtbase
src
gui
platform
unix
dbusmenu
qdbusmenuregistrarproxy_p.h
Generated on
for Qt by
1.14.0