TSmilTime Class Reference

class TSmilTime

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

Public Member Functions
TSmilTime()
TSmilTime(TInt)
TSmilTime(const TDesC &)
IMPORT_C TSmilTimeFromMicroSeconds(TTimeIntervalMicroSeconds)
IMPORT_C TSmilTimeFromMicroSeconds(TInt)
TBool IsFinite()
TBool IsIndefinite()
TBool IsMedia()
TBool IsUnresolved()
TBool IsUnspecified()
IMPORT_C TSmilTimeToLocal(CSmilObject *, TSmilTime)
IMPORT_C TTimeIntervalMicroSecondsToMicroSeconds()
TInt Value()
IMPORT_C TBooloperator!=(const TSmilTime &)
IMPORT_C TSmilTimeoperator*(const TSmilTime &)
IMPORT_C TSmilTimeoperator*(const TReal32)
IMPORT_C TSmilTimeoperator+(const TSmilTime &)
IMPORT_C const TSmilTime &operator++(TInt)
IMPORT_C TSmilTimeoperator-(const TSmilTime &)
IMPORT_C TBooloperator<(const TSmilTime &)
IMPORT_C TBooloperator<=(const TSmilTime &)
IMPORT_C TSmilTime &operator=(const TInt)
IMPORT_C TSmilTime &operator=(const TSmilTime &)
IMPORT_C TBooloperator==(const TSmilTime &)
IMPORT_C TBooloperator>(const TSmilTime &)
IMPORT_C TBooloperator>=(const TSmilTime &)
Public Member Enumerations
enumanonymous { KUnspecified = KMaxTInt, KUnresolved = KMaxTInt, KIndefinite = KMaxTInt - 1, KMedia = KMaxTInt - 2 }
Private Attributes
TInt iValue

Constructor & Destructor Documentation

TSmilTime()

IMPORT_CTSmilTime()

C++ default constructor.

TSmilTime(TInt)

IMPORT_CTSmilTime(TIntaValue)

C++ constructor with initialisation.

Parameters

TInt aValue

TSmilTime(const TDesC &)

IMPORT_CTSmilTime(const TDesC &aValue)

Parameters

const TDesC & aValue

Member Functions Documentation

FromMicroSeconds(TTimeIntervalMicroSeconds)

IMPORT_C TSmilTimeFromMicroSeconds(TTimeIntervalMicroSecondsaMicro)[static]

Creates time value from a microsecond value

Parameters

TTimeIntervalMicroSeconds aMicro

FromMicroSeconds(TInt)

IMPORT_C TSmilTimeFromMicroSeconds(TIntaMicro)[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 TSmilTimeToLocal(CSmilObject *aObject,
TSmilTimeaTime
)[static]

Converts from global to local time

Parameters

CSmilObject * aObject
TSmilTime aTime

ToMicroSeconds()

IMPORT_C TTimeIntervalMicroSecondsToMicroSeconds()const

Converts (finite) time value to microseconds

Value()

TInt Value()const [inline]

operator!=(const TSmilTime &)

IMPORT_C TBooloperator!=(const TSmilTime &aTime)const

Comparison operator (indef!=unres)

Parameters

const TSmilTime & aTime

operator*(const TSmilTime &)

IMPORT_C TSmilTimeoperator*(const TSmilTime &aA)const

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

Parameters

const TSmilTime & aA

operator*(const TReal32)

IMPORT_C TSmilTimeoperator*(const TReal32aValue)const

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

Parameters

const TReal32 aValue

operator+(const TSmilTime &)

IMPORT_C TSmilTimeoperator+(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 TSmilTimeoperator-(const TSmilTime &aA)const

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

Parameters

const TSmilTime & aA

operator<(const TSmilTime &)

IMPORT_C TBooloperator<(const TSmilTime &aA)const

Comparison operator (def<indef<unres)

Parameters

const TSmilTime & aA

operator<=(const TSmilTime &)

IMPORT_C TBooloperator<=(const TSmilTime &aTime)const

Comparison operator

Parameters

const TSmilTime & aTime

operator=(const TInt)

IMPORT_C TSmilTime &operator=(const TIntaValue)

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 TBooloperator==(const TSmilTime &aTime)const

Comparison operator (indef!=unres)

Parameters

const TSmilTime & aTime

operator>(const TSmilTime &)

IMPORT_C TBooloperator>(const TSmilTime &aA)const

Comparison operator (unres>indef>def)

Parameters

const TSmilTime & aA

operator>=(const TSmilTime &)

IMPORT_C TBooloperator>=(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.