diff options
Diffstat (limited to 'backends/keymapper/keymap.h')
-rw-r--r-- | backends/keymapper/keymap.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/backends/keymapper/keymap.h b/backends/keymapper/keymap.h index 5694bfaa18..3159dab7f8 100644 --- a/backends/keymapper/keymap.h +++ b/backends/keymapper/keymap.h @@ -81,19 +81,20 @@ public: */ Action *getMappedAction(const KeyState& ks) const; + void setConfigDomain(ConfigManager::Domain *dom); + /** - * Load this keymap's mappings from the given config domain and hardware key set - * @param domain config domain to load keymap from + * Load this keymap's mappings from the config manager. * @param hwKeys the set to retrieve hardware key pointers from */ - void loadMappings(ConfigManager::Domain *domain, const HardwareKeySet *hwKeys); + void loadMappings(const HardwareKeySet *hwKeys); /** - * Save this keymap's mappings to the given config domain - * @param domain config domain to save keymap to + * Save this keymap's mappings to the config manager + * @note Changes are *not* flushed to disk, to do so call ConfMan.flushToDisk() * @note Changes are *not* flushed to disk, to do so call ConfMan.flushToDisk() */ - void saveMappings(ConfigManager::Domain *domain); + void saveMappings(); /** * Returns true if all UserAction's in Keymap are mapped, or, @@ -130,6 +131,7 @@ private: Keymap *_parent; List<Action*> _actions; HashMap<KeyState, Action*> _keymap; + ConfigManager::Domain *_configDomain; }; |