diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-14 14:11:26 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-14 14:11:26 +0200 |
commit | b9b1829dbc50534190c8b81f91ee477af6971834 (patch) | |
tree | 360f09061f43a247a5afdc2c83df2b9a03d86a4a /src/notificationadaptor.cpp | |
parent | 85fb48bc51fed06a50b6178727fdf9e96aea4fc4 (diff) | |
download | salmeta-b9b1829dbc50534190c8b81f91ee477af6971834.tar.gz salmeta-b9b1829dbc50534190c8b81f91ee477af6971834.zip |
addign watch properties, starting notification work
Diffstat (limited to 'src/notificationadaptor.cpp')
-rw-r--r-- | src/notificationadaptor.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/notificationadaptor.cpp b/src/notificationadaptor.cpp new file mode 100644 index 0000000..4279831 --- /dev/null +++ b/src/notificationadaptor.cpp @@ -0,0 +1,27 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -c NotificationAdaptor -a notificationadaptor.cpp org.freedesktop.Notifications.xml + * + * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#include "notificationadaptor.h" + +/* + * Implementation of adaptor class NotificationAdaptor + */ + +NotificationAdaptor::NotificationAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ +} + +uint NotificationAdaptor::Notify(const QString &app_name, uint replaces_id, const QString &app_icon, const QString &summary, const QString &body, const QStringList &actions, const QVariantHash &hints, int expire_timeout) +{ + // handle method call org.freedesktop.Notifications.Notify + static_cast<NotificationMonitor*>(parent())->handleNotification(app_name, replaces_id, app_icon, summary, body, actions, hints, expire_timeout); +} |