Refactor switch Settings as singleton

This commit is contained in:
h0neybadger 2020-12-25 18:43:20 +01:00 committed by Florian Märkl
parent 943e661af4
commit 05b22e15f1
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
5 changed files with 562 additions and 527 deletions

View file

@ -44,9 +44,8 @@ class HostInterface : public brls::List
class MainApplication
{
private:
ChiakiLog * log;
std::map<std::string, Host> * hosts;
Settings * settings;
ChiakiLog * log;
DiscoveryManager * discoverymanager;
IO * io;
brls::TabFrame * rootFrame;
@ -59,9 +58,7 @@ class MainApplication
bool BuildConfigurationMenu(brls::List *, Host * host = nullptr);
void BuildAddHostConfigurationMenu(brls::List *);
public:
MainApplication(std::map<std::string, Host> * hosts,
Settings * settings, DiscoveryManager * discoverymanager,
IO * io, ChiakiLog * log);
MainApplication(DiscoveryManager * discoverymanager, IO * io);
~MainApplication();
bool Load();