mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
911 B
32 lines
911 B
#ifndef JUCI_SINGLETONS_H_ |
|
#define JUCI_SINGLETONS_H_ |
|
|
|
#include "source.h" |
|
#include "directories.h" |
|
#include "terminal.h" |
|
#include "notebook.h" |
|
#include "menu.h" |
|
|
|
class Singleton { |
|
public: |
|
class Config { |
|
public: |
|
static Source::Config *source() {return source_.get();} |
|
static Terminal::Config *terminal() {return terminal_.get();} |
|
static Directories::Config *directories() {return directories_.get();} |
|
private: |
|
static std::unique_ptr<Source::Config> source_; |
|
static std::unique_ptr<Terminal::Config> terminal_; |
|
static std::unique_ptr<Directories::Config> directories_; |
|
}; |
|
|
|
static Terminal::Controller *terminal(); |
|
static Notebook::Controller *notebook(); |
|
static Menu *menu(); |
|
private: |
|
static std::unique_ptr<Terminal::Controller> terminal_; |
|
static std::unique_ptr<Notebook::Controller> notebook_; |
|
static std::unique_ptr<Menu> menu_; |
|
}; |
|
|
|
#endif // JUCI_SINGLETONS_H_
|
|
|