aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fossil/wizard/fossiljsextension.h
blob: 0947693d5817ec317a7f3d90cea0364ca2e0bdbf (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
// Copyright (c) 2018 Artur Shepilko
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <vcsbase/wizard/vcsjsextension.h>

#include <QStringList>
#include <QMap>
#include <QObject>

namespace Fossil {
namespace Internal {

class FossilJsExtension : public QObject
{
    Q_OBJECT

public:
    static QMap<QString, QString> parseArgOptions(const QStringList &args);

    FossilJsExtension();
    ~FossilJsExtension();

    Q_INVOKABLE bool isConfigured() const;
    Q_INVOKABLE QString displayName() const;
    Q_INVOKABLE QString defaultAdminUser() const;
    Q_INVOKABLE QString defaultSslIdentityFile() const;
    Q_INVOKABLE QString defaultLocalRepoPath() const;
    Q_INVOKABLE bool defaultDisableAutosync() const;
};

} // namespace Internal
} // namespace Fossil