diff options
Diffstat (limited to 'src/JobQueue.hpp')
-rw-r--r-- | src/JobQueue.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/JobQueue.hpp b/src/JobQueue.hpp index 519903d..ddf2f33 100644 --- a/src/JobQueue.hpp +++ b/src/JobQueue.hpp @@ -39,6 +39,13 @@ struct JobArgs std::string password; }; +struct JobReport : public wxClientData +{ + JobReport(double jTime) + : jobTime(jTime) {} + double jobTime; +}; + struct Job { enum JobEvents @@ -76,6 +83,7 @@ public: Job Pop(); /* report back to parent */ void Report(const Job::JobEvents& cmd, const wxString& sArg = wxEmptyString, int iArg = 0); + void ReportDone(const JobReport& jobReport, const wxString& sArg = wxEmptyString, int iArg = 0); size_t Stacksize() { wxMutexLocker lock(m_MutexQueue); |