mirror of https://github.com/cutefishos/core
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
C++
61 lines
1.9 KiB
C++
/*
|
|
* 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"
|