How to use Mobile Extension APIs in Qt for Symbian
Article Metadata
Note also that the instructions in this article may be out of date. See Using Symbian C++ in the Qt SDK for more information.
The (deprecated) Mobile Extension APIs are delivered as source code and should be added as a part of your Qt project. You can download latest Mobile Extension APIs from Archived:Mobile Extensions. As Mobile Extension APIs are source code, you need not have to run installer for installation. You can use Mobile Extension APIs in two ways. Either Use Mobile Extension APIs by copying files Or Use Mobile Extension APIs through Carbide.C++ templates.
Preconditions
- Download and install the Qt SDK.
Use Mobile Extension APIs by copying files
You can also use Mobile Extension APIs by directly copying files to your project. For that you have to copy source files from respective extension directory. For example to use Telephony API extension go to src directory (..\Mobile_extensions_preview_2\extensions\telephony\src) of telephony directory in preview package, copy and past all files to your project. After that modify your .pro file as per implementation notes, you will find implementation notes in documentation. For that check ../Mobile_extensions_preview_2/doc/index.html and then click on Telephony API > Telephony API implementation notes.
Use Mobile Extension APIs through Carbide.C++ templates
It is not mandatory to use the Carbide templates, but it is easy to use the Carbide.c++ templates. For using templates, copy the com.forum.nokia.templates_extensions.jar file from ..\Mobile_extensions_preview_2\extensions directory of your downloaded package and past it into the Carbide.c++ plugins directory (for example D:\Program Files\Nokia\Carbide.c++ 2.0\plugins). This plugin allows you to access source classes that you downloaded from preview package.
After installation you can use it in your application as follows.
Select the project for which you want to add the Extension API
Specify the name and location of the generated source and header files, for example MyExtendedClass here
Select the extension you want to use, for example Telephony API extension
Note: Copy the last line from Extension note and past them in your .pro file. for example copy "symbian:LIBS += -letel3rdparty" and past it to .pro file for Telephony API extension.


16 Sep
2009
Mobile Extentions add extentions to your applications and adds source code to your application. So they become very benefical to the developers.
The article contains important information about how to use mobile extentions. There are two ways of using mobile extentions: Using Mobile Extension APIs by copying files Or Using Mobile Extension APIs through Carbide.C++ templates. The article describes both of these and contains image-implementations for the later one to ease us during actual implementation. The article also contains an external link called "Mobile Extentions", which provides all the basic information about Mobile Extentions.
The article can be very benefical to beginners as well intermediate developers who wants to deal with mobile extentions.