CCommsDatabase的API中有一个接口可以打开某接入点的proxy表commsView2:
IMPORT_C CCommsDbTableView *OpenViewOnProxyRecordLC(TUint32 aServiceId, const TDesC &aServiceType);
它需要两个参数TUint32 aServiceId和const TDesC &aServiceType,分别可以在读取Id和name的时候取到
commView->ReadUintL(TPtrC(COMMDB_ID), iap.iId);
commView->ReadTextL(TPtrC(COMMDB_NAME), iap.iName);
commView->ReadUintL(TPtrC(IAP_SERVICE), IapService);
commView->ReadTextL(TPtrC(IAP_SERVICE_TYPE), ServiceType);
我们可以通过
commsView2->ReadLongTextLC(TPtrC( PROXY_SERVER_NAME)); //代理服务器地址
commsView2->ReadUintL(TPtrC(PROXY_PORT_NUMBER), iap.iProxyPort); //端口