×
Namespaces

Variants
Actions
Revision as of 16:02, 23 January 2013 by lpvalente (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:AIW Dial Data Consumer Symbian API

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.


The AIW Dial Data Consumer API (class CAiwDialData) can be used instead of TAiwDialDataV1, TAiwDialDataV1Pckg, TAiwVariant, TAiwGenericParam. It simplifies parameter passing when the AIW framework is used for call dialing. The API was introduced in the S60 3rd Edition FP2 SDK API Plug-in Pack.

Article Metadata
Code ExampleCompatibility
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Article
Keywords: AIW Dial Data Consumer API
Created: User:Technical writer 1 (13 Jun 2008)
Last edited: lpvalente (23 Jan 2013)

Note.pngNote: This API is not part of the public SDK. It can be found in the SDK API Plug-in.

Contents

Header file

 aiwdialdata.h

Library

aiwdialdata.lib

Dialing a voice call with CAiwDialData

 CAiwServiceHandler* serviceHandler = CAiwServiceHandler::NewLC();
RCriteriaArray interest;
CleanupClosePushL( interest );
 
CAiwCriteriaItem* criteria =
CAiwCriteriaItem::NewLC(KAiwCmdCall, KAiwCmdCall,_L8("*"));
 
TUid base;
base.iUid = KAiwClassBase;
criteria->SetServiceClass( base );
User::LeaveIfError( interest.Append( criteria ) );
// Attach to AIW interest
serviceHandler->AttachL( interest );
 
//Create CAiwDialData instance
CAiwDialData* dialData = CAiwDialData::NewLC();
dialData->SetCallType( CAiwDialData::EAIWVoice );
 
//Define call parameters
_LIT(phoneNumber, "+35840123456");
dialData->SetPhoneNumberL(phoneNumber);
dialData->SetWindowGroup( AIWDialData::KAiwGoToIdle );
CAiwGenericParamList& paramList = serviceHandler->InParamListL();
// Fill in the parameter list
dialData->FillInParamListL( paramList );
// Execute call command
serviceHandler->ExecuteServiceCmdL( KAiwCmdCall, paramList,
serviceHandler->OutParamListL() );
CleanupStack::PopAndDestroy( 3 ); // dialData, criteria, interest


Example project

File:AiwConsumerFP2Ex.zip

This page was last modified on 23 January 2013, at 16:02.
166 page views in the last 30 days.