Symbian 网络接入点常用编程方法总结
2010-03-18 21:02:00 来源:WEB开发网核心提示:CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP);CleanupStack::PushL(commDb);CCommsDbTableView* pIAPView = commDb->OpenViewMatchingUintLC( TPt
CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
CleanupStack::PushL(commDb);
CCommsDbTableView* pIAPView = commDb->OpenViewMatchingUintLC( TPtrC(IAP), TPtrC(IAP_SERVICE), iCmwapId ) ;
TInt ret = pIAPView->GotoFirstRecord();
while( ret == KErrNone )
{
pIAPView->ReadTextL( TPtrC(IAP_SERVICE_TYPE), name );
if( name.CompareF(_L8("OutgoingGPRS")) == 0 )
{
TRAPD(err, pIAPView->ReadUintL(TPtrC(COMMDB_ID), iCmwapId));
find = ETrue;
break;
}
ret = pIAPView->GotoNextRecord();
}
CleanupStack::PopAndDestroy(2);
}
if(find)
break;
ret = commView->GotoNextRecord();
}
CleanupStack::PopAndDestroy(2);
}
更多精彩
赞助商链接