You Are Here:

Community: Wiki

This page was last modified on 30 October 2009, at 14:40.

How to use Mobile Extension APIs in Qt for Symbian

From Forum Nokia Wiki

Reviewer Approved   

Contents

Overview

The Mobile Extension APIs are delivered as source code and should be added as a part of your Qt for S60 project. You can download latest Mobile Extension APIs from 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

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 sub menu Symbian OS C++ Class from From menu File > New > Symbian OS C++ Class

Image:MExtension1.JPG

Select the project for which you want to add the Extension API

Image:MExtension2.JPG

Specify the name and location of the generated source and header files, for example MyExtendedClass here

Image:MExtension3.JPG

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.

Image:MExtension4.JPG

Specify other properties of the generated files, Enter whatever information you want here and then click Finish

Image:MExtension5.JPG

This will generates following files in your project ( for Telephony API extension) in your project, Now you can use Exteded API.

Image:MExtension6.JPG

Related Links

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fComboBoE78E5fwithE5fcolorE5fpalettesE5finE5fE51tE5fforE5fSymbianX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZE71tQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxE71tX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ