From ed419140280553b070943b7ba539120a26ff5686 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 11 Dec 2018 07:42:05 +0100 Subject: wanda: restructure directory hierarchy --- src/command.hpp | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 src/command.hpp (limited to 'src/command.hpp') diff --git a/src/command.hpp b/src/command.hpp deleted file mode 100644 index afc6a6f..0000000 --- a/src/command.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef WANDA_COMMAND_HPP -#define WANDA_COMMAND_HPP - -#include "message.hpp" - -#include -#include -#include - -namespace wanda -{ - /** - * @brief An enum to describe different command IDs - */ - enum struct command_id : char - { - change, //< Change the wallpaper - }; - - /** - * @brief A simple type to represent commands transported through the control connection - */ - struct command - { - command_id const id; - std::vector const arguments; - - /** - * @brief Convert the command to a message for transmission to a remote endpoint - */ - std::optional message() const; - }; - - /** - * @brief Extract a command from a message - */ - std::optional make_command(message message); - - /** - * @brief A simple factory to create a "Change wallpaper" command - */ - command make_change_command(); - -} // namespace wanda - -#endif \ No newline at end of file -- cgit v1.2.3