MeVisLabToolboxReference
MeVis/Foundation/Sources/MLBackgroundTasks/mlBackgroundTaskStatusInformation.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00009 //----------------------------------------------------------------------------------
00010 
00011 
00012 #ifndef __mlBackgroundTaskStatusInformation_H
00013 #define __mlBackgroundTaskStatusInformation_H
00014 
00015 // Local includes
00016 #include "MLBackgroundTasksSystem.h"
00017 #include "mlBackgroundTask.h"
00018 
00019 ML_START_NAMESPACE
00020 
00021 //-----------------------------------------------------------------------
00024 class MLBACKGROUNDTASKS_EXPORT BackgroundTaskStatusInformation
00025 {
00026 public:
00027   BackgroundTaskStatusInformation();
00028   BackgroundTaskStatusInformation(BackgroundTask* task);
00029 
00030   std::string            statusString() const { return _statusString; }
00031   float                  progress() const { return _progress; }
00032   BackgroundTask::Status status() const { return _status; }
00033   void*                  owner() const { return _owner; }
00034   MLuint32               taskId() const { return _taskId; }
00035 
00036 protected:
00037   friend class BackgroundTask;
00038 
00039   std::string            _statusString;
00040   float                  _progress;
00041   BackgroundTask::Status _status;
00042   void*                  _owner;
00043   MLuint32               _taskId;
00044 };
00045 
00046 ML_END_NAMESPACE
00047 
00048 #endif
00049 
00050