aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidmanifestdocument.h
blob: 2e5735da8582ed02f9c4c2f60e37ffb9a1ed5d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <texteditor/textdocument.h>

namespace Android {
namespace Internal {

class AndroidManifestEditorWidget;

class AndroidManifestDocument : public TextEditor::TextDocument
{
public:
    explicit AndroidManifestDocument(AndroidManifestEditorWidget *editorWidget);

    bool isModified() const override;
    bool isSaveAsAllowed() const override;

protected:
    bool saveImpl(QString *errorString,
                  const Utils::FilePath &filePath,
                  bool autoSave = false) override;

private:
    AndroidManifestEditorWidget *m_editorWidget;
};

} // namespace Internal
} // namespace Android