CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkDICOMServerNodeWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Library: CTK
4 
5  Copyright (c) Kitware Inc.
6 
7  Licensed under the Apache License, Version 2.0 (the "License");
8  you may not use this file except in compliance with the License.
9  You may obtain a copy of the License at
10 
11  http://www.apache.org/licenses/LICENSE-2.0.txt
12 
13  Unless required by applicable law or agreed to in writing, software
14  distributed under the License is distributed on an "AS IS" BASIS,
15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  See the License for the specific language governing permissions and
17  limitations under the License.
18 
19 =========================================================================*/
20 
21 #ifndef __ctkDICOMServerNodeWidget_h
22 #define __ctkDICOMServerNodeWidget_h
23 
24 // Qt includes
25 #include <QWidget>
26 #include <QString>
27 #include <QList>
28 #include <QMap>
29 
30 #include "ctkDICOMWidgetsExport.h"
31 
32 class QTableWidgetItem;
33 class ctkDICOMServerNodeWidgetPrivate;
34 
36 class CTK_DICOM_WIDGETS_EXPORT ctkDICOMServerNodeWidget : public QWidget
37 {
38 Q_OBJECT;
39 public:
40  typedef QWidget Superclass;
41  explicit ctkDICOMServerNodeWidget(QWidget* parent=0);
43 
45  QString callingAETitle()const;
47  QString storageAETitle()const;
49  int storagePort()const;
52  QMap<QString,QVariant> parameters()const;
53 
55  QStringList serverNodes()const;
57  QStringList selectedServerNodes()const;
59  QMap<QString,QVariant> serverNodeParameters(const QString &serverNode)const;
60  QMap<QString,QVariant> serverNodeParameters(int row)const;
61 
64  int addServerNode(const QMap<QString, QVariant>& parameters);
65 
66 public Q_SLOTS:
72 
73  void readSettings();
74  void saveSettings();
75 
76 protected Q_SLOTS:
78 
79 protected:
80  QScopedPointer<ctkDICOMServerNodeWidgetPrivate> d_ptr;
82  NameColumn = 0,
86  CGETColumn
87  };
88 private:
89  Q_DECLARE_PRIVATE(ctkDICOMServerNodeWidget);
90  Q_DISABLE_COPY(ctkDICOMServerNodeWidget);
91 };
92 
93 #endif
QMap< QString, QVariant > serverNodeParameters(int row) const
int addServerNode(const QMap< QString, QVariant > &parameters)
QMap< QString, QVariant > serverNodeParameters(const QString &serverNode) const
Return all the information associated to a server defined by its name.
ctkDICOMServerNodeWidget(QWidget *parent=0)
void removeCurrentServerNode()
Remove the current row (different from the checked rows)
QMap< QString, QVariant > parameters() const
QStringList serverNodes() const
Return the list of server names.
QString storageAETitle() const
"CTKSTORE" by default
QScopedPointer< ctkDICOMServerNodeWidgetPrivate > d_ptr
virtual ~ctkDICOMServerNodeWidget()
int storagePort() const
11112 by default
QStringList selectedServerNodes() const
Return the list of selected(checked) server names.
QString callingAETitle() const
"FINDSCU" by default