ctkDICOMIndexer_p.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) German Cancer Research Center
  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.apache.org/licenses/LICENSE-2.0.txt
  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 CTKDICOMINDEXERPRIVATE_H
  15. #define CTKDICOMINDEXERPRIVATE_H
  16. #include <QObject>
  17. #include "ctkDICOMIndexer.h"
  18. //------------------------------------------------------------------------------
  19. class ctkDICOMIndexerPrivate : public QObject
  20. {
  21. Q_OBJECT
  22. Q_DECLARE_PUBLIC(ctkDICOMIndexer);
  23. protected:
  24. ctkDICOMIndexer* const q_ptr;
  25. public:
  26. ctkDICOMIndexerPrivate(ctkDICOMIndexer&);
  27. ~ctkDICOMIndexerPrivate();
  28. public:
  29. ctkDICOMAbstractThumbnailGenerator* thumbnailGenerator;
  30. bool Canceled;
  31. // Incremented each time startIndexing is called
  32. // and decremented when endIndexing is called.
  33. // This makes sure that when a batch of indexing
  34. // operations are performed, at any level
  35. // (file, folder, or set of folders) then
  36. // batch processing initialization and finalization
  37. // are performed exactly once.
  38. int StartedIndexing;
  39. };
  40. #endif // CTKDICOMINDEXERPRIVATE_H