[maemo-developers] QDBusError UnknownMethod for com.nokia.csd.Call service
From: Roman Morawek lists at morawek.atDate: Fri May 28 15:07:55 EEST 2010
- Previous message: Alternate Line Service (ALS) support
- Next message: QDBusError UnknownMethod for com.nokia.csd.Call service
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Alternate Line Service (ALS) support
- Next message: QDBusError UnknownMethod for com.nokia.csd.Call service
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
