From 3b03f87070d91f63f0dc3c7152723727781dcccf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 28 Apr 2018 11:52:04 +0200 Subject: Add commands, users side panel, improve image download start using odhtdb --- include/Command.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/Command.hpp (limited to 'include/Command.hpp') diff --git a/include/Command.hpp b/include/Command.hpp new file mode 100644 index 0000000..fe8a947 --- /dev/null +++ b/include/Command.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include +#include +#include + +namespace dchat +{ + using CommandHandlerFunc = std::function &args)>; + + class Command + { + public: + static bool add(const std::string &cmd, CommandHandlerFunc handlerFunc); + static bool call(const std::string &cmd, const std::vector &args); + }; +} -- cgit v1.2.3