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
|
2011-01-05 13:23:33 +01:00
|
|
|
|
|
|
|
|
#include <QMetaType>
|
|
|
|
|
#include <QUrl>
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
|
|
namespace QmlDesigner {
|
|
|
|
|
|
|
|
|
|
class AddImportContainer
|
|
|
|
|
{
|
|
|
|
|
friend QDataStream &operator>>(QDataStream &in, AddImportContainer &command);
|
|
|
|
|
public:
|
|
|
|
|
AddImportContainer();
|
|
|
|
|
AddImportContainer(const QUrl &url, const QString &fileName, const QString &version, const QString &alias, const QStringList &mportPathList);
|
|
|
|
|
|
|
|
|
|
QUrl url() const;
|
|
|
|
|
QString fileName() const;
|
|
|
|
|
QString version() const;
|
|
|
|
|
QString alias() const;
|
|
|
|
|
QStringList importPaths() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QUrl m_url;
|
|
|
|
|
QString m_fileName;
|
|
|
|
|
QString m_version;
|
|
|
|
|
QString m_alias;
|
|
|
|
|
QStringList m_importPathList;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
QDataStream &operator<<(QDataStream &out, const AddImportContainer &command);
|
|
|
|
|
QDataStream &operator>>(QDataStream &in, AddImportContainer &command);
|
|
|
|
|
|
2013-07-16 17:00:07 +02:00
|
|
|
QDebug operator <<(QDebug debug, const AddImportContainer &container);
|
|
|
|
|
|
2011-01-05 13:23:33 +01:00
|
|
|
} // namespace QmlDesigner
|
|
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(QmlDesigner::AddImportContainer)
|