| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2012~2012 CSSlayer <[email protected]> |
| 3 |
* SPDX-FileCopyrightText: 2017~2017 xzhao <[email protected]> |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 6 |
*/ |
| 7 |
#ifndef _GUIWRAPPER_WRAPPERAPP_H_ |
| 8 |
#define _GUIWRAPPER_WRAPPERAPP_H_ |
| 9 |
|
| 10 |
#include "mainwindow.h" |
| 11 |
#include <QApplication> |
| 12 |
|
| 13 |
namespace fcitx { |
| 14 |
|
| 15 |
class FcitxQtConfigUIFactory; |
| 16 |
class WrapperApp : public QApplication { |
| 17 |
Q_OBJECT |
| 18 |
public: |
| 19 |
WrapperApp(int &argc, char **argv); |
| 20 |
virtual ~WrapperApp(); |
| 21 |
|
| 22 |
void init(); |
| 23 |
public Q_SLOTS: |
| 24 |
void run(); |
| 25 |
|
| 26 |
private Q_SLOTS: |
| 27 |
void errorExit(); |
| 28 |
|
| 29 |
private: |
| 30 |
FcitxQtConfigUIFactory *factory_; |
| 31 |
MainWindow *mainWindow_; |
| 32 |
}; |
| 33 |
} // namespace fcitx |
| 34 |
|
| 35 |
#endif // _GUIWRAPPER_WRAPPERAPP_H_ |