#pragma once #include #include #include #include #include #include #include #include class UpdateManager : public QObject { Q_OBJECT QML_ELEMENT QML_SINGLETON Q_PROPERTY(bool isChecking READ isChecking NOTIFY isCheckingChanged) Q_PROPERTY(int packageCount READ packageCount NOTIFY packageCountChanged) public: explicit UpdateManager(QObject* parent = nullptr); public: bool isChecking() const; int packageCount() const; signals: void isCheckingChanged(); void packageCountChanged(); private: QProcess m_process; private: bool m_isChecking = false; bool m_isUpdating = false; };