CConnDataTransfer Class Reference

#include <comms-infras/ss_datatransfer.h>

class CConnDataTransfer : public CBase, public CBase

Inherits from

Detailed Description

Base class that any sub-connection client wishing to get sub-connection related data statitics must implement Since 9.1

Member Attribute Documentation

iClients

RPointerArray< MConnDataTransferNotify >iClients[protected]

Constructor & Destructor Documentation

CConnDataTransfer ( )

IMPORT_CCConnDataTransfer()[protected]

Constructor

Member Function Documentation

DataReceivedNotificationCancel ( )

IMPORT_C TIntDataReceivedNotificationCancel()

Remove the additional notification that this request would have generated

Return Value
KErrNone, or one of the system-wide error codes

DataReceivedNotificationRequest ( TUint, TUint )

IMPORT_C TIntDataReceivedNotificationRequest(TUintaRequestedGranularity,
TUintaRequestedNotificationVolume
)

Receive a request for a notification after a given volume of data has been received on the sub-connection

Parameters
aRequestedGranularityThe 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
aRequestedNotificationVolumeThe absolute amount of data that should be received before we send a notification; only used if aRequestedGranularity is zero
Return Value
KErrNone, or one of the system-wide error codes

DataSentNotificationCancel ( )

IMPORT_C TIntDataSentNotificationCancel()

Remove the additional notification that this request would have generated

Return Value
KErrNone, or one of the system-wide error codes

DataSentNotificationRequest ( TUint, TUint )

IMPORT_C TIntDataSentNotificationRequest(TUintaRequestedGranularity,
TUintaRequestedNotificationVolume
)

Receive a request for a notification after a given volume of data has been sent on the sub-connection

Parameters
aRequestedGranularityThe 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
aRequestedNotificationVolumeThe absolute amount of data that should be sent before we send a notification; only used if aRequestedGranularity is zero
Return Value
KErrNone, or one of the system-wide error codes

DataTransferred ( TUint &, TUint & )

IMPORT_C TIntDataTransferred(TUint &aUplinkVolume,
TUint &aDownlinkVolume
)

Calculate out how much data has been sent and received on the sub-connection

Parameters
aUplinkVolumeOn return, contains the amount of data sent on this subconnection
aDownlinkVolumeOn return, contains the amount of data received on this subconnection
Return Value
KErrNone if successful, otherwise one of the system-wide error codes

DataTransferredCancel ( )

IMPORT_C TIntDataTransferredCancel()

Cancel a request for data transfer information

Return Value
ETrue to indicate that the operation is completed here

DeRegisterClient ( MConnDataTransferNotify & )

IMPORT_C voidDeRegisterClient(MConnDataTransferNotify &aClient)

De-register a client

Parameters
aClientReference to the MConnDataTransferNotify derived class as the client

DoDataReceivedNotificationCancel ( )

TInt DoDataReceivedNotificationCancel()[protected, pure virtual]

Override this to remove the additional notification that this request would have generated

Return Value
KErrNone, or one of the system-wide error codes

DoDataReceivedNotificationRequest ( TUint, TUint )

TInt DoDataReceivedNotificationRequest(TUintaRequestedGranularity,
TUintaRequestedNotificationVolume
)[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

Parameters
aRequestedGranularityThe 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
aRequestedNotificationVolumeThe absolute amount of data that should be received before we send a notification; only used if aRequestedGranularity is zero
Return Value
KErrNone, or one of the system-wide error codes

DoDataSentNotificationCancel ( )

TInt DoDataSentNotificationCancel()[protected, pure virtual]

Override this to remove the additional notification that this request would have generated

Return Value
KErrNone, or one of the system-wide error codes

DoDataSentNotificationRequest ( TUint, TUint )

TInt DoDataSentNotificationRequest(TUintaRequestedGranularity,
TUintaRequestedNotificationVolume
)[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

Parameters
aRequestedGranularityThe 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
aRequestedNotificationVolumeThe absolute amount of data that should be sent before we send a notification; only used if aRequestedGranularity is zero
Return Value
KErrNone, or one of the system-wide error codes

DoDataTransferred ( TUint &, TUint & )

TInt DoDataTransferred(TUint &aUplinkVolume,
TUint &aDownlinkVolume
)[protected, pure virtual]

Override this to register for data transfer notification on the sub-connection

Parameters
aUplinkVolumeOn return, contains the amount of data sent on this subconnection
aDownlinkVolumeOn return, contains the amount of data received on this subconnection
Return Value
KErrNone if successful, otherwise one of the system-wide error codes

DoDataTransferredCancel ( )

TInt DoDataTransferredCancel()[protected, pure virtual]

Override this to cancel a request for data transfer information

Return Value
ETrue to indicate that the operation is completed here

RegisterClientL ( MConnDataTransferNotify & )

IMPORT_C voidRegisterClientL(MConnDataTransferNotify &aClient)

Register a client

Parameters
aClientReference to the MConnDataTransferNotify derived class as the client