mirror of https://github.com/cutefishos/core
Fix ubuntu build
parent
8acd88085f
commit
e0e0a726ea
@ -0,0 +1,61 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -m -a notificationsadaptor -i notificationserver.h -l NotificationServer /home/reion/Cutefish/core/notificationd/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.
|
||||
*/
|
||||
|
||||
#include "notificationsadaptor.h"
|
||||
#include <QtCore/QMetaObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
|
||||
/*
|
||||
* Implementation of adaptor class NotificationsAdaptor
|
||||
*/
|
||||
|
||||
NotificationsAdaptor::NotificationsAdaptor(NotificationServer *parent)
|
||||
: QDBusAbstractAdaptor(parent)
|
||||
{
|
||||
// constructor
|
||||
setAutoRelaySignals(true);
|
||||
}
|
||||
|
||||
NotificationsAdaptor::~NotificationsAdaptor()
|
||||
{
|
||||
// destructor
|
||||
}
|
||||
|
||||
void NotificationsAdaptor::CloseNotification(uint id)
|
||||
{
|
||||
// handle method call org.freedesktop.Notifications.CloseNotification
|
||||
parent()->CloseNotification(id);
|
||||
}
|
||||
|
||||
QStringList NotificationsAdaptor::GetCapabilities()
|
||||
{
|
||||
// handle method call org.freedesktop.Notifications.GetCapabilities
|
||||
return parent()->GetCapabilities();
|
||||
}
|
||||
|
||||
QString NotificationsAdaptor::GetServerInformation(QString &vendor, QString &version, QString &spec_version)
|
||||
{
|
||||
// handle method call org.freedesktop.Notifications.GetServerInformation
|
||||
return parent()->GetServerInformation(vendor, version, spec_version);
|
||||
}
|
||||
|
||||
uint NotificationsAdaptor::Notify(const QString &app_name, uint replaces_id, const QString &app_icon, const QString &summary, const QString &body, const QStringList &actions, const QVariantMap &hints, int expire_timeout)
|
||||
{
|
||||
// handle method call org.freedesktop.Notifications.Notify
|
||||
return parent()->Notify(app_name, replaces_id, app_icon, summary, body, actions, hints, expire_timeout);
|
||||
}
|
||||
|
||||
|
||||
#include "notificationsadaptor.moc"
|
||||
@ -0,0 +1,88 @@
|
||||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -m -a notificationsadaptor -i notificationserver.h -l NotificationServer /home/reion/Cutefish/core/notificationd/org.freedesktop.Notifications.xml
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
* before re-generating it.
|
||||
*/
|
||||
|
||||
#ifndef NOTIFICATIONSADAPTOR_H
|
||||
#define NOTIFICATIONSADAPTOR_H
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include "notificationserver.h"
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QByteArray;
|
||||
template<class T> class QList;
|
||||
template<class Key, class Value> class QMap;
|
||||
class QString;
|
||||
class QStringList;
|
||||
class QVariant;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
/*
|
||||
* Adaptor class for interface org.freedesktop.Notifications
|
||||
*/
|
||||
class NotificationsAdaptor: public QDBusAbstractAdaptor
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Notifications")
|
||||
Q_CLASSINFO("D-Bus Introspection", ""
|
||||
" <interface name=\"org.freedesktop.Notifications\">\n"
|
||||
" <method name=\"GetServerInformation\">\n"
|
||||
" <arg direction=\"out\" type=\"s\" name=\"name\"/>\n"
|
||||
" <arg direction=\"out\" type=\"s\" name=\"vendor\"/>\n"
|
||||
" <arg direction=\"out\" type=\"s\" name=\"version\"/>\n"
|
||||
" <arg direction=\"out\" type=\"s\" name=\"spec_version\"/>\n"
|
||||
" </method>\n"
|
||||
" <method name=\"CloseNotification\">\n"
|
||||
" <arg direction=\"in\" type=\"u\" name=\"id\"/>\n"
|
||||
" </method>\n"
|
||||
" <method name=\"Notify\">\n"
|
||||
" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In6\"/>\n"
|
||||
" <arg direction=\"in\" type=\"s\" name=\"app_name\"/>\n"
|
||||
" <arg direction=\"in\" type=\"u\" name=\"replaces_id\"/>\n"
|
||||
" <arg direction=\"in\" type=\"s\" name=\"app_icon\"/>\n"
|
||||
" <arg direction=\"in\" type=\"s\" name=\"summary\"/>\n"
|
||||
" <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
|
||||
" <arg direction=\"in\" type=\"as\" name=\"actions\"/>\n"
|
||||
" <arg direction=\"in\" type=\"a{sv}\" name=\"hints\"/>\n"
|
||||
" <arg direction=\"in\" type=\"i\" name=\"expire_timeout\"/>\n"
|
||||
" <arg direction=\"out\" type=\"u\" name=\"id\"/>\n"
|
||||
" </method>\n"
|
||||
" <method name=\"GetCapabilities\">\n"
|
||||
" <arg direction=\"out\" type=\"as\" name=\"capabilities\"/>\n"
|
||||
" </method>\n"
|
||||
" <signal name=\"ActionInvoked\">\n"
|
||||
" <arg type=\"u\"/>\n"
|
||||
" <arg type=\"s\"/>\n"
|
||||
" </signal>\n"
|
||||
" <signal name=\"NotificationClosed\">\n"
|
||||
" <arg type=\"u\"/>\n"
|
||||
" <arg type=\"u\"/>\n"
|
||||
" </signal>\n"
|
||||
" </interface>\n"
|
||||
"")
|
||||
public:
|
||||
NotificationsAdaptor(NotificationServer *parent);
|
||||
virtual ~NotificationsAdaptor();
|
||||
|
||||
inline NotificationServer *parent() const
|
||||
{ return static_cast<NotificationServer *>(QObject::parent()); }
|
||||
|
||||
public: // PROPERTIES
|
||||
public Q_SLOTS: // METHODS
|
||||
void CloseNotification(uint id);
|
||||
QStringList GetCapabilities();
|
||||
QString GetServerInformation(QString &vendor, QString &version, QString &spec_version);
|
||||
uint Notify(const QString &app_name, uint replaces_id, const QString &app_icon, const QString &summary, const QString &body, const QStringList &actions, const QVariantMap &hints, int expire_timeout);
|
||||
Q_SIGNALS: // SIGNALS
|
||||
void ActionInvoked(uint in0, const QString &in1);
|
||||
void NotificationClosed(uint in0, uint in1);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue