WEB开发网
开发学院手机开发Symbian 开发 symbian 使用http get post方式获取网页信息 阅读

symbian 使用http get post方式获取网页信息

 2010-05-31 19:38:00 来源:WEB开发网   
核心提示:452. {453. temp.Copy(password);454. TRAP(err, aPassword = aRealm.Pool().OpenStringL(temp));455. if (!err) return ETrue;456. }457. // Return ETrue if user has gi

452. {

453. temp.Copy(password);

454. TRAP(err, aPassword = aRealm.Pool().OpenStringL(temp));

455. if (!err) return ETrue;

456. }

457. // Return ETrue if user has given credentials (username and password),

458. // otherwise EFlase

459. return EFalse;

460. }

461.

462. // ----------------------------------------------------------------------------

463. // CClientEngine::SetupConnectionL()

464. //

465. // The method set the internet access point and connection setups.

466. // ----------------------------------------------------------------------------

467. void CClientEngine::SetupConnectionL()

468. {

469. if( iConnectionSetupDone )

470. return;

471.

472. iConnectionSetupDone = ETrue;

473.

474. //open socket server and start the connection

475. User::LeaveIfError(iSocketServ.Connect());//打开socket连接

476. User::LeaveIfError(iConnection.Open(iSocketServ));

477.

478. // open the IAP communications database

479. CCommsDatabase* commDB = CCommsDatabase::NewL(EDatabaseTypeIAP);//打开连接数据库

480. CleanupStack::PushL(commDB);

481. // initialize a view

482. CCommsDbConnectionPrefTableView* commDBView =

483. commDB- >OpenConnectionPrefTableInRankOrderLC(ECommDbConnectionDirectionUnknown);

484. // go to the first record

485. User::LeaveIfError(commDBView- >GotoFirstRecord());

486. // Declare a prefTableView Object.

487. CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref;

488. // read the connection preferences

489. commDBView- >ReadConnectionPreferenceL(pref);

490. TUint32 iapID = pref.iBearer.iIapId;

上一页  8 9 10 11 12 13 14 15 16 17 18  下一页

Tags:symbian 使用 http

编辑录入:coldstar [复制链接] [打 印]
赞助商链接