// config_updater.h — Universal INI config file updater #ifndef CONFIG_UPDATER_H #define CONFIG_UPDATER_H #include enum ConfigUpdateFlag { CONFIG_UPDATE_REPLACE = 0, // replace existing param (single value) CONFIG_UPDATE_APPEND = 1 // add new param even if exists (multi-value) }; bool config_update_option(const QString& filePath, const QString& section, const QString& param, const QString& value, int flags = CONFIG_UPDATE_REPLACE); #endif // CONFIG_UPDATER_H