mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-20 10:55:28 -05:00
added web interface to retroshare-gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8165 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1b0f59d746
commit
127c104e5e
16 changed files with 362 additions and 13 deletions
|
|
@ -1040,3 +1040,33 @@ void RshareSettings::setMaxTimeBeforeIdle(uint nValue)
|
|||
m_maxTimeBeforeIdle = nValue;
|
||||
setValue("maxTimeBeforeIdle", nValue);
|
||||
}
|
||||
|
||||
bool RshareSettings::getWebinterfaceEnabled()
|
||||
{
|
||||
return valueFromGroup("Webinterface", "enabled", false).toBool();
|
||||
}
|
||||
|
||||
void RshareSettings::setWebinterfaceEnabled(bool enabled)
|
||||
{
|
||||
setValueToGroup("Webinterface", "enabled", enabled);
|
||||
}
|
||||
|
||||
uint16_t RshareSettings::getWebinterfacePort()
|
||||
{
|
||||
return valueFromGroup("Webinterface", "port", 9090).toUInt();
|
||||
}
|
||||
|
||||
void RshareSettings::setWebinterfacePort(uint16_t port)
|
||||
{
|
||||
setValueToGroup("Webinterface", "port", port);
|
||||
}
|
||||
|
||||
bool RshareSettings::getWebinterfaceAllowAllIps()
|
||||
{
|
||||
return valueFromGroup("Webinterface", "allowAllIps", false).toBool();
|
||||
}
|
||||
|
||||
void RshareSettings::setWebinterfaceAllowAllIps(bool allow_all)
|
||||
{
|
||||
setValueToGroup("Webinterface", "allowAllIps", allow_all);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue