25 #ifndef JUCE_THREADWITHPROGRESSWINDOW_H_INCLUDED
26 #define JUCE_THREADWITHPROGRESSWINDOW_H_INCLUDED
105 bool hasCancelButton,
106 int timeOutMsWhenCancelling = 10000,
108 Component* componentToCentreAround =
nullptr);
114 #if JUCE_MODAL_LOOPS_PERMITTED
126 bool runThread (
int threadPriority = 5);
138 void launchThread (
int threadPriority = 5);
145 void setProgress (
double newProgress);
148 void setStatusMessage (
const String& newStatusMessage);
157 virtual void threadComplete (
bool userPressedCancel);
167 const int timeOutMsWhenCancelling;
168 bool wasCancelledByUser;
173 #endif // JUCE_THREADWITHPROGRESSWINDOW_H_INCLUDED
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_AlertWindow.h:42
virtual void timerCallback()=0
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_CriticalSection.h:47
Definition: juce_ThreadWithProgressWindow.h:81
Definition: juce_Component.h:33
AlertWindow * getAlertWindow() const noexcept
Definition: juce_ThreadWithProgressWindow.h:151
Definition: juce_Thread.h:47
Definition: juce_Timer.h:52