score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
UpdateAddressSettings.hpp
1
#pragma once
2
#include <Device/Address/AddressSettings.hpp>
3
#include <Device/Node/DeviceNode.hpp>
4
5
#include <Explorer/Commands/DeviceExplorerCommandFactory.hpp>
6
7
#include <score/command/Command.hpp>
8
#include <score/model/path/Path.hpp>
9
10
#include <score_plugin_deviceexplorer_export.h>
11
12
struct
DataStreamInput
;
13
struct
DataStreamOutput
;
14
15
namespace
Explorer
16
{
17
class
DeviceDocumentPlugin;
18
namespace
Command
19
{
20
class
SCORE_PLUGIN_DEVICEEXPLORER_EXPORT
UpdateAddressSettings
final
21
:
public
score::Command
22
{
23
SCORE_COMMAND_DECL(
24
DeviceExplorerCommandFactoryName(),
UpdateAddressSettings
,
"Update an address"
)
25
public
:
26
UpdateAddressSettings
(
27
const
DeviceDocumentPlugin& devplug,
const
Device::NodePath
& node,
28
const
Device::AddressSettings
& parameters);
29
30
void
undo(
const
score::DocumentContext
& ctx)
const override
;
31
void
redo(
const
score::DocumentContext
& ctx)
const override
;
32
33
protected
:
34
void
serializeImpl(
DataStreamInput
&)
const override
;
35
void
deserializeImpl(
DataStreamOutput
&)
override
;
36
37
private
:
38
Device::NodePath
m_node;
39
40
Device::AddressSettings
m_oldParameters;
41
Device::AddressSettings
m_newParameters;
42
};
43
}
44
}
Explorer::Command::UpdateAddressSettings
Definition
UpdateAddressSettings.hpp:22
TreePath
Path in a tree of QAbstractItemModel objects.
Definition
TreePath.hpp:34
score::Command
The Command class.
Definition
Command.hpp:34
DataStreamInput
Definition
DataStreamHelpers.hpp:99
DataStreamOutput
Definition
DataStreamHelpers.hpp:103
Device::AddressSettings
Definition
AddressSettings.hpp:49
score::DocumentContext
Definition
DocumentContext.hpp:18