diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-12-11 07:42:05 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-12-11 07:42:05 +0100 |
| commit | ed419140280553b070943b7ba539120a26ff5686 (patch) | |
| tree | 3d134977a6dfae71a45c318305166d044b50320d /src/command.hpp | |
| parent | d3e691c9200b7b782c8acf17468068a699588a73 (diff) | |
| download | wanda-ed419140280553b070943b7ba539120a26ff5686.tar.xz wanda-ed419140280553b070943b7ba539120a26ff5686.zip | |
wanda: restructure directory hierarchy
Diffstat (limited to 'src/command.hpp')
| -rw-r--r-- | src/command.hpp | 46 |
1 files changed, 0 insertions, 46 deletions
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 <optional> -#include <string> -#include <vector> - -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<std::string> const arguments; - - /** - * @brief Convert the command to a message for transmission to a remote endpoint - */ - std::optional<wanda::message> message() const; - }; - - /** - * @brief Extract a command from a message - */ - std::optional<command> 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 |
