Perform initial refactoring work
Things that were once singletons are no longer singletons, but are instead stored in the "Application" singleton Some singletons still remain, and some renaming/renamespacing is left
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
@@ -16,11 +17,10 @@ namespace singletons {
|
||||
|
||||
class CommandManager
|
||||
{
|
||||
CommandManager();
|
||||
CommandManager() = default;
|
||||
friend class Application;
|
||||
|
||||
public:
|
||||
static CommandManager &getInstance();
|
||||
|
||||
QString execCommand(const QString &text, std::shared_ptr<Channel> channel, bool dryRun);
|
||||
|
||||
void loadCommands();
|
||||
|
||||
Reference in New Issue
Block a user