Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryJobStatus.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "berryJobStatus.h"
14 #include "internal/berryJobManager.h"
15 #include <org_blueberry_core_jobs_Export.h>
16 
17 namespace berry
18 {
19 
20 JobStatus::JobStatus(const Severity& severity, Job::Pointer sptr_job,
21  const QString& message, const Status::SourceLocation& sl)
22  : Status(severity, JobManager::PI_JOBS(), 1, message, sl)
23  , m_myJob(sptr_job)
24 {
25 }
26 
27 Job::Pointer JobStatus::GetJob()
28 {
29  return m_myJob;
30 }
31 
32 }
33 
Job::Pointer GetJob() override
JobStatus(const Severity &severity, Job::Pointer sptr_job, const QString &message, const Status::SourceLocation &sl)