Deamon management
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// gKeyMapper - reading and writing the mappings configuration file.
|
||||
// gKeyMapper - GUI glue between the mappings file and the row widgets.
|
||||
#ifndef GKEYMAPPER_MAPPINGS_H
|
||||
#define GKEYMAPPER_MAPPINGS_H
|
||||
|
||||
@@ -9,14 +9,10 @@
|
||||
|
||||
namespace gkeymapper {
|
||||
|
||||
// Default config file: ~/.config/gKeyMapper/mappings.conf.
|
||||
std::string default_config_path();
|
||||
|
||||
// Writes all rows as "G1=type:target" lines. Returns false on I/O error.
|
||||
// Collects the current widget state and writes it to path.
|
||||
bool write_mappings(const std::string& path, const std::vector<KeyRow>& rows);
|
||||
|
||||
// Loads mappings from path into the rows' widgets. Missing/invalid lines are
|
||||
// skipped; a missing file is reported and otherwise ignored.
|
||||
// Loads path into the rows' widgets (type dropdown + target entry).
|
||||
void read_mappings(const std::string& path, const std::vector<KeyRow>& rows);
|
||||
|
||||
} // namespace gkeymapper
|
||||
|
||||
Reference in New Issue
Block a user