wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ConnectionHandler.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4#pragma once
5
7
16{
17public:
18 explicit ConnectionHandler(MainWindow *mainWindow, const MCPValidator *validator);
19
20 QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override;
21
22private:
23 QJsonObject handleConnectElements(const QJsonObject &params, const QJsonValue &requestId);
24 QJsonObject handleDisconnectElements(const QJsonObject &params, const QJsonValue &requestId);
25 QJsonObject handleListConnections(const QJsonObject &params, const QJsonValue &requestId);
26 QJsonObject handleSplitConnection(const QJsonObject &params, const QJsonValue &requestId);
27
34 bool resolvePort(const QJsonObject &params, const QString &prefix,
35 GraphicElement *element, bool isOutput,
36 int &portIndex, QString &errorMsg);
37};
BaseHandler(MainWindow *mainWindow, const MCPValidator *validator)
QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override
ConnectionHandler(MainWindow *mainWindow, const MCPValidator *validator)
Abstract base class for all graphical circuit elements in wiRedPanda.
JSON Schema validator for MCP commands and responses using native json-schema-validator.
The top-level application window hosting the tab bar, menus, element palette, and editor.
Definition MainWindow.h:47