blob: 11af5bbd87b0384bb05cd04590e50ce1d972d0c3 (
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
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/process.h>
#include <QObject>
namespace Axivion::Internal {
class AxivionQuery
{
public:
enum QueryType {NoQuery, DashboardInfo, ProjectInfo, IssuesForFileList, RuleInfo};
explicit AxivionQuery(QueryType type, const QStringList ¶meters = {});
QString toString() const;
private:
QueryType m_type = NoQuery;
QStringList m_parameters;
};
class AxivionQueryRunner : public QObject
{
Q_OBJECT
public:
explicit AxivionQueryRunner(const AxivionQuery &query, QObject *parent = nullptr);
void start();
signals:
void finished();
void resultRetrieved(const QByteArray &json);
private:
Utils::Process m_process;
};
} // Axivion::Internal
|