-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb57b2c
commit 83d9a9b
Showing
5 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "factory.h" | ||
#include "hallelujah.h" | ||
|
||
namespace fcitx { | ||
AddonInstance *HallelujahFactory::create(AddonManager *manager) { | ||
return new HallelujahEngine(manager->instance()); | ||
} | ||
} // namespace fcitx | ||
|
||
FCITX_ADDON_FACTORY(fcitx::HallelujahFactory); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef _FCITX5_HALLELUJAH_FACTORY_H_ | ||
#define _FCITX5_HALLELUJAH_FACTORY_H_ | ||
|
||
#include <fcitx/addonfactory.h> | ||
|
||
namespace fcitx { | ||
class HallelujahFactory : public AddonFactory { | ||
public: | ||
AddonInstance *create(AddonManager *manager) override; | ||
}; | ||
} // namespace fcitx | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters