MeVisLab Toolbox Reference
mlBackgroundTaskStatusInformation.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2009, MeVis Medical Solutions AG
4
**
5
** The user may use this file in accordance with the license agreement provided with
6
** the Software or, alternatively, in accordance with the terms contained in a
7
** written agreement between the user and MeVis Medical Solutions AG.
8
**
9
** For further information use the contact form at https://www.mevislab.de/contact
10
**
11
**************************************************************************************/
12
13
#ifndef ML_BACKGROUND_TASK_STATUS_INFORMATION_H
14
#define ML_BACKGROUND_TASK_STATUS_INFORMATION_H
15
16
// Local includes
17
#include "
MLBackgroundTasksSystem.h
"
18
#include "
mlBackgroundTask.h
"
19
20
ML_START_NAMESPACE
21
22
//-----------------------------------------------------------------------
25
class
MLBACKGROUNDTASKS_EXPORT
BackgroundTaskStatusInformation
26
{
27
public
:
28
BackgroundTaskStatusInformation
();
29
BackgroundTaskStatusInformation
(
BackgroundTask
* task);
30
31
std::string
statusString
()
const
{
return
_statusString
; }
32
float
progress
()
const
{
return
_progress
; }
33
BackgroundTask::Status
status
()
const
{
return
_status
; }
34
void
*
owner
()
const
{
return
_owner
; }
35
MLuint32
taskId
()
const
{
return
_taskId
; }
36
37
protected
:
38
friend
class
BackgroundTask
;
39
40
std::string
_statusString
;
41
float
_progress
;
42
BackgroundTask::Status
_status
;
43
void
*
_owner
;
44
MLuint32
_taskId
;
45
};
46
47
ML_END_NAMESPACE
48
49
#endif
50
51
MLBackgroundTasksSystem.h
MLBACKGROUNDTASKS_EXPORT
#define MLBACKGROUNDTASKS_EXPORT
Definition
MLBackgroundTasksSystem.h:19
ml::BackgroundTaskStatusInformation::_owner
void * _owner
Definition
mlBackgroundTaskStatusInformation.h:43
ml::BackgroundTaskStatusInformation::_progress
float _progress
Definition
mlBackgroundTaskStatusInformation.h:41
ml::BackgroundTaskStatusInformation::status
BackgroundTask::Status status() const
Definition
mlBackgroundTaskStatusInformation.h:33
ml::BackgroundTaskStatusInformation::_status
BackgroundTask::Status _status
Definition
mlBackgroundTaskStatusInformation.h:42
ml::BackgroundTaskStatusInformation::taskId
MLuint32 taskId() const
Definition
mlBackgroundTaskStatusInformation.h:35
ml::BackgroundTaskStatusInformation::statusString
std::string statusString() const
Definition
mlBackgroundTaskStatusInformation.h:31
ml::BackgroundTaskStatusInformation::owner
void * owner() const
Definition
mlBackgroundTaskStatusInformation.h:34
ml::BackgroundTaskStatusInformation::_statusString
std::string _statusString
Definition
mlBackgroundTaskStatusInformation.h:40
ml::BackgroundTaskStatusInformation::BackgroundTaskStatusInformation
BackgroundTaskStatusInformation(BackgroundTask *task)
ml::BackgroundTaskStatusInformation::_taskId
MLuint32 _taskId
Definition
mlBackgroundTaskStatusInformation.h:44
ml::BackgroundTaskStatusInformation::BackgroundTask
friend class BackgroundTask
Definition
mlBackgroundTaskStatusInformation.h:38
ml::BackgroundTaskStatusInformation::BackgroundTaskStatusInformation
BackgroundTaskStatusInformation()
ml::BackgroundTaskStatusInformation::progress
float progress() const
Definition
mlBackgroundTaskStatusInformation.h:32
ml::BackgroundTask::Status
Status
Defines current status of the task.
Definition
mlBackgroundTask.h:47
mlBackgroundTask.h
MLuint32
unsigned int MLuint32
Definition
mlTypeDefs.h:184
MeVis
Foundation
Sources
MLBackgroundTasks
mlBackgroundTaskStatusInformation.h
Generated by
1.15.0