| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef OPTIONDEFAULTKEEPER_H |
| 6 | #define OPTIONDEFAULTKEEPER_H |
| 7 | |
| 8 | #include "optionsdialog.h" |
| 9 | |
| 10 | class OptionDefaultKeeper final |
| 11 | { |
| 12 | OptionDefaultKeeper(); |
| 13 | OptionDefaultKeeper(const OptionDefaultKeeper &other) = delete; |
| 14 | inline static OptionDefaultKeeper *ins {nullptr}; |
| 15 | inline static OptionsDialog *optionDialog {nullptr}; |
| 16 | public: |
| 17 | virtual ~OptionDefaultKeeper(); |
| 18 | static OptionDefaultKeeper *instance(); |
| 19 | static OptionsDialog* getOptionDialog(); |
| 20 | }; |
| 21 | |
| 22 | #endif // OPTIONDEFAULTKEEPER_H |
| 23 |