2011-05-06 13:08:46 +02:00
|
|
|
/**************************************************************************
|
|
|
|
**
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
**
|
|
|
|
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
|
**
|
2012-07-19 12:26:56 +02:00
|
|
|
** Contact: http://www.qt-project.org/
|
2011-05-06 13:08:46 +02:00
|
|
|
**
|
|
|
|
**
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
**
|
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
**
|
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
**
|
|
|
|
** Other Usage
|
|
|
|
**
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
**
|
|
|
|
**
|
|
|
|
**************************************************************************/
|
|
|
|
|
2011-06-08 17:02:03 +02:00
|
|
|
#ifndef CHANGENODESOURCECOMMAND_H
|
|
|
|
#define CHANGENODESOURCECOMMAND_H
|
2011-05-06 13:08:46 +02:00
|
|
|
|
|
|
|
#include <QMetaType>
|
2012-09-26 16:21:11 +02:00
|
|
|
#include <QDataStream>
|
2011-05-06 13:08:46 +02:00
|
|
|
|
|
|
|
namespace QmlDesigner {
|
|
|
|
|
2011-06-08 17:02:03 +02:00
|
|
|
class ChangeNodeSourceCommand
|
2011-05-06 13:08:46 +02:00
|
|
|
{
|
2011-06-08 17:02:03 +02:00
|
|
|
friend QDataStream &operator>>(QDataStream &in, ChangeNodeSourceCommand &command);
|
2011-05-06 13:08:46 +02:00
|
|
|
public:
|
2011-06-08 17:02:03 +02:00
|
|
|
ChangeNodeSourceCommand();
|
|
|
|
ChangeNodeSourceCommand(qint32 instanceId, const QString &nodeSource);
|
2011-05-06 13:08:46 +02:00
|
|
|
qint32 instanceId() const;
|
2011-06-08 17:02:03 +02:00
|
|
|
QString nodeSource() const;
|
2011-05-06 13:08:46 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
qint32 m_instanceId;
|
2011-06-08 17:02:03 +02:00
|
|
|
QString m_nodeSource;
|
2011-05-06 13:08:46 +02:00
|
|
|
};
|
|
|
|
|
2011-06-08 17:02:03 +02:00
|
|
|
QDataStream &operator<<(QDataStream &out, const ChangeNodeSourceCommand &command);
|
|
|
|
QDataStream &operator>>(QDataStream &in, ChangeNodeSourceCommand &command);
|
2011-05-06 13:08:46 +02:00
|
|
|
|
|
|
|
} // namespace QmlDesigner
|
|
|
|
|
2011-06-08 17:02:03 +02:00
|
|
|
Q_DECLARE_METATYPE(QmlDesigner::ChangeNodeSourceCommand)
|
2011-05-06 13:08:46 +02:00
|
|
|
|
2011-06-08 17:02:03 +02:00
|
|
|
#endif // CHANGENODESOURCECOMMAND_H
|