diff options
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); +} |