#include <mw/http/framework/cprottransaction.h>
| class CProtTransaction : public CBase |
| Protected Attributes | |
|---|---|
| CRxData * | iRxData |
| RHTTPTransaction | iTrans |
| TTransactionState | iTransactionState |
| CTxData * | iTxData |
| Public Member Enumerations | |
|---|---|
| enum | TTransactionState { EPending, EActive, ECancelled, ECompleted } |
| Public Member Functions | |
|---|---|
| virtual | ~CProtTransaction() |
| pure virtual void | CreateRxDataL(MRxDataObserver &) |
| pure virtual void | CreateTxDataL() |
| IMPORT_C void | ResetRxData() |
| IMPORT_C void | ResetTxData() |
| IMPORT_C CRxData & | RxData() |
| void | SetTransactionState(TTransactionState) |
| IMPORT_C RHTTPTransaction | Transaction() |
| TTransactionState | TransactionState() |
| IMPORT_C CTxData & | TxData() |
| Protected Member Functions | |
|---|---|
| CProtTransaction() | |
| CProtTransaction(RHTTPTransaction) | |
A representation of a transaction used by protocol handlers. This class is lower-level than the RHTTPTransaction class, since it owns objects that represent the request and response data as transmitted and received over a transport medium.
The TTransactionState type defines the states of a transaction.
| Enumerator | Value | Description |
|---|---|---|
| EPending | 0 |
Specifies that the transaction is pending servicing. |
| EActive |
Specifies that the transaction is being serviced - active. | |
| ECancelled |
Specifies that the transaction has been cancelled. | |
| ECompleted |
Specifies that the transaction has completed. |
| IMPORT_C | CProtTransaction | ( | RHTTPTransaction | aTrans | ) | [protected] |
Normal constructor, of a CProtTransaction that corresponds to the supplied client transaction handle. Normal constructor
| Parameters | |
|---|---|
| aTrans | (in) The client transaction handle. |
| IMPORT_C | ~CProtTransaction | ( | ) | [virtual] |
Intended Usage: Destructor - cleans up and releases resources to the system
| void | CreateRxDataL | ( | MRxDataObserver & | aObserver | ) | [pure virtual] |
| Parameters | |
|---|---|
| aObserver | A reference to the observer for the Rx data object. |
| Leave Codes | |
|---|---|
| KErrNoMemory | if there is not enough memory available to create the object. |
| void | CreateTxDataL | ( | ) | [pure virtual] |
| Leave Codes | |
|---|---|
| KErrNoMemory | if there is not enough memory available to create the object. |
| IMPORT_C void | ResetRxData | ( | ) |
| IMPORT_C void | ResetTxData | ( | ) |
| IMPORT_C CRxData & | RxData | ( | ) | const |
Obtain the Receive Data portion of the transaction. Obtain the Received Data portion of the transaction
| void | SetTransactionState | ( | TTransactionState | aState | ) |
| Parameters | |
|---|---|
| aState | The state that the transaction is in. |
| IMPORT_C RHTTPTransaction | Transaction | ( | ) | const |
Obtain the API-level transaction to which this object corresponds to. Obtain the API-level transaction to which this object corresponds
| TTransactionState | TransactionState | ( | ) | const |
Provides the state of the transaction, e.g. pending, active, etc.
| IMPORT_C CTxData & | TxData | ( | ) | const |
Obtain the Transmit Data portion of the transaction. Obtain the Transmit Data portion of the transaction