QtDcmMoveDicomdir.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 QTDCMMOVEDICOMDIR_H_
21 #define QTDCMMOVEDICOMDIR_H_
22 
23 #include <QtGui>
24 
25 class DcmItem;
26 
28 
29 class QtDcmMoveDicomdir : public QThread
30 {
31  Q_OBJECT
32 
33 public:
34  QtDcmMoveDicomdir ( QObject * parent );
35  virtual ~QtDcmMoveDicomdir();
36 
37  enum eMoveMode
38  {
40  };
41 
42  void setMode ( eMoveMode mode );
43 
44  void setDcmItem ( DcmItem * item );
45 
46  void setOutputDir ( const QString & dir );
47 
48  void setImportDir ( const QString & dir );
49 
50  void setSeries ( const QStringList & series );
51 
52  void setIndex ( int index );
53 
54  void setImageId ( const QString & uid );
55 
56  void run();
57 
58 signals:
59  void updateProgress ( int i );
60  void previewSlice ( const QString & filename );
61  void serieMoved(const QString & directory, const QString & serie, int number);
62 
63 private:
64  QString fixFilename ( const QString & name ) const;
65 
67 };
68 
69 #endif /* QTDCMMOVEDICOMDIR_H_ */
void setDcmItem(DcmItem *item)
QtDcmMoveDicomdir(QObject *parent)
void setSeries(const QStringList &series)
void previewSlice(const QString &filename)
void updateProgress(int i)
void setIndex(int index)
void setMode(eMoveMode mode)
void setImageId(const QString &uid)
void setOutputDir(const QString &dir)
void setImportDir(const QString &dir)
void serieMoved(const QString &directory, const QString &serie, int number)