/* QtDcm is a C++ Qt based library for communication and conversion of Dicom images. Copyright (C) 2011 Alexandre Abadie This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef QTDCMMOVEDICOMDIR_H_ #define QTDCMMOVEDICOMDIR_H_ #include class DcmItem; class QtDcmMoveDicomdirPrivate; class QtDcmMoveDicomdir : public QThread { Q_OBJECT public: QtDcmMoveDicomdir ( QObject * parent ); virtual ~QtDcmMoveDicomdir(); enum eMoveMode { IMPORT, PREVIEW }; void setMode ( eMoveMode mode ); void setDcmItem ( DcmItem * item ); void setOutputDir ( const QString & dir ); void setImportDir ( const QString & dir ); void setSeries ( const QStringList & series ); void setIndex ( int index ); void setImageId ( const QString & uid ); void run(); signals: void updateProgress ( int i ); void previewSlice ( const QString & filename ); void serieMoved(const QString & directory, const QString & serie, int number); private: QString fixFilename ( const QString & name ) const; QtDcmMoveDicomdirPrivate * d; }; #endif /* QTDCMMOVEDICOMDIR_H_ */