mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-29 09:18:45 -04:00
made JsonApiServer an singleton through static method instance()
This commit is contained in:
parent
3b45fc5199
commit
d19d1685de
9 changed files with 129 additions and 95 deletions
|
@ -30,6 +30,9 @@
|
|||
#include "rsharesettings.h"
|
||||
#include "gui/MainWindow.h"
|
||||
|
||||
// for this one, we'd rather use a file in retroshare/*h list.
|
||||
#include <jsonapi/jsonapi.h>
|
||||
|
||||
#include <retroshare/rsnotify.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
|
@ -1208,7 +1211,7 @@ void RshareSettings::setJsonApiEnabled(bool enabled)
|
|||
|
||||
uint16_t RshareSettings::getJsonApiPort()
|
||||
{
|
||||
return valueFromGroup("JsonApi", "port", 9092).toUInt();
|
||||
return valueFromGroup("JsonApi", "port", JsonApiServer::DEFAULT_PORT).toUInt();
|
||||
}
|
||||
|
||||
void RshareSettings::setJsonApiPort(uint16_t port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue