×
Namespaces

Variants
Actions

How to open standard Clock App in Qt Maemo application

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): N900
Compatibility
Platform(s): Qt, Maemo
Symbian
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)

This page was last modified on 11 October 2012, at 04:17.
28 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×