LMMS
Loading...
Searching...
No Matches
juce::DragAndDropHelpers::DragAndDropJob Struct Reference
Inheritance diagram for juce::DragAndDropHelpers::DragAndDropJob:
juce::ThreadPoolJob

Public Member Functions

 DragAndDropJob (FORMATETC f, STGMEDIUM m, DWORD d, std::function< void()> &&cb)
JobStatus runJob () override
Public Member Functions inherited from juce::ThreadPoolJob
 ThreadPoolJob (const String &name)
virtual ~ThreadPoolJob ()
String getJobName () const
void setJobName (const String &newName)
bool isRunning () const noexcept
bool shouldExit () const noexcept
void signalJobShouldExit ()
void addListener (Thread::Listener *)
void removeListener (Thread::Listener *)

Public Attributes

FORMATETC format
STGMEDIUM medium
DWORD whatToDo
std::function< void()> completionCallback

Additional Inherited Members

Public Types inherited from juce::ThreadPoolJob
enum  JobStatus { jobHasFinished = 0 , jobNeedsRunningAgain }
Static Public Member Functions inherited from juce::ThreadPoolJob
static ThreadPoolJobgetCurrentThreadPoolJob ()

Constructor & Destructor Documentation

◆ DragAndDropJob()

juce::DragAndDropHelpers::DragAndDropJob::DragAndDropJob ( FORMATETC f,
STGMEDIUM m,
DWORD d,
std::function< void()> && cb )
inline

Member Function Documentation

◆ runJob()

JobStatus juce::DragAndDropHelpers::DragAndDropJob::runJob ( )
inlineoverridevirtual

Performs the actual work that this job needs to do.

Your subclass must implement this method, in which is does its work.

If the code in this method takes a significant time to run, it must repeatedly check the shouldExit() method to see if something is trying to interrupt the job. If shouldExit() ever returns true, the runJob() method must return immediately.

If this method returns jobHasFinished, then the job will be removed from the pool immediately. If it returns jobNeedsRunningAgain, then the job will be left in the pool and will get a chance to run again as soon as a thread is free.

See also
shouldExit()

Implements juce::ThreadPoolJob.

Member Data Documentation

◆ completionCallback

std::function<void()> juce::DragAndDropHelpers::DragAndDropJob::completionCallback

◆ format

FORMATETC juce::DragAndDropHelpers::DragAndDropJob::format

◆ medium

STGMEDIUM juce::DragAndDropHelpers::DragAndDropJob::medium

◆ whatToDo

DWORD juce::DragAndDropHelpers::DragAndDropJob::whatToDo

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