TaskbarComponent.h 827 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef TASKBARCOMPONENT_H
  2. #define TASKBARCOMPONENT_H
  3. #include <QsLog.h>
  4. #include <QQuickWindow>
  5. #include "ComponentManager.h"
  6. class TaskbarComponent : public ComponentBase
  7. {
  8. Q_OBJECT
  9. public:
  10. static TaskbarComponent& Get();
  11. explicit TaskbarComponent(QObject* parent = nullptr): ComponentBase(parent) {}
  12. const char* componentName() override { return "taskbar"; }
  13. bool componentExport() override { return true; }
  14. bool componentInitialize() override { return true; }
  15. void componentPostInitialize() override {}
  16. virtual void setWindow(QQuickWindow* window);
  17. public Q_SLOTS:
  18. virtual void setControlsVisible(bool value) {}
  19. virtual void setProgress(int value) {}
  20. virtual void setPaused(bool value) {}
  21. Q_SIGNALS:
  22. void pauseClicked();
  23. protected:
  24. QQuickWindow* m_window;
  25. };
  26. #endif // TASKBARCOMPONENT_H