diff --git a/dir_595f0268ff83821d3439fdccc6c5e3fd.html b/dir_595f0268ff83821d3439fdccc6c5e3fd.html
index 652bc113..abbfad98 100644
--- a/dir_595f0268ff83821d3439fdccc6c5e3fd.html
+++ b/dir_595f0268ff83821d3439fdccc6c5e3fd.html
@@ -113,6 +113,8 @@
|
file | playlistorder.hpp [code] |
|
+file | position.hpp [code] |
+ |
file | repeatstate.hpp [code] |
|
file | resizemode.hpp [code] |
diff --git a/enums_8hpp_source.html b/enums_8hpp_source.html
index 832ae834..a34ce184 100644
--- a/enums_8hpp_source.html
+++ b/enums_8hpp_source.html
@@ -83,263 +83,319 @@
3#include "lib/enum/mediatype.hpp"
4#include "lib/enum/devicetype.hpp"
5#include "lib/enum/playeraction.hpp"
-
-
-
-
-
-
-
-
-
- 19 static auto to_string(T value) -> std::string
-
-
- 22 enum_to_string(value, str);
-
-
-
- 26 static auto parse(
const std::string &str) -> T
-
-
- 29 enum_from_string(str, value);
-
-
-
-
-
- 41 const auto valueFlag =
static_cast<unsigned int>(value);
- 42 const auto flagFlag =
static_cast<unsigned int>(flag);
- 43 return (valueFlag & flagFlag) == flagFlag;
-
-
-
-
-
- 49 static void enum_to_string(media_type media_type, std::string &str)
-
-
-
- 53 case media_type::unknown:
-
-
-
- 57 case media_type::audio:
-
-
-
-
-
- 63 static void enum_from_string(
const std::string &str, media_type &media_type)
-
-
-
- 67 media_type = media_type::audio;
-
-
-
- 71 media_type = media_type::unknown;
-
-
-
-
-
-
- 78 static void enum_to_string(device_type device_type, std::string &str)
-
-
-
- 82 case device_type::unknown:
-
-
-
- 86 case device_type::computer:
-
-
-
- 90 case device_type::tablet:
-
-
-
- 94 case device_type::smartphone:
-
-
-
- 98 case device_type::speaker:
-
-
-
- 102 case device_type::tv:
-
-
-
- 106 case device_type::avr:
-
-
-
- 110 case device_type::stb:
-
-
-
- 114 case device_type::audio_dongle:
- 115 str =
"audio dongle";
-
-
- 118 case device_type::game_console:
- 119 str =
"game console";
-
-
- 122 case device_type::cast_audio:
-
-
-
- 126 case device_type::cast_video:
-
-
-
- 130 case device_type::automobile:
-
-
-
- 134 case device_type::smartwatch:
-
-
-
- 138 case device_type::chromebook:
-
-
-
- 142 case device_type::unknown_spotify:
- 143 str =
"unknown spotify";
-
-
- 146 case device_type::car_thing:
-
-
-
- 150 case device_type::observer:
-
-
-
- 154 case device_type::home_thing:
-
-
-
-
-
- 160 static void enum_from_string(
const std::string &, device_type &device_type)
-
-
- 163 device_type = device_type::unknown;
-
-
-
-
-
-
- 170 static void enum_to_string(player_action player_action, std::string &str)
-
- 172 switch (player_action)
-
- 174 case player_action::interrupting_playback:
- 175 str =
"interrupting_playback";
-
-
- 178 case player_action::pausing:
-
-
-
- 182 case player_action::resuming:
-
-
-
- 186 case player_action::seeking:
-
-
-
- 190 case player_action::skipping_next:
- 191 str =
"skipping_next";
-
-
- 194 case player_action::skipping_prev:
- 195 str =
"skipping_prev";
-
-
- 198 case player_action::toggling_repeat_context:
- 199 str =
"toggling_repeat_context";
-
-
- 202 case player_action::toggling_shuffle:
- 203 str =
"toggling_shuffle";
-
-
- 206 case player_action::toggling_repeat_track:
- 207 str =
"toggling_repeat_track";
-
-
- 210 case player_action::transferring_playback:
- 211 str =
"transferring_playback";
-
-
- 214 case player_action::unknown:
-
-
-
-
-
- 220 static void enum_from_string(
const std::string &str, player_action &player_action)
-
- 222 if (str ==
"interrupting_playback")
-
- 224 player_action = player_action::interrupting_playback;
-
- 226 else if (str ==
"pausing")
-
- 228 player_action = player_action::pausing;
-
- 230 else if (str ==
"resuming")
-
- 232 player_action = player_action::resuming;
-
- 234 else if (str ==
"seeking")
-
- 236 player_action = player_action::seeking;
-
- 238 else if (str ==
"skipping_next")
-
- 240 player_action = player_action::skipping_next;
-
- 242 else if (str ==
"skipping_prev")
-
- 244 player_action = player_action::skipping_prev;
-
- 246 else if (str ==
"toggling_repeat_context")
-
- 248 player_action = player_action::toggling_repeat_context;
-
- 250 else if (str ==
"toggling_shuffle")
-
- 252 player_action = player_action::toggling_shuffle;
-
- 254 else if (str ==
"toggling_repeat_track")
-
- 256 player_action = player_action::toggling_repeat_track;
-
- 258 else if (str ==
"transferring_playback")
-
- 260 player_action = player_action::transferring_playback;
-
-
-
- 264 player_action = player_action::unknown;
-
-
-
-
-
-
-
-static auto has_flag(T value, T flag) -> bool
Definition: enums.hpp:39
+ 6#include "lib/enum/position.hpp"
+
+
+
+
+
+
+
+
+
+ 20 static auto to_string(T value) -> std::string
+
+
+ 23 enum_to_string(value, str);
+
+
+
+ 27 static auto parse(
const std::string &str) -> T
+
+
+ 30 enum_from_string(str, value);
+
+
+
+
+
+ 42 const auto valueFlag =
static_cast<unsigned int>(value);
+ 43 const auto flagFlag =
static_cast<unsigned int>(flag);
+ 44 return (valueFlag & flagFlag) == flagFlag;
+
+
+
+
+
+ 50 static void enum_to_string(media_type media_type, std::string &str)
+
+
+
+ 54 case media_type::unknown:
+
+
+
+ 58 case media_type::audio:
+
+
+
+
+
+ 64 static void enum_from_string(
const std::string &str, media_type &media_type)
+
+
+
+ 68 media_type = media_type::audio;
+
+
+
+ 72 media_type = media_type::unknown;
+
+
+
+
+
+
+ 79 static void enum_to_string(device_type device_type, std::string &str)
+
+
+
+ 83 case device_type::unknown:
+
+
+
+ 87 case device_type::computer:
+
+
+
+ 91 case device_type::tablet:
+
+
+
+ 95 case device_type::smartphone:
+
+
+
+ 99 case device_type::speaker:
+
+
+
+ 103 case device_type::tv:
+
+
+
+ 107 case device_type::avr:
+
+
+
+ 111 case device_type::stb:
+
+
+
+ 115 case device_type::audio_dongle:
+ 116 str =
"audio dongle";
+
+
+ 119 case device_type::game_console:
+ 120 str =
"game console";
+
+
+ 123 case device_type::cast_audio:
+
+
+
+ 127 case device_type::cast_video:
+
+
+
+ 131 case device_type::automobile:
+
+
+
+ 135 case device_type::smartwatch:
+
+
+
+ 139 case device_type::chromebook:
+
+
+
+ 143 case device_type::unknown_spotify:
+ 144 str =
"unknown spotify";
+
+
+ 147 case device_type::car_thing:
+
+
+
+ 151 case device_type::observer:
+
+
+
+ 155 case device_type::home_thing:
+
+
+
+
+
+ 161 static void enum_from_string(
const std::string &, device_type &device_type)
+
+
+ 164 device_type = device_type::unknown;
+
+
+
+
+
+
+ 171 static void enum_to_string(player_action player_action, std::string &str)
+
+ 173 switch (player_action)
+
+ 175 case player_action::interrupting_playback:
+ 176 str =
"interrupting_playback";
+
+
+ 179 case player_action::pausing:
+
+
+
+ 183 case player_action::resuming:
+
+
+
+ 187 case player_action::seeking:
+
+
+
+ 191 case player_action::skipping_next:
+ 192 str =
"skipping_next";
+
+
+ 195 case player_action::skipping_prev:
+ 196 str =
"skipping_prev";
+
+
+ 199 case player_action::toggling_repeat_context:
+ 200 str =
"toggling_repeat_context";
+
+
+ 203 case player_action::toggling_shuffle:
+ 204 str =
"toggling_shuffle";
+
+
+ 207 case player_action::toggling_repeat_track:
+ 208 str =
"toggling_repeat_track";
+
+
+ 211 case player_action::transferring_playback:
+ 212 str =
"transferring_playback";
+
+
+ 215 case player_action::unknown:
+
+
+
+
+
+ 221 static void enum_from_string(
const std::string &str, player_action &player_action)
+
+ 223 if (str ==
"interrupting_playback")
+
+ 225 player_action = player_action::interrupting_playback;
+
+ 227 else if (str ==
"pausing")
+
+ 229 player_action = player_action::pausing;
+
+ 231 else if (str ==
"resuming")
+
+ 233 player_action = player_action::resuming;
+
+ 235 else if (str ==
"seeking")
+
+ 237 player_action = player_action::seeking;
+
+ 239 else if (str ==
"skipping_next")
+
+ 241 player_action = player_action::skipping_next;
+
+ 243 else if (str ==
"skipping_prev")
+
+ 245 player_action = player_action::skipping_prev;
+
+ 247 else if (str ==
"toggling_repeat_context")
+
+ 249 player_action = player_action::toggling_repeat_context;
+
+ 251 else if (str ==
"toggling_shuffle")
+
+ 253 player_action = player_action::toggling_shuffle;
+
+ 255 else if (str ==
"toggling_repeat_track")
+
+ 257 player_action = player_action::toggling_repeat_track;
+
+ 259 else if (str ==
"transferring_playback")
+
+ 261 player_action = player_action::transferring_playback;
+
+
+
+ 265 player_action = player_action::unknown;
+
+
+
+
+
+
+
+ 273 static void enum_to_string(position position, std::string &str)
+
+
+
+
+
+
+
+
+
+
+
+
+ 286 case position::right:
+
+
+
+ 290 case position::bottom:
+
+
+
+
+
+
+
+
+
+ 300 static void enum_from_string(
const std::string &str, position &position)
+
+
+
+ 304 position = position::top;
+
+ 306 else if (str ==
"right")
+
+ 308 position = position::right;
+
+ 310 else if (str ==
"bottom")
+
+ 312 position = position::bottom;
+
+ 314 else if (str ==
"left")
+
+ 316 position = position::left;
+
+
+
+ 320 position = position::none;
+
+
+
+
+
+
+
+static auto has_flag(T value, T flag) -> bool
Definition: enums.hpp:40