Fcitx
|
Public Member Functions | |
AddonManager () | |
Construct an addon manager. | |
AddonManager (const std::string &addonConfigDir) | |
Create addon manager with given addon config dir. More... | |
virtual | ~AddonManager () |
Destruct and unload all addons. | |
void | registerDefaultLoader (StaticAddonRegistry *registry) |
Register addon loader, including static and shared library loader. More... | |
void | registerLoader (std::unique_ptr< AddonLoader > loader) |
Register new addon loader. More... | |
void | unregisterLoader (const std::string &name) |
Unregister addon loader. More... | |
void | load (const std::unordered_set< std::string > &enabled={}, const std::unordered_set< std::string > &disabled={}) |
Load addon based on given parameter. More... | |
void | unload () |
Destruct all addon, all information is cleared to the initial state. More... | |
void | saveAll () |
Save all addon configuration. More... | |
AddonInstance * | addon (const std::string &name, bool load=false) |
Get the loaded addon instance. More... | |
AddonInstance * | lookupAddon (const std::string &name) const |
Get the currently loaded addon instance. More... | |
const std::vector< std::string > & | loadedAddonNames () const |
Return the loaded addon name in the order of they were loaded. More... | |
const AddonInfo * | addonInfo (const std::string &name) const |
Get addon information for given addon. More... | |
std::unordered_set< std::string > | addonNames (AddonCategory category) |
Instance * | instance () |
Return the fcitx instance when it is created by Fcitx. More... | |
EventLoop * | eventLoop () |
Return the associated event loop. More... | |
void | setEventLoop (EventLoop *eventLoop) |
Set event loop. More... | |
const SemanticVersion & | version () const |
Return the version number of Fcitx5Core library. | |
bool | checkUpdate () const |
Check directory for quick hint for whether update is required. More... | |
void | setAddonOptions (std::unordered_map< std::string, std::vector< std::string >> options) |
Set addon parameters that may be used during addon construction. More... | |
std::vector< std::string > | addonOptions (const std::string &name) |
Query addon options that set with setAddonOptions for given addon. More... | |
Friends | |
class | Instance |
Definition at line 32 of file addonmanager.h.