[maemo-developers] Bringing up the accounts UI using DBus

From: Alberto Mardegan mardy at users.sourceforge.net
Date: Tue Jul 12 09:28:18 EEST 2011
On 07/10/2011 02:30 AM, Jamie Thompson wrote:
> I'm trying to bring up the Accounts UI using DBus in a Qt application:
>> const char * NOKIA_SERVICE_ACCOUNTS_UI("com.nokia.AccountsUI");
>> const char * NOKIA_PATH_ACCOUNTS_UI("/com/nokia/AccountsUI");
>> const char * NOKIA_IFACE_ACCOUNTS_UI("com.nokia.Accounts");
>>
>> QDBusInterface nokiaAccountsUI(NOKIA_SERVICE_ACCOUNTS_UI, NOKIA_PATH_ACCOUNTS_UI, NOKIA_IFACE_ACCOUNTS_UI);
[...]
> ...but it doesn't seem to work properly.

I'm not sure what the problem is, but maybe QDBusInterface isn't happy
with the result of the introspection.
Try not using QDbusInterface, and just send the method on QDBusConnection.

Ciao,
  Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!
More information about the maemo-developers mailing list