blob: a977f9d44d7ed01ef09a44d9313c84e8c8dce46f (
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
|
// 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 "gerritserver.h"
#include <utils/filepath.h>
QT_FORWARD_DECLARE_CLASS(QSettings)
namespace Gerrit {
namespace Internal {
class GerritParameters
{
public:
GerritParameters();
bool isValid() const;
bool equals(const GerritParameters &rhs) const;
void toSettings(QSettings *) const;
void saveQueries(QSettings *) const;
void fromSettings(const QSettings *);
void setPortFlagBySshType();
friend bool operator==(const GerritParameters &p1, const GerritParameters &p2)
{ return p1.equals(p2); }
friend bool operator!=(const GerritParameters &p1, const GerritParameters &p2)
{ return !p1.equals(p2); }
GerritServer server;
Utils::FilePath ssh;
Utils::FilePath curl;
QStringList savedQueries;
bool https = true;
QString portFlag;
};
} // namespace Internal
} // namespace Gerrit
|