-
Notifications
You must be signed in to change notification settings - Fork 0
/
notifyadaptor.cpp
58 lines (49 loc) · 1.75 KB
/
notifyadaptor.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* This file was generated by qdbusxml2cpp version 0.7
* Command line was: qdbusxml2cpp -v -c NotifyAdaptor -a notifyadaptor.h:notifyadaptor.cpp -l Notifyd -i notifyd.h notifications.xml
*
* qdbusxml2cpp is Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "notifyadaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class NotifyAdaptor
*/
NotifyAdaptor::NotifyAdaptor(Notifyd *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
NotifyAdaptor::~NotifyAdaptor()
{
// destructor
}
void NotifyAdaptor::CloseNotification(uint id)
{
// handle method call org.freedesktop.Notifications.CloseNotification
parent()->CloseNotification(id);
}
QStringList NotifyAdaptor::GetCapabilities()
{
// handle method call org.freedesktop.Notifications.GetCapabilities
return parent()->GetCapabilities();
}
QString NotifyAdaptor::GetServerInformation(QString &vendor, QString &version, QString &spec_version)
{
// handle method call org.freedesktop.Notifications.GetServerInformation
return parent()->GetServerInformation(vendor, version, spec_version);
}
uint NotifyAdaptor::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);
}