21 #include "softwarecontainer-common.h" 22 #include "configitem.h" 31 ConfigItem::ConfigItem(
const std::string &group,
const std::string &name):
37 std::string ConfigItem::key()
const 42 std::string ConfigItem::group()
const 47 void ConfigItem::setSource(ConfigSourceType type)
52 ConfigSourceType ConfigItem::source()
const 62 StringConfig::StringConfig(
const std::string &group,
const std::string &name, std::string value):
63 ConfigItem(group, name),
68 std::string StringConfig::value()
78 IntConfig::IntConfig(
const std::string &group,
const std::string &name,
int value):
79 ConfigItem(group, name),
84 int IntConfig::value()
94 BoolConfig::BoolConfig(
const std::string &group,
const std::string &name,
bool value):
95 ConfigItem(group, name),
100 bool BoolConfig::value()
Developers guide to adding a config item: