ctkCmdLineModuleXmlProgressWatcher.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*===================================================================
  2. BlueBerry Platform
  3. Copyright (c) German Cancer Research Center,
  4. Division of Medical and Biological Informatics.
  5. All rights reserved.
  6. This software is distributed WITHOUT ANY WARRANTY; without
  7. even the implied warranty of MERCHANTABILITY or FITNESS FOR
  8. A PARTICULAR PURPOSE.
  9. See LICENSE.txt or http://www.mitk.org for details.
  10. ===================================================================*/
  11. #ifndef CTKCMDLINEMODULEXMLPROGRESSWATCHER_H
  12. #define CTKCMDLINEMODULEXMLPROGRESSWATCHER_H
  13. #include "ctkCommandLineModulesCoreExport.h"
  14. #include <QObject>
  15. class ctkCmdLineModuleXmlProgressWatcherPrivate;
  16. class QIODevice;
  17. class CTK_CMDLINEMODULECORE_EXPORT ctkCmdLineModuleXmlProgressWatcher : public QObject
  18. {
  19. Q_OBJECT
  20. public:
  21. ctkCmdLineModuleXmlProgressWatcher(QIODevice* input);
  22. ~ctkCmdLineModuleXmlProgressWatcher();
  23. Q_SIGNALS:
  24. void filterStarted(const QString& name, const QString& comment);
  25. void filterProgress(float progress);
  26. void filterFinished(const QString& name);
  27. void filterXmlError(const QString& error);
  28. private:
  29. friend class ctkCmdLineModuleXmlProgressWatcherPrivate;
  30. Q_PRIVATE_SLOT(d, void _q_readyRead())
  31. QScopedPointer<ctkCmdLineModuleXmlProgressWatcherPrivate> d;
  32. };
  33. #endif // CTKCMDLINEMODULEXMLPROGRESSWATCHER_H