aboutsummaryrefslogtreecommitdiff
path: root/include/wanda/command.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2022-09-16 21:36:12 +0200
committerFelix Morgner <felix.morgner@gmail.com>2022-09-16 21:36:12 +0200
commit64922e213ac731279cf3341253e67509adb2dfc8 (patch)
treeddcf4fd5b05ac426ecf032e43e8662c2f9ce0f57 /include/wanda/command.hpp
parentd22bc7b557d36da41fe88d3188a7cd335c3ccaa0 (diff)
downloadwanda-64922e213ac731279cf3341253e67509adb2dfc8.tar.xz
wanda-64922e213ac731279cf3341253e67509adb2dfc8.zip
wanda: restructure source directory
Diffstat (limited to 'include/wanda/command.hpp')
-rw-r--r--include/wanda/command.hpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/include/wanda/command.hpp b/include/wanda/command.hpp
deleted file mode 100644
index 5ea1a08..0000000
--- a/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