1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef TASKBARCOMPONENT_H
- #define TASKBARCOMPONENT_H
- #include <QsLog.h>
- #include <QQuickWindow>
- #include "ComponentManager.h"
- class TaskbarComponent : public ComponentBase
- {
- Q_OBJECT
- public:
- static TaskbarComponent& Get();
- explicit TaskbarComponent(QObject* parent = nullptr): ComponentBase(parent) {}
- const char* componentName() override { return "taskbar"; }
- bool componentExport() override { return true; }
- bool componentInitialize() override { return true; }
- void componentPostInitialize() override {}
- virtual void setWindow(QQuickWindow* window);
- public Q_SLOTS:
- virtual void setControlsVisible(bool value) {}
- virtual void setProgress(int value) {}
- virtual void setPaused(bool value) {}
- Q_SIGNALS:
- void pauseClicked();
- protected:
- QQuickWindow* m_window;
- };
- #endif // TASKBARCOMPONENT_H
|