| ID | CS001026 | Creation date | June 13, 2008 |
| Platform | S60 3rd Edition, FP2 | Tested on devices | |
| Category | Symbian C++ | Subcategory | Telephony |
| Keywords (APIs, classes, methods, functions): AIW Dial Data Consumer API |
| Note! |
|---|
|
The AIW Dial Data Consumer API (class CAiwDialData) is introduced in the S60 3rd Edition, Feature Pack 2 SDK API Plug-in Pack.
The API can be used instead of TAiwDialDataV1, TAiwDialDataV1Pckg, TAiwVariant, TAiwGenericParam.
Using CAiwDialData simplifies parameter passing when the AIW framework is used for call dialing.
aiwdialdata.h
aiwdialdata.lib
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
No related wiki articles found