| 1 | // SPDX-FileCopyrightText: 2020 - 2022 UnionTech Software Technology Co., Ltd. |
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-only |
| 4 | |
| 5 | #ifndef QTINSTALLERFACTORY_H |
| 6 | #define QTINSTALLERFACTORY_H |
| 7 | |
| 8 | #include "qtbaseinstaller.h" |
| 9 | |
| 10 | #include <QObject> |
| 11 | |
| 12 | class QtInstallerFactory : public QObject |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | public: |
| 16 | static QtInstallerFactory* getInstance(); |
| 17 | public: |
| 18 | QtBaseInstaller* createInstaller(); |
| 19 | |
| 20 | private: |
| 21 | explicit QtInstallerFactory(QObject *parent = nullptr); |
| 22 | |
| 23 | signals: |
| 24 | |
| 25 | public slots: |
| 26 | |
| 27 | private: |
| 28 | static QtInstallerFactory* m_pSelf; |
| 29 | }; |
| 30 | |
| 31 | #endif // QTINSTALLERFACTORY_H |