37 std::function<
int(
JOB* job )> aHandler,
38 std::function<
bool(
JOB* aJob, wxWindow* aParent )> aConfigHandler )
81 wxCHECK( aReporter !=
nullptr, );
88 wxCHECK( aReporter !=
nullptr, );
void SetReporter(REPORTER *aReporter)
void Register(const std::string &aJobTypeName, std::function< int(JOB *job)> aHandler, std::function< bool(JOB *job, wxWindow *aParent)> aConfigHandler)
JOB_DISPATCHER(KIWAY *aKiway)
int RunJob(JOB *aJob, REPORTER *aReporter)
bool HandleJobConfig(JOB *aJob, wxWindow *aParent)
PROGRESS_REPORTER * m_progressReporter
std::map< std::string, std::function< bool(JOB *job, wxWindow *aParent)> > m_jobConfigHandlers
std::map< std::string, std::function< int(JOB *job)> > m_jobHandlers
void SetProgressReporter(PROGRESS_REPORTER *aReporter)
An simple container class that lets us dispatch output jobs to kifaces.
const std::string & GetType() const
void ClearExistingOutputs()
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
static REPORTER & GetInstance()
A progress reporter interface for use in multi-threaded environments.
A pure virtual class used to derive REPORTER objects from.
static const int ERR_UNKNOWN