Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <mmfstandardcustomcommands.h>
Link against: mmfstandardcustomcommands.lib

Class RMMFAudioRecordControllerCustomCommands

class RMMFAudioRecordControllerCustomCommands : public RMMFCustomCommandsBase;

Description

Client class to access functionality specific to an audio record controller.

The class uses the custom command function of the controller plugin, and removes the necessity for the client to formulate the custom commands.

Derivation

Members

Defined in RMMFAudioRecordControllerCustomCommands:

Inherited from RMMFCustomCommandsBase:


Construction and destruction


RMMFAudioRecordControllerCustomCommands(RMMFController &)

IMPORT_C RMMFAudioRecordControllerCustomCommands(RMMFController &aController);

Description

Constructor.

Parameters

RMMFController &aController

The client side controller object to be used by this custom command interface.

[Top]


Member functions


GetRecordTimeAvailable(TTimeIntervalMicroSeconds &)const

IMPORT_C TInt GetRecordTimeAvailable(TTimeIntervalMicroSeconds &aTime) const;

Description

Gets the (possibly estimated) record time left in the clip.

Parameters

TTimeIntervalMicroSeconds &aTime

The record time available, in microseconds.

Return value

TInt

One of the system-wide error codes.


SetMaxDuration(const TTimeIntervalMicroSeconds &)const

IMPORT_C TInt SetMaxDuration(const TTimeIntervalMicroSeconds &aMaxDuration) const;

Description

Sets the maximum duration of the recorded clip, in microseconds.

Parameters

const TTimeIntervalMicroSeconds &aMaxDuration

The maximum duration of the recorded clip, in microseconds.

Return value

TInt

One of the system-wide error codes.


SetMaxFileSize(TInt)const

IMPORT_C TInt SetMaxFileSize(TInt aMaxSize) const;

Description

Sets the maximum size of the recorded clip, in bytes.

Parameters

TInt aMaxSize

The maximum size of the recorded clip, in bytes.

Return value

TInt

One of the system-wide error codes.


Crop(TBool)

IMPORT_C TInt Crop(TBool aToEnd);

Description

Removes a portion from the clip, either from the current position to the beginning or the current position to the end.

Parameters

TBool aToEnd

A boolean indicating whether to crop to the end. Crops to the end if set to ETrue, to the beginning set to EFalse.

Return value

TInt

One of the system-wide error codes.


AddMetaDataEntryL(const CMMFMetaDataEntry &)

IMPORT_C void AddMetaDataEntryL(const CMMFMetaDataEntry &aNewEntry);

Description

Adds meta data to the clip.

Parameters

const CMMFMetaDataEntry &aNewEntry

The details of the new entry to be added.


RemoveMetaDataEntry(TInt)

IMPORT_C TInt RemoveMetaDataEntry(TInt aIndex);

Description

Removes a meta data entry from the clip.

Parameters

TInt aIndex

The ID of the meta data entry to delete.

Return value

TInt

One of the system-wide error codes.


ReplaceMetaDataEntryL(TInt,const CMMFMetaDataEntry &)

IMPORT_C void ReplaceMetaDataEntryL(TInt aIndex, const CMMFMetaDataEntry &aNewEntry);

Description

Replaces a meta data in the clip.

Parameters

TInt aIndex

The ID of the meta data entry to replace.

const CMMFMetaDataEntry &aNewEntry

The details of the new entry to be added.