[maemo-developers] QDBusError UnknownMethod for com.nokia.csd.Call service
From: Daniil Ivanov daniil.ivanov at gmail.comDate: Fri May 28 15:20:11 EEST 2010
- Previous message: QDBusError UnknownMethod for com.nokia.csd.Call service
- Next message: QDBusError UnknownMethod for com.nokia.csd.Call service
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Roman! Sorry, my fault. It should be something like this QDBusConnection connSystemBus = QDBusConnection::systemBus(); QDBusInterface dbusPhone( "com.nokia.csd.Call", "/com/nokia/csd/call", "com.nokia.csd.Call", connSystemBus ); QDBusMessage reply = dbusPhone.call( "CreateWith", "+43123456789",(uint)0 ); Thanks, Daniil. On Fri, May 28, 2010 at 3:14 PM, Daniil Ivanov <daniil.ivanov at gmail.com> wrote: > Hi Roman! > > Note that you seems to try to call it on system bus insteado of session bus. > > Thanks, Daniil. > > On Fri, May 28, 2010 at 3:07 PM, Roman Morawek <lists at morawek.at> wrote: >> Hello, >> >> I am using the Nokia Qt Beta SDK and try to initiate a voice call on >> Maemo/N900. Since there is no Qt API for this available, I try this via >> the DBus. >> >> Actually I want to mimic the functionality of the following working >> shell command: >> >> dbus-send --system --type=method_call --print-reply >> --dest=com.nokia.csd.Call /com/nokia/csd/call >> com.nokia.csd.Call.CreateWith string:"+43123456789" uint32:0 >> >> >> This is what I try: >> >> // DBUS call interface >> if (!QDBusConnection::sessionBus().isConnected()) >> return false; >> >> // initiate call >> QDBusConnection connSystemBus = QDBusConnection::systemBus(); >> QDBusInterface dbusPhone( "com.nokia.csd.Call", "/com/nokia/csd/call", >> QString(), connSystemBus ); >> qDebug() << "connected to bus with result " << dbusPhone.isValid(); >> >> QDBusMessage reply = dbusPhone.call( "CreateWith", "+43123456789", >> (uint)0 ); >> qDebug() << "call initiated with result " << dbusPhone.lastError(); >> >> >> As the output, I get the following error: >> >> connected to bus with result true >> call initiated with result >> QDBusError("org.freedesktop.DBus.Error.UnknownMethod", "Method >> "CreateWith" with signature "su" on interface "(null)" doesn't exist ") >> >> >> What am I doing wrong? >> Thanks a lot for your support! >> >> Regards, >> Roman >> _______________________________________________ >> maemo-developers mailing list >> maemo-developers at maemo.org >> https://lists.maemo.org/mailman/listinfo/maemo-developers >> >
- Previous message: QDBusError UnknownMethod for com.nokia.csd.Call service
- Next message: QDBusError UnknownMethod for com.nokia.csd.Call service
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]