StreamTime Class Reference

Variable for VLC stream time. More...

Inheritance diagram for StreamTime:

Inheritance graph
[legend]
Collaboration diagram for StreamTime:

Collaboration graph
[legend]

Public Member Functions

 StreamTime (intf_thread_t *pIntf)
virtual ~StreamTime ()
virtual void set (float percentage, bool updateVLC)
virtual void set (float percentage)
 Set the internal value.
virtual string getAsStringPercent () const
 Return a string containing a value from 0 to 100.
virtual string getAsStringCurrTime (bool bShortFormat=false) const
 Return the current time formatted as a time display (h:mm:ss).
virtual string getAsStringTimeLeft (bool bShortFormat=false) const
 Return the time left formatted as a time display (h:mm:ss).
virtual string getAsStringDuration (bool bShortFormat=false) const
 Return the duration formatted as a time display (h:mm:ss).

Detailed Description

Variable for VLC stream time.

Constructor & Destructor Documentation

StreamTime::StreamTime ( intf_thread_t pIntf  )  [inline]

virtual StreamTime::~StreamTime (  )  [inline, virtual]


Member Function Documentation

void StreamTime::set ( float  percentage,
bool  updateVLC 
) [virtual]

virtual void StreamTime::set ( float  percentage  )  [inline, virtual]

Set the internal value.

Reimplemented from VarPercent.

string StreamTime::getAsStringPercent (  )  const [virtual]

Return a string containing a value from 0 to 100.

References gen_builder::str, and value.

string StreamTime::getAsStringCurrTime ( bool  bShortFormat = false  )  const [virtual]

Return the current time formatted as a time display (h:mm:ss).

References SkinObject::getIntf(), p_sys, and var_GetTime.

Referenced by VarText::get().

string StreamTime::getAsStringTimeLeft ( bool  bShortFormat = false  )  const [virtual]

Return the time left formatted as a time display (h:mm:ss).

References SkinObject::getIntf(), p_sys, and var_GetTime.

Referenced by VarText::get().

string StreamTime::getAsStringDuration ( bool  bShortFormat = false  )  const [virtual]

Return the duration formatted as a time display (h:mm:ss).

References SkinObject::getIntf(), p_sys, and var_GetTime.

Referenced by VarText::get().


The documentation for this class was generated from the following files:

Generated on Tue May 25 08:06:24 2010 for VLC by  doxygen 1.5.6