MAutoPauseResumeSupport Class Reference

class MAutoPauseResumeSupport

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

Member Functions Documentation

CancelRegisterAsClient(TUid)

TInt CancelRegisterAsClient ( TUid aEventType ) [pure virtual]

Cancels the registered notification event.

Parameters

TUid aEventType The event to notify the client.

GetResourceNotificationData(TUid, TDes8 &)

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

Gets the notification data for the event.

Parameters

TUid aEventType The event which the client is notified of.
TDes8 & aNotificationData The 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 ( TUid aEventType,
const TDesC8 & aNotificationRegistrationData =  KNullDesC8
) [pure virtual]

Registers the event for notification when resource is avaliable.

Parameters

TUid aEventType The 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.