Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: devvideobase.h
Link against: devvideo.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class CSystemClockSource

class CSystemClockSource : public CBase, public MMMFClockSource;

Description

The CSystemClockSource provides a basic clock source implementation based on the system clock. It will count microseconds since the object was created or Reset() was last called, and return that count from Time(). It does not implement any custom interfaces.

Derivation

Members

Defined in CSystemClockSource:
CustomInterface(), NewL(), Reset(), Reset(), Resume(), Suspend(), Time(), ~CSystemClockSource()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CSystemClockSource *NewL();

Description

Creates a new CSystemClockSource object.

Return value

CSystemClockSource *

"A new clock source object."

Leave codes

"This

method may leave with one of the system-wide error codes."


~CSystemClockSource()

IMPORT_C ~CSystemClockSource();

Description

Destructor.

[Top]


Member functions


Reset()

IMPORT_C void Reset();

Description

Resets the clock source to zero. Typically called by the DevVideo client at stream start.


Reset()

IMPORT_C void Reset(const TTimeIntervalMicroSeconds &aOffset);

Description

Resets the clock source to a user-defined offset. Typically called by the DevVideo client when seeking in a file.

Parameters

const TTimeIntervalMicroSeconds &aOffset

"The clock offset."


Suspend()

IMPORT_C void Suspend();

Description

Suspends the clock source. The clock time will not increment until the clock has been resumed. This method is used when pausing playback.


Resume()

IMPORT_C void Resume();

Description

Resumes the clock source after a Suspend() method call. This method is used when resuming playback.


CustomInterface()

virtual TAny *CustomInterface(TUid aInterface);

Description

No custom interfaces are implemented by this clock source, so this method will always return NULL.

Parameters

TUid aInterface

"The interface"

Return value

TAny *

"NULL"


Time()

virtual TTimeIntervalMicroSeconds Time();

Description

Retrieves the time that has elapsed since Reset() was last called, subtracting any time during which the clock was suspended.

Return value

TTimeIntervalMicroSeconds

"The number of microseconds that have elapsed in the stream."