mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-16 10:03:35 -07:00
Refactor switch Settings as singleton
This commit is contained in:
parent
943e661af4
commit
05b22e15f1
5 changed files with 562 additions and 527 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue