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+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2013-05-08 17:52:01 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-05-08 17:52:01 +02:00
|
|
|
|
2015-02-26 13:22:35 +01:00
|
|
|
#include <texteditor/textdocument.h>
|
2013-05-08 17:52:01 +02:00
|
|
|
|
|
|
|
|
namespace Android {
|
|
|
|
|
namespace Internal {
|
2014-07-30 12:33:12 +02:00
|
|
|
|
2013-05-08 17:52:01 +02:00
|
|
|
class AndroidManifestEditorWidget;
|
|
|
|
|
|
2014-09-22 18:43:31 +02:00
|
|
|
class AndroidManifestDocument : public TextEditor::TextDocument
|
2013-05-08 17:52:01 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit AndroidManifestDocument(AndroidManifestEditorWidget *editorWidget);
|
2021-05-18 13:55:23 +02:00
|
|
|
bool save(QString *errorString, const Utils::FilePath &filePath,
|
2015-06-04 15:54:10 +02:00
|
|
|
bool autoSave = false) override;
|
2013-05-08 17:52:01 +02:00
|
|
|
|
2016-10-20 08:34:55 +00:00
|
|
|
bool isModified() const override;
|
2015-06-04 15:54:10 +02:00
|
|
|
bool isSaveAsAllowed() const override;
|
2013-05-08 17:52:01 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
AndroidManifestEditorWidget *m_editorWidget;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Android
|