QDBusMessage msg = QDBusMessage::createMethodCall("org.freedesktop.Notifications", "/org/freedesktop/Notifications", "org.freedesktop.Notifications", "SystemNoteDialog"); QString text = "Yellow alert message"; QList<QVariant> args; args.append(text); args.append(static_cast<quint32>(0)); args.append("ok"); msg.setArguments(args); QDBusConnection::systemBus().call(msg);
EDIT: This is Maemo specific code, doesn't work in other platforms.
Valério Valério
www.valeriovalerio.org
Last edited by VDVsx; 2010-01-07 at 17:13.