Kodi Development  20.0
for Binary and Script based Add-Ons
CProgress

Public Member Functions

bool Abort ()
 To check progress was canceled on work. More...
 
 CProgress ()
 Construct a new dialog. More...
 
int GetPercentage () const
 To set the current progress position as percent. More...
 
bool IsCanceled () const
 To check dialog for clicked cancel button. More...
 
void Open ()
 To open the dialog. More...
 
void SetCanCancel (bool canCancel)
 To enable and show cancel button on dialog. More...
 
void SetHeading (const std::string &heading)
 Set the heading title of dialog. More...
 
void SetLine (unsigned int iLine, const std::string &line)
 To set the line text field on dialog from 0 - 2. More...
 
void SetPercentage (int percentage)
 Get the current progress position as percent. More...
 
void SetProgressAdvance (int steps=1)
 To increase progress bar by defined step size until reach of maximum position. More...
 
void SetProgressMax (int max)
 Set the maximum position of progress, needed if SetProgressAdvance(...) is used. More...
 
void ShowProgressBar (bool onOff)
 To show or hide progress bar dialog. More...
 
 ~CProgress ()
 Destructor. More...
 

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