2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2011-02-22 12:08:19 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2010-11-24 14:52:06 +01:00
|
|
|
|
|
|
|
|
#include <qmetatype.h>
|
2020-08-19 15:00:25 +02:00
|
|
|
#include <QDataStream>
|
2010-11-24 14:52:06 +01:00
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
|
|
namespace QmlDesigner {
|
|
|
|
|
|
|
|
|
|
class ChangeFileUrlCommand
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-08-19 15:00:25 +02:00
|
|
|
friend QDataStream &operator>>(QDataStream &in, ChangeFileUrlCommand &command)
|
|
|
|
|
{
|
|
|
|
|
in >> command.fileUrl;
|
|
|
|
|
return in;
|
|
|
|
|
}
|
2010-11-24 14:52:06 +01:00
|
|
|
|
2020-08-19 15:00:25 +02:00
|
|
|
friend QDataStream &operator<<(QDataStream &out, const ChangeFileUrlCommand &command)
|
|
|
|
|
{
|
|
|
|
|
out << command.fileUrl;
|
|
|
|
|
return out;
|
|
|
|
|
}
|
2010-11-24 14:52:06 +01:00
|
|
|
|
2020-08-19 15:00:25 +02:00
|
|
|
friend QDebug operator <<(QDebug debug, const ChangeFileUrlCommand &command);
|
2010-11-24 14:52:06 +01:00
|
|
|
|
2020-08-19 15:00:25 +02:00
|
|
|
QUrl fileUrl;
|
|
|
|
|
};
|
2013-07-16 17:00:07 +02:00
|
|
|
|
2010-11-24 14:52:06 +01:00
|
|
|
} // namespace QmlDesigner
|
|
|
|
|
|
2010-12-16 11:25:28 +01:00
|
|
|
Q_DECLARE_METATYPE(QmlDesigner::ChangeFileUrlCommand)
|