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
qxdgnotificationproxy_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
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:
8 qdbusxml2cpp -p qxdgnotificationproxy ../../3rdparty/dbus-ifaces/org.freedesktop.Notifications.xml
9
10 However it is maintained manually.
11
12 It is also not part of the public API. This header file may change from
13 version to version without notice, or even be removed.
14*/
15
16#ifndef QXDGNOTIFICATIONPROXY_P_H
17#define QXDGNOTIFICATIONPROXY_P_H
18
19//
20// W A R N I N G
21// -------------
22//
23// This file is not part of the Qt API. It exists for the convenience
24// of other Qt classes. This header file may change from version to
25// version without notice, or even be removed.
26//
27// We mean it.
28//
29
30#include <QObject>
31#include <QByteArray>
32#include <QList>
33#include <QLoggingCategory>
34#include <QMap>
35#include <QString>
36#include <QStringList>
37#include <QVariant>
38#include <QDBusAbstractInterface>
39#include <QDBusPendingReply>
40#include <QDBusReply>
41#include <private/qglobal_p.h>
42
44
46
47/*
48 * Proxy class for interface org.freedesktop.Notifications
49 */
51{
53public:
54 static inline const char *staticInterfaceName()
55 { return "org.freedesktop.Notifications"; }
56
57public:
59 const QDBusConnection &connection, QObject *parent = nullptr);
60
62
63public Q_SLOTS: // METHODS
65 {
66 return asyncCall(QStringLiteral("CloseNotification"), id);
67 }
68
70 {
71 return asyncCall(QStringLiteral("GetCapabilities"));
72 }
73
75 {
76 return asyncCall(QStringLiteral("GetServerInformation"));
77 }
88
89 // see https://developer.gnome.org/notification-spec/#basic-design
97
100 void NotificationClosed(uint id, uint reason);
101};
102
103QT_END_NAMESPACE
104
110
111#endif
void NotificationClosed(uint id, uint reason)
QDBusPendingReply closeNotification(uint id)
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)