#include <mmf/server/mmfdevsoundcustominterfacesupport.h>
class MAutoPauseResumeSupport |
Public Member Functions | |
---|---|
pure virtual TInt | CancelRegisterAsClient(TUid) |
pure virtual TInt | GetResourceNotificationData(TUid, TDes8 &) |
pure virtual TInt | RegisterAsClient(TUid, const TDesC8 &) |
pure virtual TInt | WillResumePlay() |
Custom Interface providing support for AutoPauseResume Register, Cancel, GetResourceNotificationData and WillResumePlay.
Cancels the registered notification event.
Parameter | Description |
---|---|
aEventType | The event to notify the client. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
Gets the notification data for the event.
Parameter | Description |
---|---|
aEventType | The event which the client is notified of. |
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. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
TInt | RegisterAsClient | ( | TUid | aEventType, |
const TDesC8 & | aNotificationRegistrationData = KNullDesC8 | |||
) | [pure virtual] |
Registers the event for notification when resource is avaliable.
Parameter | Description |
---|---|
aEventType | The event which the client is notified of. |
aNotificationRegistrationData | Notification registration specific data, which has been reserved for future use. |
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
TInt | WillResumePlay | ( | ) | [pure virtual] |
Waits for the client to resume the play even after the default timer expires.
Returns: An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.