[maemo-developers] QDBusConnection.connect failing for com.nokia.csd.Call.Instance in Fremantle PR 1.2

From: Naresh Mehta nareshtechs at gmail.com
Date: Wed Aug 4 15:33:29 EEST 2010
Dear All,

I have been developing a QT application for Maemo known as Conference
Manager. The code is hosted at
https://garage.maemo.org/projects/confmgr. I am facing a problem with
connecting to the com.nokia.csd.Call.Instance interface. I want to
know when my dialed call is answered. I have looked at both CallStatus
and AudioConnect members but my QDBusConnection.connect method returns
false. I don't know why. I have gone through all the previous postings
and tried to duplicate the code but still it does not work for me.

I don't know if this is a problem with process permissions? I am
pasting the code snippet below. I have tried various alternatives but
my connect method is still failing (returning a false status). Any
help would be greatly appreciated. The full source is available in the
git project above. Eagerly waiting for a revelation.

QDBusConnection connection = mDBusUtility.getConnection();
bool status = connection.connect(QString(""), CSD_CALL_INSTANCE_PATH,
CSD_CALL_INSTANCE_INTERFACE,
        QString("AudioConnect"),this, SLOT(sendDTMF(const QDBusMessage&)));

if(!status)
{
    qDebug() << "Failed to connect to Dbus signal AudioConnect in
interface "<< CSD_CALL_INSTANCE_INTERFACE;
    QString error = "DBus Error: " + mDBusUtility.getErrorMessage();
92         mDBusUtility.displayNotification(error);
}

--

BR; Naresh

visit me at:
http://www.naresh.se/
More information about the maemo-developers mailing list