QtDcmFindScu.h
Go to the documentation of this file.
1 /*
2  QtDcm is a C++ Qt based library for communication and conversion of Dicom images.
3  Copyright (C) 2011 Alexandre Abadie <Alexandre.Abadie@univ-rennes1.fr>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #ifndef QTDCMFINDSCU_H_
21 #define QTDCMFINDSCU_H_
22 
23 #include <QtGui>
24 #include "QtDcmFindCallback.h"
25 
26 class QtDcmFindScu : public QObject
27 {
28  Q_OBJECT
29 
30 public:
31  explicit QtDcmFindScu ( QObject * parent = 0);
32  virtual ~QtDcmFindScu();
33 
34  void findPatientsScu ( const QString & patientName );
35 
36  void findPatientsScu ( const QString & patientName,
37  const QString & patientSex );
38 
39  void findStudiesScu ( const QString & patientName );
40 
41  void findStudiesScu ( const QString & patientName,
42  const QString & studyDescription );
43 
44  void findStudiesScu ( const QString & patientName,
45  const QString & studyDescription,
46  const QString & startDate,
47  const QString & endDate );
48 
49  void findSeriesScu ( const QString & patientName,
50  const QString & studyUID );
51 
52  void findSeriesScu ( const QString & patientName,
53  const QString & studyUID,
54  const QString & modality );
55 
56  void findSeriesScu ( const QString & patientName,
57  const QString & studyUID,
58  const QString & studyDescription,
59  const QString & modality );
60 
61  void findSeriesScu ( const QString & patientName,
62  const QString & studyUID,
63  const QString & studyDescription,
64  const QString & serieDescription,
65  const QString & modality );
66 
67  void findImagesScu ( const QString & seriesUID );
68 
69  void findImageScu ( const QString & imageUID);
70 
71 protected:
72 
73  bool doQuery(const OFList<OFString>& overrideKeys, QtDcmFindCallback::cbType level);
74 
79  bool checkServerConnection(int timeout = 10000);
80 
81 private:
82  class Private;
83  Private * d;
84 };
85 
86 #endif /* QTDCMFINDSCU_H_ */
void findImagesScu(const QString &seriesUID)
virtual ~QtDcmFindScu()
bool doQuery(const OFList< OFString > &overrideKeys, QtDcmFindCallback::cbType level)
QtDcmFindScu(QObject *parent=0)
void findPatientsScu(const QString &patientName)
bool checkServerConnection(int timeout=10000)
test if the current selected pacs is available returns false if timeout (10sec) is reached ...
void findStudiesScu(const QString &patientName)
void findImageScu(const QString &imageUID)
void findSeriesScu(const QString &patientName, const QString &studyUID)