views:

133

answers:

2

Hi, I need to trigger a phone call from a Qt application. I looked to previous post without find a complete answer. I need to make it with qt 4.6.3. I'm quite new to symbian development, I'm using the last nokiaSDK. It MUST work ONLY on n97 and E71.

Can Anybody provide a solution?

May be a solution exec an extenal process using QProcess?

Need help ASAP, please! Thank you!

+1  A: 

It seems like currently none of Qt APIs (including QtMobility) allows to do it. However, you can use native Symbian C++ API - CTelephony class. There are some examples showing how to make a phone call using this class. The obvious disadvantage is that it won't work on any other platform than Symbian.

You may be interested in this example: http://library.forum.nokia.com/topic/Qt_for_Symbian_Developers_Library/GUID-B4DA6005-3037-4FF8-82D5-BA748532E648.html#GUID-B4DA6005-3037-4FF8-82D5-BA748532E648. It shows how to mix Symbian C++ code with Qt code, and it also uses CTelephony, so you just need to change method call from GetPhoneId() to DialNewCall(). Don't forget to add appropriate library (etel3rdparty.lib) in your .pro file.

comb
A: 

Hello!

I have the same problem (need to do a phone call with Qt), but didn't manage it to combine the CTelephony API with Qt. In my project, I'm using the QtMobility API. I also work with QtCreator IDE (with the combined installation for Symbian Qt), not with Carbide C++. In the Symbian Wiki I read that it might not work to combine Symbian C++ and Qt using the QtCreator. Is this true for the example mentioned by comb in the most recent post?

If not, how do I have to include the etel3rdparty.lib in my project? Or more specific: how do I add it to the .pro-file in order to be able to use it on the device? Is there anything else than the NetworkServices Capability I need to add to the project file?

For testing purposes I added the libs with the concrete path:

LIBS += C:\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\armv5\lib\etel3rdparty.lib
INCLUDEPATH += C:\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\include\

but it throws lots of errors.

sorry for that newbie question, but I really don't have a clue how to get it to run. Maybe someone can help me.

Thanks a lot!

cyphorious
Look at my blog http://blog.breezit.net/2010/08/make-phone-call-with-qt-and-symbian.htmlI've published an example, I hope it helps you.Nicola
Breezeight