TSmilTime Class Reference

class TSmilTime

Time class. Special time values INDEFINITE, UNRESOLVED and UNKNOWN are also possible. Includes basic math operators.

Constructor & Destructor Documentation

TSmilTime()

IMPORT_C TSmilTime ( )

C++ default constructor.

TSmilTime(TInt)

IMPORT_C TSmilTime ( TInt aValue )

C++ constructor with initialisation.

Parameters

TInt aValue

TSmilTime(const TDesC &)

IMPORT_C TSmilTime ( const TDesC & aValue )

Parameters

const TDesC & aValue

Member Functions Documentation

FromMicroSeconds(TTimeIntervalMicroSeconds)

IMPORT_C TSmilTime FromMicroSeconds ( TTimeIntervalMicroSeconds aMicro ) [static]

Creates time value from a microsecond value

Parameters

TTimeIntervalMicroSeconds aMicro

FromMicroSeconds(TInt)

IMPORT_C TSmilTime FromMicroSeconds ( TInt aMicro ) [static]

Creates time value from an integer value

Parameters

TInt aMicro

IsFinite()

TBool IsFinite ( ) const [inline]

IsIndefinite()

TBool IsIndefinite ( ) const [inline]

IsMedia()

TBool IsMedia ( ) const [inline]

IsUnresolved()

TBool IsUnresolved ( ) const [inline]

IsUnspecified()

TBool IsUnspecified ( ) const [inline]

ToLocal(CSmilObject *, TSmilTime)

IMPORT_C TSmilTime ToLocal ( CSmilObject * aObject,
TSmilTime aTime
) [static]

Converts from global to local time

Parameters

CSmilObject * aObject
TSmilTime aTime

ToMicroSeconds()

IMPORT_C TTimeIntervalMicroSeconds ToMicroSeconds ( ) const

Converts (finite) time value to microseconds

Value()

TInt Value ( ) const [inline]

operator!=(const TSmilTime &)

IMPORT_C TBool operator!= ( const TSmilTime & aTime ) const

Comparison operator (indef!=unres)

Parameters

const TSmilTime & aTime

operator*(const TSmilTime &)

IMPORT_C TSmilTime operator* ( const TSmilTime & aA ) const

Multiply operator (indef*def=indef, unres*def=unres)

Parameters

const TSmilTime & aA

operator*(const TReal32)

IMPORT_C TSmilTime operator* ( const TReal32 aValue ) const

Multiply operator (indef*def=indef, unres*def=unres)

Parameters

const TReal32 aValue

operator+(const TSmilTime &)

IMPORT_C TSmilTime operator+ ( const TSmilTime & aA ) const

Sum operator (indef+def=indef, unres+def=unres)

Parameters

const TSmilTime & aA

operator++(TInt)

IMPORT_C const TSmilTime & operator++ ( TInt )

Increment operator (indef++ == indef)

Parameters

TInt

operator-(const TSmilTime &)

IMPORT_C TSmilTime operator- ( const TSmilTime & aA ) const

Substract operator (indef-def=indef, unres-def=unres, def-indef=indef,...)

Parameters

const TSmilTime & aA

operator<(const TSmilTime &)

IMPORT_C TBool operator< ( const TSmilTime & aA ) const

Comparison operator (def<indef<unres)

Parameters

const TSmilTime & aA

operator<=(const TSmilTime &)

IMPORT_C TBool operator<= ( const TSmilTime & aTime ) const

Comparison operator

Parameters

const TSmilTime & aTime

operator=(const TInt)

IMPORT_C TSmilTime & operator= ( const TInt aValue )

Assignment operator

Parameters

const TInt aValue

operator=(const TSmilTime &)

IMPORT_C TSmilTime & operator= ( const TSmilTime & aTime )

Assignment operator

Parameters

const TSmilTime & aTime

operator==(const TSmilTime &)

IMPORT_C TBool operator== ( const TSmilTime & aTime ) const

Comparison operator (indef!=unres)

Parameters

const TSmilTime & aTime

operator>(const TSmilTime &)

IMPORT_C TBool operator> ( const TSmilTime & aA ) const

Comparison operator (unres>indef>def)

Parameters

const TSmilTime & aA

operator>=(const TSmilTime &)

IMPORT_C TBool operator>= ( const TSmilTime & aTime ) const

Comparison operator

Parameters

const TSmilTime & aTime

Member Enumerations Documentation

Enum anonymous

Enumerators

KUnspecified = KMaxTInt
KUnresolved = KMaxTInt
KIndefinite = KMaxTInt - 1
KMedia = KMaxTInt - 2

Member Data Documentation

TInt iValue

TInt iValue [private]

From ?base_class ?member_description.