RExplicitHTTPSession Class Reference
| class RExplicitHTTPSession |
RExplicitHTTPSession is a wrapper around the RHTTPSession. This handle provides features which allows the application to prompt the user only once for the selection of an IAP during muliple connections within a session.
Constructor & Destructor Documentation
RExplicitHTTPSession()
| IMPORT_C | RExplicitHTTPSession | ( | ) | |
Member Functions Documentation
BindConnectionL(TUint32, TBool)
| void | BindConnectionL | ( | TUint32 | aIap, |
| | TBool | aStartConnection |
| | ) | [private] |
CancelStart()
| IMPORT_C void | CancelStart | ( | ) | |
OpenL(const TUriC8 &, TUint32, TBool)
| IMPORT_C void | OpenL | ( | const TUriC8 & | aUri, |
| | TUint32 | aIapNumber = 0, |
| | TBool | aStartConnection = ETrue |
| | ) | |
This is a wrapper for the session handle RHTTPSession. It opens a session and sets up the proxies and the network settings using the provided IAP. It also starts a connection using the connection preference settings in CommDb. This function leaves with an appropriate error code if the open failed.
Parameters
| const TUriC8 & aUri | This is used to retrieve the proxy record. If no proxy is found for the given URI, then no proxy will be used by default. |
| TUint32 aIapNumber = 0 | This carries the IAP. If this is non-zero, it will be set as a connction preference and the user will not be prompted for an IAP. |
| TBool aStartConnection = ETrue | If set to ETrue, a new connection is started. This by default is set to ETrue. |
StartConnection(TRequestStatus &)
Parameters
| TRequestStatus & aStatus | On return, the status of the request, e.g. KErrNone, KErrAlreadyExists. |
UseProxyL(const TDesC8 &, HBufC8 *&)
Member Data Documentation
RHTTPSession
iHTTPSession
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.