Class:  kodi::gui::dialogs::CProgress 
  Progress dialog shown in center
 The with 
#include <kodi/gui/dialogs/Progress.h> given class are basically used to create Kodi's progress dialog with named text fields.  
More...
 
Class:  kodi::gui::dialogs::CProgress 
  Progress dialog shown in center
 The with 
#include <kodi/gui/dialogs/Progress.h> given class are basically used to create Kodi's progress dialog with named text fields. 
Example: 
 
for (unsigned int i = 0; i < 100; i += 10)
{
}
delete progress;
Definition kodi-dev-kit/include/kodi/gui/dialogs/Progress.h:53
 
void ShowProgressBar(bool onOff)
To show or hide progress bar dialog.
Definition kodi-dev-kit/include/kodi/gui/dialogs/Progress.h:186
 
void SetHeading(const std::string &heading)
Set the heading title of dialog.
Definition kodi-dev-kit/include/kodi/gui/dialogs/Progress.h:101
 
void SetLine(unsigned int iLine, const std::string &line)
To set the line text field on dialog from 0 - 2.
Definition kodi-dev-kit/include/kodi/gui/dialogs/Progress.h:116
 
void SetPercentage(int percentage)
Get the current progress position as percent.
Definition kodi-dev-kit/include/kodi/gui/dialogs/Progress.h:158
 
void SetCanCancel(bool canCancel)
To enable and show cancel button on dialog.
Definition kodi-dev-kit/include/kodi/gui/dialogs/Progress.h:130
 
void Open()
To open the dialog.
Definition kodi-dev-kit/include/kodi/gui/dialogs/Progress.h:87
 
sleep(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
 
  
◆ Abort()
  
  
      
        
          | bool kodi::gui::dialogs::CProgress::Abort  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
To check progress was canceled on work. 
- Returns
 - True if aborted 
 
 
 
◆ CProgress()
  
  
      
        
          | kodi::gui::dialogs::CProgress::CProgress  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ GetPercentage()
  
  
      
        
          | int kodi::gui::dialogs::CProgress::GetPercentage  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
To set the current progress position as percent. 
- Returns
 - Current Position used from 0 to 100 
 
 
 
◆ IsCanceled()
  
  
      
        
          | bool kodi::gui::dialogs::CProgress::IsCanceled  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
To check dialog for clicked cancel button. 
- Returns
 - True if canceled 
 
 
 
◆ Open()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::Open  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ SetCanCancel()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::SetCanCancel  | 
          ( | 
          bool |           canCancel | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
To enable and show cancel button on dialog. 
- Parameters
 - 
  
    | [in] | canCancel | if true becomes it shown  | 
  
   
 
 
◆ SetHeading()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::SetHeading  | 
          ( | 
          const std::string & |           heading | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set the heading title of dialog. 
- Parameters
 - 
  
    | [in] | heading | Title string to use  | 
  
   
 
 
◆ SetLine()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::SetLine  | 
          ( | 
          unsigned int |           iLine,  | 
         
        
           | 
           | 
          const std::string & |           line ) | 
         
       
   | 
  
inline   | 
  
 
To set the line text field on dialog from 0 - 2. 
- Parameters
 - 
  
    | [in] | iLine | Line number  | 
    | [in] | line | Text string  | 
  
   
 
 
◆ SetPercentage()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::SetPercentage  | 
          ( | 
          int |           percentage | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get the current progress position as percent. 
- Parameters
 - 
  
    | [in] | percentage | Position to use from 0 to 100  | 
  
   
 
 
◆ SetProgressAdvance()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::SetProgressAdvance  | 
          ( | 
          int |           steps = 1 | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
To increase progress bar by defined step size until reach of maximum position. 
- Parameters
 - 
  
    | [in] | steps | Step size to increase, default is 1  | 
  
   
 
 
◆ SetProgressMax()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::SetProgressMax  | 
          ( | 
          int |           max | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set the maximum position of progress, needed if SetProgressAdvance(...) is used. 
- Parameters
 - 
  
    | [in] | max | Biggest usable position to use  | 
  
   
 
 
◆ ShowProgressBar()
  
  
      
        
          | void kodi::gui::dialogs::CProgress::ShowProgressBar  | 
          ( | 
          bool |           onOff | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
To show or hide progress bar dialog. 
- Parameters
 - 
  
    | [in] | onOff | If true becomes it shown  | 
  
   
 
 
◆ ~CProgress()
  
  
      
        
          | kodi::gui::dialogs::CProgress::~CProgress  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   |