mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-21 10:40:57 -04:00
refactor: Restructure project into sources/tests layout and dissolve PluginLLMCore
This commit is contained in:
38
sources/settings/McpSettings.hpp
Normal file
38
sources/settings/McpSettings.hpp
Normal file
@@ -0,0 +1,38 @@
|
||||
// Copyright (C) 2024-2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <utils/aspects.h>
|
||||
|
||||
#include "ButtonAspect.hpp"
|
||||
#include "McpClientsListAspect.hpp"
|
||||
|
||||
namespace QodeAssist::Settings {
|
||||
|
||||
class McpSettings : public Utils::AspectContainer
|
||||
{
|
||||
public:
|
||||
McpSettings();
|
||||
|
||||
ButtonAspect resetToDefaults{this};
|
||||
|
||||
Utils::BoolAspect enableMcpServer{this};
|
||||
Utils::IntegerAspect mcpServerPort{this};
|
||||
|
||||
ButtonAspect showConnectionInstructions{this};
|
||||
|
||||
Utils::BoolAspect enableMcpClients{this};
|
||||
Utils::StringAspect mcpClientExtraPaths{this};
|
||||
McpClientsListAspect mcpClientsList{this};
|
||||
|
||||
private:
|
||||
void setupConnections();
|
||||
void resetSettingsToDefaults();
|
||||
void showConnectionInstructionsDialog();
|
||||
};
|
||||
|
||||
McpSettings &mcpSettings();
|
||||
|
||||
} // namespace QodeAssist::Settings
|
||||
Reference in New Issue
Block a user