forked from qt-creator/qt-creator
Allows to fetch further information of an issue and display it inside the output pane. Change-Id: I94ec27b9c060dca9f9523d763b8628a2fce7ca59 Reviewed-by: David Schulz <david.schulz@qt.io>
41 lines
815 B
C++
41 lines
815 B
C++
// Copyright (C) 2022 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
|
|
|
|
#pragma once
|
|
|
|
#include <utils/qtcprocess.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::QtcProcess m_process;
|
|
};
|
|
|
|
} // Axivion::Internal
|