You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
599 B

// config_updater.h — Universal INI config file updater
#ifndef CONFIG_UPDATER_H
#define CONFIG_UPDATER_H
#include <QString>
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