CTK 0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Loading...
Searching...
No Matches
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
28#include <QScopedPointer>
29
30#include <org_commontk_dah_host_Export.h>
31
32class ctkDicomAbstractHostPrivate;
34
35#ifdef _MSC_VER
36// disable inheritance by dominance warnings
37#pragma warning( disable : 4250 )
38#endif
39
49class org_commontk_dah_host_EXPORT ctkDicomAbstractHost : public ctkDicomAbstractExchangeCache, public ctkDicomHostInterface
50{
51 Q_OBJECT
52 Q_INTERFACES(ctkDicomHostInterface)
53
54public:
55
62 ctkDicomAbstractHost(int hostPort = 0, int appPort = 0);
63
69
75 int getHostPort() const;
76
82 int getAppPort() const;
83
95
103
110
112
113Q_SIGNALS:
119 void appReady();
120
131
136 void resumed();
137
142 void completed();
143
148 void suspended();
149
154 void canceled();
155
160 void exited();
161
169
176
177private:
178
179 Q_DECLARE_PRIVATE(ctkDicomAbstractHost)
180 const QScopedPointer<ctkDicomAbstractHostPrivate> d_ptr;
182};
183
184#endif // CTKDICOMABSTRACTHOST_H
Provides a basic convenience methods for the data exchange.
Provides a basic implementation for an application host.
void resumed()
Emitted when the ctkDicomAppHosting::INPROGRESS state notification has been received,...
virtual void notifyStateChanged(ctkDicomAppHosting::State state)
Handles transitions form one state to the other. When a new state notification arrives from the hoste...
void startProgress()
Emitted when the ctkDicomAppHosting::INPROGRESS state notification has been received,...
ctkDicomExchangeInterface * getOtherSideExchangeService() const
Gets the exchange service of the other side.
void exited()
Emitted when the ctkDicomAppHosting::EXIT state notification has been received.
void releaseAvailableResources()
Emitted when the ctkDicomAppHosting::IDLE state notification has been received, and the previous stat...
ctkDicomAppInterface * getDicomAppService() const
Gets the application service in order to call methods on the hosted app.
void stateChangedReceived(ctkDicomAppHosting::State state)
Emitted after any new state has been received. The event is sent after all the others have been sent ...
void statusReceived(const ctkDicomAppHosting::Status &status)
void canceled()
Emitted when the ctkDicomAppHosting::CANCELED state notification has been received.
int getAppPort() const
Gets the hosted application port.
void completed()
Emitted when the ctkDicomAppHosting::COMPLETED state notification has been received.
ctkDicomAbstractHost(int hostPort=0, int appPort=0)
Starts the soap server on the specified port or choose port automatically.
virtual ~ctkDicomAbstractHost()
ctkDicomAppHosting::State getApplicationState() const
Gets the internal representation of the application state. Does not call the client....
void appReady()
Emitted when the ctkDicomAppHosting::IDLE state notification has been received, and the previous stat...
int getHostPort() const
Gets the host port.
void suspended()
Emitted when the ctkDicomAppHosting::SUSPENDED state notification has been received.