#include "ss_datatransfer.h"
| class CConnDataTransfer : public CBase |
| Protected Attributes | |
|---|---|
| RPointerArray< MConnDataTransferNotify > | iClients |
| Public Member Functions | |
|---|---|
| IMPORT_C TInt | DataReceivedNotificationCancel() |
| IMPORT_C TInt | DataReceivedNotificationRequest(TUint, TUint) |
| IMPORT_C TInt | DataSentNotificationCancel() |
| IMPORT_C TInt | DataSentNotificationRequest(TUint, TUint) |
| IMPORT_C TInt | DataTransferred(TUint &, TUint &) |
| IMPORT_C TInt | DataTransferredCancel() |
| IMPORT_C void | DeRegisterClient(MConnDataTransferNotify &) |
| IMPORT_C void | RegisterClientL(MConnDataTransferNotify &) |
| Protected Member Functions | |
|---|---|
| CConnDataTransfer() | |
| pure virtual TInt | DoDataReceivedNotificationCancel() |
| pure virtual TInt | DoDataReceivedNotificationRequest(TUint, TUint) |
| pure virtual TInt | DoDataSentNotificationCancel() |
| pure virtual TInt | DoDataSentNotificationRequest(TUint, TUint) |
| pure virtual TInt | DoDataTransferred(TUint &, TUint &) |
| pure virtual TInt | DoDataTransferredCancel() |
Base class that any sub-connection client wishing to get sub-connection related data statitics must implement Since 9.1
| IMPORT_C TInt | DataReceivedNotificationCancel | ( | ) |
Remove the additional notification that this request would have generated
Returns: KErrNone, or one of the system-wide error codes
| IMPORT_C TInt | DataReceivedNotificationRequest | ( | TUint | aRequestedGranularity, |
| TUint | aRequestedNotificationVolume | |||
| ) | ||||
Receive a request for a notification after a given volume of data has been received on the sub-connection
| Parameter | Description |
|---|---|
| aRequestedGranularity | The amount of data to be received after which the notification will occur (but see notes); this is relative to the current volume of data received |
| aRequestedNotificationVolume | The absolute amount of data that should be received before we send a notification; only used if aRequestedGranularity is zero |
Returns: KErrNone, or one of the system-wide error codes
| IMPORT_C TInt | DataSentNotificationCancel | ( | ) |
Remove the additional notification that this request would have generated
Returns: KErrNone, or one of the system-wide error codes
| IMPORT_C TInt | DataSentNotificationRequest | ( | TUint | aRequestedGranularity, |
| TUint | aRequestedNotificationVolume | |||
| ) | ||||
Receive a request for a notification after a given volume of data has been sent on the sub-connection
| Parameter | Description |
|---|---|
| aRequestedGranularity | The amount of data to be sent after which the notification will occur (but see notes); this is relative to the current volume of data sent |
| aRequestedNotificationVolume | The absolute amount of data that should be sent before we send a notification; only used if aRequestedGranularity is zero |
Returns: KErrNone, or one of the system-wide error codes
Calculate out how much data has been sent and received on the sub-connection
| Parameter | Description |
|---|---|
| aUplinkVolume | On return, contains the amount of data sent on this subconnection |
| aDownlinkVolume | On return, contains the amount of data received on this subconnection |
Returns: KErrNone if successful, otherwise one of the system-wide error codes
| IMPORT_C TInt | DataTransferredCancel | ( | ) |
Cancel a request for data transfer information
Returns: ETrue to indicate that the operation is completed here
| IMPORT_C void | DeRegisterClient | ( | MConnDataTransferNotify & | aClient | ) |
De-register a client
| Parameter | Description |
|---|---|
| aClient | Reference to the MConnDataTransferNotify derived class as the client |
| TInt | DoDataReceivedNotificationCancel | ( | ) | [protected, pure virtual] |
Override this to remove the additional notification that this request would have generated
Returns: KErrNone, or one of the system-wide error codes
| TInt | DoDataReceivedNotificationRequest | ( | TUint | aRequestedGranularity, |
| TUint | aRequestedNotificationVolume | |||
| ) | [protected, pure virtual] | |||
Override this to receive a request for a notification after a given volume of data has been received on the sub-connection
| Parameter | Description |
|---|---|
| aRequestedGranularity | The amount of data to be received after which the notification will occur (but see notes); this is relative to the current volume of data received |
| aRequestedNotificationVolume | The absolute amount of data that should be received before we send a notification; only used if aRequestedGranularity is zero |
Returns: KErrNone, or one of the system-wide error codes
| TInt | DoDataSentNotificationCancel | ( | ) | [protected, pure virtual] |
Override this to remove the additional notification that this request would have generated
Returns: KErrNone, or one of the system-wide error codes
| TInt | DoDataSentNotificationRequest | ( | TUint | aRequestedGranularity, |
| TUint | aRequestedNotificationVolume | |||
| ) | [protected, pure virtual] | |||
Override this to receive a request for a notification after a given volume of data has been sent on the sub-connection
| Parameter | Description |
|---|---|
| aRequestedGranularity | The amount of data to be sent after which the notification will occur (but see notes); this is relative to the current volume of data sent |
| aRequestedNotificationVolume | The absolute amount of data that should be sent before we send a notification; only used if aRequestedGranularity is zero |
Returns: KErrNone, or one of the system-wide error codes
Override this to register for data transfer notification on the sub-connection
| Parameter | Description |
|---|---|
| aUplinkVolume | On return, contains the amount of data sent on this subconnection |
| aDownlinkVolume | On return, contains the amount of data received on this subconnection |
Returns: KErrNone if successful, otherwise one of the system-wide error codes
| TInt | DoDataTransferredCancel | ( | ) | [protected, pure virtual] |
Override this to cancel a request for data transfer information
Returns: ETrue to indicate that the operation is completed here
| IMPORT_C void | RegisterClientL | ( | MConnDataTransferNotify & | aClient | ) |
Register a client
| Parameter | Description |
|---|---|
| aClient | Reference to the MConnDataTransferNotify derived class as the client |