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.iva...@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 <li...@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@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to