3
3
#include " ../engines/fcitx5-rime/src/rimeengine.h"
4
4
#include " ../fcitx5/src/modules/spell/spell.h"
5
5
#include " ../iosfrontend/iosfrontend.h"
6
+ #include " ../iosnotifications/iosnotifications.h"
6
7
#include " ../uipanel/uipanel.h"
7
8
#include " nativestreambuf.h"
8
9
#include < filesystem>
@@ -19,16 +20,19 @@ fcitx::RimeEngineFactory RimeFactory;
19
20
20
21
namespace fs = std::filesystem;
21
22
22
- fcitx::IosFrontendFactory IosFrontendFactory;
23
- fcitx::UIPanelFactory UIPanelFactory;
23
+ static fcitx::IosFrontendFactory IosFrontendFactory;
24
+ static fcitx::IosNotificationsFactory IosNotificationsFactory;
25
+ static fcitx::UIPanelFactory UIPanelFactory;
24
26
25
- fcitx::StaticAddonRegistry addons = {
27
+ static fcitx::StaticAddonRegistry addons = {
26
28
#ifdef HALLELUJAH
27
29
std::make_pair<std::string, fcitx::AddonFactory *>(" spell" ,
28
30
&SpellModuleFactory),
29
31
#endif
30
32
std::make_pair<std::string, fcitx::AddonFactory *>(" iosfrontend" ,
31
33
&IosFrontendFactory),
34
+ std::make_pair<std::string, fcitx::AddonFactory *>(
35
+ " notifications" , &IosNotificationsFactory),
32
36
std::make_pair<std::string, fcitx::AddonFactory *>(" uipanel" ,
33
37
&UIPanelFactory),
34
38
#ifdef HALLELUJAH
@@ -43,10 +47,10 @@ fcitx::StaticAddonRegistry addons = {
43
47
std::unique_ptr<fcitx::Instance> instance;
44
48
std::unique_ptr<fcitx::EventDispatcher> dispatcher;
45
49
46
- native_streambuf log_streambuf;
47
- std::ostream stream (&log_streambuf);
50
+ static native_streambuf log_streambuf;
51
+ static std::ostream stream (&log_streambuf);
48
52
49
- std::thread fcitx_thread;
53
+ static std::thread fcitx_thread;
50
54
51
55
void setupLog () {
52
56
fcitx::Log::setLogStream (stream);
0 commit comments