~oif-team/touchegg/primary

« back to all changes in this revision

Viewing changes to src/config/xml-config-loader.h

  • Committer: JoseExposito
  • Date: 2020-11-18 17:01:26 UTC
  • Revision ID: git-v1:ff6bb779038a785a87dd310b9c23972d928e372b
Improve config watcher

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
  Config *config;
58
58
 
59
59
  /**
 
60
   * @returns Path to the config file to use.
 
61
   */
 
62
  std::filesystem::path getConfigFilePath() const;
 
63
 
 
64
  /**
60
65
   * Parse the XML configuration file placed in path.
61
 
   * @param configPath Path to the configuration file.
62
66
   */
63
 
  void parseXml(const std::filesystem::path &configPath);
 
67
  void parseConfig();
64
68
 
65
69
  /**
66
70
   * Parse the global settings.
75
79
  void parseApplicationXmlNodes(const pugi::xml_node &rootNode);
76
80
 
77
81
  /**
78
 
   * Watch the configuration file and parse it on change.
79
 
   * @param configPath Path to the configuration file.
 
82
   * Watch the configuration file and parse it on change or creation.
80
83
   */
81
 
  void watchFile(const std::filesystem::path &configPath);
 
84
  void watchConfig();
82
85
};
83
86
 
84
87
#endif  // CONFIG_XML_CONFIG_LOADER_H_