Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryJobStatus.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "berryJobStatus.h"
18 #include "internal/berryJobManager.h"
19 #include <org_blueberry_core_jobs_Export.h>
20 
21 namespace berry
22 {
23 
24 JobStatus::JobStatus(const Severity& severity, Job::Pointer sptr_job,
25  const QString& message, const Status::SourceLocation& sl)
26  : Status(severity, JobManager::PI_JOBS(), 1, message, sl)
27  , m_myJob(sptr_job)
28 {
29 }
30 
32 {
33  return m_myJob;
34 }
35 
36 }
37 
itk::SmartPointer< Self > Pointer
Job::Pointer GetJob() override
JobStatus(const Severity &severity, Job::Pointer sptr_job, const QString &message, const Status::SourceLocation &sl)