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
JobStatus
The JobStatus enum lists the possible states of a job.
Definition:
JobStatus.h:22
JobStatus::Completed
@ Completed
the job was successfully completed
JobStatus::Canceled
@ Canceled
the job was stopped by the user
JobStatus::Running
@ Running
the job is busy calculating
JobStatus::Failed
@ Failed
the job aborted because it hit an error
JobStatus::Idle
@ Idle
the job has not been started yet
JobStatus::Fitting
@ Fitting
the job is busy fitting
jobStatusToString
QString jobStatusToString(JobStatus status)
get a string representation of the status
Definition:
JobStatus.cpp:32
jobStatusFromString
JobStatus jobStatusFromString(const QString &name)
get status value for given string representation
Definition:
JobStatus.cpp:39
GUI::RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:20
GUI
Support
Data
JobStatus.h
Generated by
1.9.1