aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/createandroidmanifestwizard.h
blob: 1436a58905659a8aae892d5476370f01b57e3a61 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
// 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

#pragma once

#include "android_global.h"

#include <utils/fileutils.h>
#include <utils/wizard.h>

namespace ProjectExplorer { class BuildSystem; }

namespace Android {
namespace Internal {

class CreateAndroidManifestWizard : public Utils::Wizard
{
    Q_DECLARE_TR_FUNCTIONS(Android::CreateAndroidManifestWizard)

public:
    CreateAndroidManifestWizard(ProjectExplorer::BuildSystem *buildSystem);

    QString buildKey() const;
    void setBuildKey(const QString &buildKey);

    void accept();
    bool copyGradle();

    void setDirectory(const Utils::FilePath &directory);
    void setCopyGradle(bool copy);

    ProjectExplorer::BuildSystem *buildSystem() const;

private:
    void createAndroidManifestFile();
    void createAndroidTemplateFiles();
    ProjectExplorer::BuildSystem *m_buildSystem;
    QString m_buildKey;
    Utils::FilePath m_directory;
    bool m_copyGradle;
};

} // namespace Internal
} // namespace Android