CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Plugins
org.commontk.dah.host
ctkDicomAbstractHost.h
Go to the documentation of this file.
1
/*=============================================================================
2
3
Library: CTK
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics
7
8
Licensed under the Apache License, Version 2.0 (the "License");
9
you may not use this file except in compliance with the License.
10
You may obtain a copy of the License at
11
12
http://www.apache.org/licenses/LICENSE-2.0
13
14
Unless required by applicable law or agreed to in writing, software
15
distributed under the License is distributed on an "AS IS" BASIS,
16
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
See the License for the specific language governing permissions and
18
limitations under the License.
19
20
=============================================================================*/
21
22
#ifndef CTKDICOMABSTRACTHOST_H
23
#define CTKDICOMABSTRACTHOST_H
24
25
#include <
ctkDicomAbstractExchangeCache.h
>
26
#include <
ctkDicomHostInterface.h
>
27
#include <
ctkDicomAppInterface.h
>
28
#include <QScopedPointer>
29
30
#include <org_commontk_dah_host_Export.h>
31
32
class
ctkDicomAbstractHostPrivate;
33
class
ctkDicomObjectLocatorCache
;
34
35
#ifdef _MSC_VER
36
// disable inheritance by dominance warnings
37
#pragma warning( disable : 4250 )
38
#endif
39
49
class
org_commontk_dah_host_EXPORT
ctkDicomAbstractHost
:
public
ctkDicomAbstractExchangeCache
,
public
ctkDicomHostInterface
50
{
51
Q_OBJECT
52
Q_INTERFACES(
ctkDicomHostInterface
)
53
54
public
:
55
62
ctkDicomAbstractHost
(
int
hostPort = 0,
int
appPort = 0);
63
68
virtual
~
ctkDicomAbstractHost
();
69
75
int
getHostPort()
const
;
76
82
int
getAppPort()
const
;
83
94
virtual
void
notifyStateChanged
(
ctkDicomAppHosting::State
state);
95
102
ctkDicomAppHosting::State
getApplicationState()
const
;
103
109
ctkDicomAppInterface
* getDicomAppService()
const
;
110
111
ctkDicomExchangeInterface
*
getOtherSideExchangeService
()
const
;
112
113
Q_SIGNALS:
119
void
appReady();
120
125
void
releaseAvailableResources();
130
void
startProgress();
131
136
void
resumed();
137
142
void
completed();
143
148
void
suspended();
149
154
void
canceled();
155
160
void
exited();
161
168
void
stateChangedReceived(
ctkDicomAppHosting::State
state);
169
175
void
statusReceived(
const
ctkDicomAppHosting::Status
& status);
176
177
private
:
178
179
Q_DECLARE_PRIVATE(
ctkDicomAbstractHost
)
180
const
QScopedPointer<ctkDicomAbstractHostPrivate> d_ptr;
182
};
183
184
#endif // CTKDICOMABSTRACTHOST_H
ctkDicomHostInterface::notifyStateChanged
virtual void notifyStateChanged(ctkDicomAppHosting::State state)=0
ctkDicomExchangeInterface
Definition:
ctkDicomExchangeInterface.h:32
ctkDicomAbstractExchangeCache::getOtherSideExchangeService
virtual ctkDicomExchangeInterface * getOtherSideExchangeService() const =0
Gets the exchange service of the other side.
ctkDicomObjectLocatorCache
Definition:
ctkDicomObjectLocatorCache.h:37
ctkDicomAppHosting::State
State
Definition:
ctkDicomAppHostingTypes.h:45
ctkDicomAppInterface.h
ctkDicomAbstractExchangeCache
Provides a basic convenience methods for the data exchange.
Definition:
ctkDicomAbstractExchangeCache.h:38
ctkDicomAbstractHost
Provides a basic implementation for an application host.
Definition:
ctkDicomAbstractHost.h:49
ctkDicomAppHosting::Status
Definition:
ctkDicomAppHostingTypes.h:63
ctkDicomAppInterface
Definition:
ctkDicomAppInterface.h:29
ctkDicomAbstractExchangeCache.h
ctkDicomHostInterface
Definition:
ctkDicomHostInterface.h:28
ctkDicomHostInterface.h
Generated on Tue Jan 28 2020 00:00:00 for CTK by
1.8.17