2017-11-12 17:21:50 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
2017-12-27 19:50:05 +01:00
|
|
|
#include <vector>
|
2017-11-12 17:21:50 +01:00
|
|
|
|
|
|
|
namespace chatterino {
|
2017-12-27 19:50:05 +01:00
|
|
|
|
2017-11-12 17:21:50 +01:00
|
|
|
class CommandManager
|
|
|
|
{
|
2017-12-27 21:29:56 +01:00
|
|
|
// public:
|
|
|
|
// CommandManager() = delete;
|
2017-11-12 17:21:50 +01:00
|
|
|
|
2017-12-27 21:29:56 +01:00
|
|
|
// QString execCommand(QString text);
|
2017-12-27 19:50:05 +01:00
|
|
|
// void addCommand ?
|
|
|
|
// void loadCommands(QString) taking all commands as a \n seperated list ?
|
|
|
|
|
2017-12-27 21:29:56 +01:00
|
|
|
// static CommandManager *getInstance()
|
|
|
|
// {
|
|
|
|
// static CommandManager manager;
|
2017-12-27 19:50:05 +01:00
|
|
|
|
2017-12-27 21:29:56 +01:00
|
|
|
// return manager;
|
|
|
|
// }
|
2017-12-27 19:50:05 +01:00
|
|
|
|
2017-12-27 21:29:56 +01:00
|
|
|
// private:
|
|
|
|
// struct Command {
|
|
|
|
// QString name;
|
|
|
|
// QString text;
|
2017-12-27 19:50:05 +01:00
|
|
|
|
2017-12-27 21:29:56 +01:00
|
|
|
// Command(QString text);
|
|
|
|
// };
|
2017-12-27 19:50:05 +01:00
|
|
|
|
2017-12-27 21:29:56 +01:00
|
|
|
// std::vector<Command> commands;
|
2017-11-12 17:21:50 +01:00
|
|
|
};
|
|
|
|
}
|