You've already forked ukui-notification-daemon
mirror of
https://github.com/ukui/ukui-notification-daemon.git
synced 2026-03-09 09:30:35 -07:00
102 lines
3.7 KiB
C++
102 lines
3.7 KiB
C++
/*
|
|
* This file was generated by qdbusxml2cpp version 0.8
|
|
* Command line was: qdbusxml2cpp -p notifications_interface.h: org.freedesktop.Notifications.xml
|
|
*
|
|
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
|
*
|
|
* This is an auto-generated file.
|
|
* Do not edit! All changes made to it will be lost.
|
|
*/
|
|
|
|
#ifndef NOTIFICATIONS_INTERFACE_H
|
|
#define NOTIFICATIONS_INTERFACE_H
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QByteArray>
|
|
#include <QtCore/QList>
|
|
#include <QtCore/QMap>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QStringList>
|
|
#include <QtCore/QVariant>
|
|
#include <QtDBus/QtDBus>
|
|
|
|
/*
|
|
* Copyright (C) 2020, KylinSoft Co., Ltd.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
class OrgFreedesktopNotificationsInterface: public QDBusAbstractInterface
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static inline const char *staticInterfaceName()
|
|
{ return "org.freedesktop.Notifications"; }
|
|
|
|
public:
|
|
OrgFreedesktopNotificationsInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
|
|
|
|
~OrgFreedesktopNotificationsInterface();
|
|
|
|
public Q_SLOTS: // METHODS
|
|
|
|
inline QDBusPendingReply<> CloseNotification(uint id)
|
|
{
|
|
QList<QVariant> argumentList;
|
|
argumentList << QVariant::fromValue(id);
|
|
return asyncCallWithArgumentList(QStringLiteral("CloseNotification"), argumentList);
|
|
}
|
|
|
|
inline QDBusPendingReply<QStringList> GetCapabilities()
|
|
{
|
|
QList<QVariant> argumentList;
|
|
return asyncCallWithArgumentList(QStringLiteral("GetCapabilities"), argumentList);
|
|
}
|
|
|
|
inline QDBusPendingReply<QString, QString, QString, QString> GetServerInformation()
|
|
{
|
|
QList<QVariant> argumentList;
|
|
return asyncCallWithArgumentList(QStringLiteral("GetServerInformation"), argumentList);
|
|
}
|
|
inline QDBusReply<QString> GetServerInformation(QString &name, QString &vendor, QString &version)
|
|
{
|
|
QList<QVariant> argumentList;
|
|
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetServerInformation"), argumentList);
|
|
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 4) {
|
|
name = qdbus_cast<QString>(reply.arguments().at(1));
|
|
vendor = qdbus_cast<QString>(reply.arguments().at(2));
|
|
version = qdbus_cast<QString>(reply.arguments().at(3));
|
|
}
|
|
return reply;
|
|
}
|
|
|
|
inline QDBusPendingReply<uint> Notify(const QString &in0, uint replacesId, const QString &in2, const QString &in3, const QString &in4, const QStringList &in5, const QVariantMap &in6, int in7)
|
|
{
|
|
QList<QVariant> argumentList;
|
|
argumentList << QVariant::fromValue(in0) << QVariant::fromValue(replacesId) << QVariant::fromValue(in2) << QVariant::fromValue(in3) << QVariant::fromValue(in4) << QVariant::fromValue(in5) << QVariant::fromValue(in6) << QVariant::fromValue(in7);
|
|
return asyncCallWithArgumentList(QStringLiteral("Notify"), argumentList);
|
|
}
|
|
|
|
Q_SIGNALS: // SIGNALS
|
|
void ActionInvoked(uint in0, const QString &in1);
|
|
void NotificationClosed(uint in0, uint in1);
|
|
};
|
|
|
|
namespace org {
|
|
namespace freedesktop {
|
|
typedef ::OrgFreedesktopNotificationsInterface Notifications;
|
|
}
|
|
}
|
|
#endif
|