Reply
Thread Tools
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#11
For Qt4.5 and Qt4.6 (has it by default) without any extra lib:

Code:
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);
Code from Qt-extra-libs.
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.
 

The Following User Says Thank You to VDVsx For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:29.