Symbian IAP 浅谈:Symbian网络接入点常用编程
2010-05-06 17:25:00 来源:WEB开发网核心提示:EFalse,EApSettingsSelListIsListPane,EApSettingsSelMenuNormal,KEApIspTypeAll,EApBearerTypeAll,KEApSortNameAscending);TUint32 originallyFocused(uid);TUint32 selec
EFalse,
EApSettingsSelListIsListPane,
EApSettingsSelMenuNormal,
KEApIspTypeAll,
EApBearerTypeAll,
KEApSortNameAscending);
TUint32 originallyFocused(uid);
TUint32 selectedIap(uid);
// Show the dialog
settingsHandler->RunSettingsL(originallyFocused, selectedIap);
CleanupStack::PopAndDestroy(settingsHandler);
/*Ex2: Iterate over a list of IAPs (Series 60 only) */
CCommsDatabase* CommDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
CleanupStack::PushL(CommDb);
CApSelect* ApSelect = CApSelect::NewLC(*CommDb, KEApIspTypeAll ,EApBearerTypeAll ,KEApSortUidAscending);
if (ApSelect->MoveToFirst())
{
do
{
TUint uid = ApSelect->Uid();
//put here your IAP stuff
}
while(ApSelect->MoveNext());
}
CleanupStack::PopAndDestroy(ApSelect);
CleanupStack::PopAndDestroy(CommDb);
更多精彩
赞助商链接