Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
CProgress

Public Member Functions

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

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