ctkDICOMIndexer.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.commontk.org/LICENSE
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. #ifndef __ctkDICOMIndexer_h
  15. #define __ctkDICOMIndexer_h
  16. // Qt includes
  17. #include <QSqlDatabase>
  18. #include "ctkDICOMCoreExport.h"
  19. #include "ctkDICOMDatabase.h"
  20. class ctkDICOMIndexerPrivate;
  21. class CTK_DICOM_CORE_EXPORT ctkDICOMIndexer
  22. {
  23. public:
  24. explicit ctkDICOMIndexer();
  25. virtual ~ctkDICOMIndexer();
  26. /// add directory to database and optionally copy files to destinationDirectory
  27. void addDirectory(ctkDICOMDatabase& database, const QString& directoryName, const QString& destinationDirectoryName = "", bool createHierarchy = true, bool createThumbnails = true);
  28. void refreshDatabase(ctkDICOMDatabase& database, const QString& directoryName);
  29. protected:
  30. QScopedPointer<ctkDICOMIndexerPrivate> d_ptr;
  31. private:
  32. Q_DECLARE_PRIVATE(ctkDICOMIndexer);
  33. Q_DISABLE_COPY(ctkDICOMIndexer);
  34. };
  35. #endif