1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
falkonOfficial/src/desktopnotifications/desktopnotificationsfactory.cpp

18 lines
641 B
C++
Raw Normal View History

#include "desktopnotificationsfactory.h"
DesktopNotificationsFactory::DesktopNotificationsFactory(QObject *parent) :
QObject(parent)
{
QDBusInterface dbus("org.freedesktop.Notifications", "/org/freedesktop/Notifications", "org.freedesktop.Notifications", QDBusConnection::sessionBus());
QVariantList args;
args.append("qupzilla");
args.append(QVariant::UInt);
args.append("/home/david/a.png");
args.append("Summary");
args.append("Body of notification");
args.append(QStringList());
args.append(QVariantMap());
args.append(-1);
dbus.callWithArgumentList(QDBus::AutoDetect, "Notify", args);
}