MAutoPauseResumeSupport Class Reference

class MAutoPauseResumeSupport

Custom Interface providing support for AutoPauseResume Register, Cancel, GetResourceNotificationData and WillResumePlay.

Member Functions Documentation

CancelRegisterAsClient(TUid)

TInt CancelRegisterAsClient(TUidaEventType)[pure virtual]

Cancels the registered notification event.

Parameters

TUid aEventTypeThe event to notify the client.

GetResourceNotificationData(TUid, TDes8 &)

TInt GetResourceNotificationData(TUidaEventType,
TDes8 &aNotificationData
)[pure virtual]

Gets the notification data for the event.

Parameters

TUid aEventTypeThe event which the client is notified of.
TDes8 & aNotificationDataThe notification data for the client to resume playing. The actual data depends on the event type. Note that for the event type 'KMMFEventCategoryAudioResourceAvailable' the package buffer returned is TMMFTimeIntervalMicroSecondsPckg, but the contents should be converted to an integer and interpreted as the data returned is samples played, but not as a microsecond value.

RegisterAsClient(TUid, const TDesC8 &)

TInt RegisterAsClient(TUidaEventType,
const TDesC8 &aNotificationRegistrationData =  KNullDesC8
)[pure virtual]

Registers the event for notification when resource is avaliable.

Parameters

TUid aEventTypeThe event which the client is notified of.
const TDesC8 & aNotificationRegistrationData =  KNullDesC8 Notification registration specific data, which has been reserved for future use.

WillResumePlay()

TInt WillResumePlay()[pure virtual]

Waits for the client to resume the play even after the default timer expires.