diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2023-08-17 12:32:50 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2023-08-17 12:32:50 +0200 |
| commit | 375799fa79d1af76f33299acc20a11a167a021f8 (patch) | |
| tree | 8f91b982ec96225c33a2f4871730ababffe5cab0 /source/lib/include/wanda/command.hpp | |
| parent | af471b9b780869915d3217b228e24d025892de47 (diff) | |
| download | wanda-375799fa79d1af76f33299acc20a11a167a021f8.tar.xz wanda-375799fa79d1af76f33299acc20a11a167a021f8.zip | |
project: restructure libraries and build env
Diffstat (limited to 'source/lib/include/wanda/command.hpp')
| -rw-r--r-- | source/lib/include/wanda/command.hpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/source/lib/include/wanda/command.hpp b/source/lib/include/wanda/command.hpp deleted file mode 100644 index 67938de..0000000 --- a/source/lib/include/wanda/command.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef WANDA_COMMAND_HPP -#define WANDA_COMMAND_HPP - -#include "wanda/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 |
