10#include "../PreferencesModule.h"
12class NetworkModule :
public PreferencesModule
15 DECLARE_PREFERENCES_MODULE(NetworkModule)
18 virtual ~NetworkModule();
20 virtual const char* GetName()
const override {
return GetStaticName(); }
21 virtual const char* GetParentPath()
const override {
return GetStaticParentPath(); }
22 virtual void Render()
override;
26 bool GetControllerServerEnabled()
const {
return mControllerServerEnabled; }
27 int GetPort()
const {
return mPort; }
28 bool GetLogRequests()
const {
return mLogRequests; }
30 void SetControllerServerEnabled(
bool enabled);
31 void SetPort(
int port);
32 void SetLogRequests(
bool log);
34 static NetworkModule*
Get();
37 bool mControllerServerEnabled =
false;
39 bool mLogRequests =
false;
41 static NetworkModule* sInstance;
Definition JsonHelpers.h:15