symbian net wap 区分

TBool  isWap = EFalse;
 TBuf<128> iapServerType;
 TUint32  iapServerId;
  CCommsDatabase*   commsDb = CCommsDatabase::NewL( EDatabaseTypeIAP );
  CleanupStack::PushL( commsDb );
  CCommsDbTableView*   iapView =  commsDb->OpenViewMatchingUintLC( TPtrC( IAP ), TPtrC( COMMDB_ID ), iap );
  User::LeaveIfError( iapView->GotoFirstRecord() ) ;
  
  iapView->ReadTextL( TPtrC( IAP_SERVICE_TYPE ), iapServerType );
   
   if( iapServerType == TPtrC( OUTGOING_GPRS ) )
   { 
    iapView->ReadUintL( TPtrC( IAP_SERVICE ), iapServerId );
    CCommsDbTableView*   gprsView = commsDb->OpenViewOnProxyRecordLC( iapServerId, TPtrC( OUTGOING_GPRS ) );
    if( KErrNone ==  gprsView->GotoFirstRecord( ) )
     {
      gprsView->ReadBoolL( TPtrC( PROXY_USE_PROXY_SERVER ), isWap );
      
     }
    
    CleanupStack::PopAndDestroy();
   }
   CleanupStack::PopAndDestroy( 2 );

阅读更多
个人分类: s60
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭