| 
    foobar2000 SDK
    2015-08-03
    
   | 
 
#include <threaded_process.h>
Public Types | |
| enum | { progress_min = 0, progress_max = 5000 } | 
Public Member Functions | |
| virtual void | force_update ()=0 | 
| virtual bool | is_paused ()=0 | 
| void | poll_pause () | 
| virtual bool | process_pause ()=0 | 
| virtual void | set_item (const char *p_item, t_size p_item_len=~0)=0 | 
| virtual void | set_item_path (const char *p_item, t_size p_item_len=~0)=0 | 
| virtual void | set_progress (t_size p_state)=0 | 
| void | set_progress (t_size p_state, t_size p_max) | 
| void | set_progress_float (double p_state) | 
| virtual void | set_progress_secondary (t_size p_state)=0 | 
| void | set_progress_secondary (t_size p_state, t_size p_max) | 
| void | set_progress_secondary_float (double p_state) | 
| virtual void | set_title (const char *p_title, t_size p_title_len=~0)=0 | 
Protected Member Functions | |
| threaded_process_status () | |
| ~threaded_process_status () | |
Callback class passed to your threaded_process client code; allows you to give various visual feedback to the user.
Definition at line 2 of file threaded_process.h.
| anonymous enum | 
      
  | 
  inlineprotected | 
Definition at line 37 of file threaded_process.h.
      
  | 
  inlineprotected | 
Definition at line 38 of file threaded_process.h.
      
  | 
  pure virtual | 
Should not be used.
      
  | 
  pure virtual | 
Returns whether the process is paused.
      
  | 
  inline | 
Automatically sleeps if the process is paused.
Definition at line 26 of file threaded_process.h.
      
  | 
  pure virtual | 
Checks if process is paused and sleeps if needed; returns false when process should be aborted, true on success. 
You should use poll_pause() instead of calling this directly. 
      
  | 
  pure virtual | 
Sets the currently progressed item label. When working with files, you should use set_file_path() instead.
      
  | 
  pure virtual | 
Sets the currently progressed item label; treats the label as a file path.
      
  | 
  pure virtual | 
Sets the primary progress bar state; scale from progress_min to progress_max.
Helper; sets primary progress with a custom scale.
Definition at line 3 of file threaded_process.cpp.
| void threaded_process_status::set_progress_float | ( | double | p_state | ) | 
Helper; sets primary progress with a float 0..1 scale.
Definition at line 13 of file threaded_process.cpp.
      
  | 
  pure virtual | 
Sets the secondary progress bar state; scale from progress_min to progress_max.
Helper; sets secondary progress with a custom scale.
Definition at line 8 of file threaded_process.cpp.
| void threaded_process_status::set_progress_secondary_float | ( | double | p_state | ) | 
Helper; sets secondary progress with a float 0..1 scale.
Definition at line 20 of file threaded_process.cpp.
      
  | 
  pure virtual | 
Sets the title of the dialog. You normally don't need this function unless you want to override the title you set when initializing the threaded_process.
 1.8.11