Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <devvideobase.h>
Link against: devvideo.lib
This item is not part of the S60 5th Edition SDK

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 CSystemClockSource::Reset() was last called, and return that count from CSystemClockSource::Time(). It does not implement any custom interfaces.

Derivation

Members

Defined in CSystemClockSource:

Inherited from CBase:


Construction and destruction


NewL()

IMPORT_C static 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(const TTimeIntervalMicroSeconds &)

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 CSystemClockSource::Suspend() method call. This method is used when resuming playback.


CustomInterface(TUid)

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 CSystemClockSource::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."