BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
JobStatus.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Support/Data/JobStatus.h
6 //! @brief Defines enum JobStatus
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_SUPPORT_DATA_JOBSTATUS_H
16 #define BORNAGAIN_GUI_SUPPORT_DATA_JOBSTATUS_H
17 
18 #include <QString>
19 
20 //! The JobStatus enum lists the possible states of a job
21 
22 enum class JobStatus {
23  Idle, //!< the job has not been started yet
24  Running, //!< the job is busy calculating
25  Fitting, //!< the job is busy fitting
26  Completed, //!< the job was successfully completed
27  Canceled, //!< the job was stopped by the user
28  Failed //!< the job aborted because it hit an error
29 };
30 
31 //! get a string representation of the status
32 QString jobStatusToString(JobStatus status);
33 
34 //! get status value for given string representation
35 JobStatus jobStatusFromString(const QString& name);
36 
37 #endif // BORNAGAIN_GUI_SUPPORT_DATA_JOBSTATUS_H
JobStatus
The JobStatus enum lists the possible states of a job.
Definition: JobStatus.h:22
@ Completed
the job was successfully completed
@ Canceled
the job was stopped by the user
@ Running
the job is busy calculating
@ Failed
the job aborted because it hit an error
@ Idle
the job has not been started yet
@ Fitting
the job is busy fitting
QString jobStatusToString(JobStatus status)
get a string representation of the status
Definition: JobStatus.cpp:32
JobStatus jobStatusFromString(const QString &name)
get status value for given string representation
Definition: JobStatus.cpp:39
QString const & name(EShape k)
Definition: particles.cpp:20