plugins/score-plugin-media/Media/Merger/commands.hpp
1 #pragma once
2 #include <Media/Commands/MediaCommandFactory.hpp>
3 #include <Media/Merger/Model.hpp>
4 
5 #include <score/command/Command.hpp>
6 #include <score/command/PropertyCommand.hpp>
7 #include <score/model/path/Path.hpp>
8 #include <score/model/path/PathSerialization.hpp>
9 
10 namespace Media
11 {
13 {
14  SCORE_COMMAND_DECL(Media::CommandFactoryName(), SetMergeInCount, "Set in count")
15 public:
16  SetMergeInCount(const Merger::Model& path, std::size_t newval)
17  : score::PropertyCommand{std::move(path), "inCount", QVariant::fromValue(newval)}
18  {
19  }
20 };
22 {
23  SCORE_COMMAND_DECL(Media::CommandFactoryName(), SetMergeMode, "Set mode")
24 public:
25  SetMergeMode(const Merger::Model& path, Merger::Model::Mode newval)
26  : score::PropertyCommand{std::move(path), "mode", QVariant::fromValue(newval)}
27  {
28  }
29 };
30 }
Definition: score-plugin-media/Media/Merger/Model.hpp:17
Definition: plugins/score-plugin-media/Media/Merger/commands.hpp:13
Definition: plugins/score-plugin-media/Media/Merger/commands.hpp:22
The PropertyCommand class.
Definition: PropertyCommand.hpp:21