diff options
Diffstat (limited to 'src/libs/qmlpuppetcommunication/commands/changevaluescommand.h')
-rw-r--r-- | src/libs/qmlpuppetcommunication/commands/changevaluescommand.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/libs/qmlpuppetcommunication/commands/changevaluescommand.h b/src/libs/qmlpuppetcommunication/commands/changevaluescommand.h new file mode 100644 index 0000000000..cab4effd47 --- /dev/null +++ b/src/libs/qmlpuppetcommunication/commands/changevaluescommand.h @@ -0,0 +1,35 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0 + +#pragma once + +#include <QMetaType> +#include <QVector> + +#include "propertyvaluecontainer.h" + +namespace QmlDesigner { + +class ChangeValuesCommand +{ + friend QDataStream &operator>>(QDataStream &in, ChangeValuesCommand &command); + friend QDebug operator <<(QDebug debug, const ChangeValuesCommand &command); + +public: + ChangeValuesCommand(); + explicit ChangeValuesCommand(const QVector<PropertyValueContainer> &valueChangeVector); + + QVector<PropertyValueContainer> valueChanges() const; + +private: + QVector<PropertyValueContainer> m_valueChangeVector; +}; + +QDataStream &operator<<(QDataStream &out, const ChangeValuesCommand &command); +QDataStream &operator>>(QDataStream &in, ChangeValuesCommand &command); + +QDebug operator <<(QDebug debug, const ChangeValuesCommand &command); + +} // namespace QmlDesigner + +Q_DECLARE_METATYPE(QmlDesigner::ChangeValuesCommand) |