forked from qt-creator/qt-creator
This adds a parser for the JSON response of the extension rest API. The data, combined with the PluginSpecs of local plugins, serve as data model for the extension mode view. A couple of "packs" are provided as test data. Change-Id: I5ce961a9de9bf54ca745e5e5a5e584b1698e6ac6 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
22 lines
598 B
C++
22 lines
598 B
C++
// Copyright (C) 2023 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#include <coreplugin/welcomepagehelper.h>
|
|
|
|
namespace ExtensionManager::Internal {
|
|
|
|
class ExtensionManagerWidget final : public Core::ResizeSignallingWidget
|
|
{
|
|
public:
|
|
explicit ExtensionManagerWidget(QWidget *parent = nullptr);
|
|
~ExtensionManagerWidget();
|
|
|
|
private:
|
|
void updateView(const QModelIndex ¤t);
|
|
void fetchAndInstallPlugin(const QUrl &url);
|
|
|
|
class ExtensionManagerWidgetPrivate *d = nullptr;
|
|
};
|
|
|
|
} // ExtensionManager::Internal
|