istatusupdater.h 839 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef ISTATUSUPDATER_H
  2. #define ISTATUSUPDATER_H
  3. #include <QFileInfo>
  4. #include <QObject>
  5. class IStatusUpdater : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. //
  10. // lifetime managment
  11. //
  12. IStatusUpdater(QObject * parent = NULL);
  13. virtual ~IStatusUpdater() = 0;
  14. //
  15. // public operators
  16. //
  17. virtual void updateGeneratorStatus(bool manualTrigger = true) = 0;
  18. virtual void setIndefiniteProgress(bool indefinite) = 0;
  19. virtual void setPhases(int phases) = 0;
  20. virtual void reset() = 0;
  21. virtual int maximumProgress() = 0;
  22. virtual int currentProgress() = 0;
  23. virtual QString statusText() = 0;
  24. virtual int logSize() = 0;
  25. virtual QFileInfo pkgFileInfo() = 0;
  26. signals:
  27. void updated();
  28. void finished(bool success);
  29. };
  30. #endif // ISTATUSUPDATER_H