various qt work

This commit is contained in:
hypnosis-i2p 2017-03-14 20:34:01 +08:00
parent 9925e2732a
commit 275da075e0
21 changed files with 13078 additions and 1648 deletions

View file

@ -301,5 +301,19 @@ namespace config {
return true;
return false;
}
bool GetOptionAsAny(const char *name, boost::any& value) {
if (!m_Options.count(name))
return false;
value = m_Options[name];
return true;
}
bool GetOptionAsAny(const std::string& name, boost::any& value)
{
return GetOptionAsAny (name.c_str (), value);
}
} // namespace config
} // namespace i2p

View file

@ -84,6 +84,9 @@ namespace config {
return GetOption (name.c_str (), value);
}
bool GetOptionAsAny(const char *name, boost::any& value);
bool GetOptionAsAny(const std::string& name, boost::any& value);
/**
* @brief Set value of given parameter
* @param name Name of settable parameter