How to open standard Clock App in Qt Maemo application
Article Metadata
Tested with
Devices(s): N900
Compatibility
Platform(s): Qt, Maemo
Article
Keywords: QWidget, QDBusConnection
Created: Avis
(30 Nov 2010)
Last edited: hamishwillee
(11 Oct 2012)
Contents |
Overview
This article shows how to start system applications in Maemo, using the D-Bus command (as there is no Qt API for this purpose).
Here is an example of how to start Clock Application.
Project .pro file
// Maemo specific config lines, added to PRO-file
unix:!symbian {
CONFIG += qdbus
}
Header
#include <QtDBus/QtDBus>Source
// initializing D-Bus connection
QDBusConnection bus = QDBusConnection::sessionBus();
// here we create the D-Bus interface for starting application
QDBusInterface dbus_iface("com.nokia.HildonDesktop.AppMgr", "/com/nokia/HildonDesktop/AppMgr",
"com.nokia.HildonDesktop.AppMgr", bus);
// here we send command 'LaunchApplication' with param 'worldclock'
dbus_iface.call("LaunchApplication","worldclock");
See also
--Avis 8:51, 30 November 2010 (UTC)


(no comments yet)