[libraries/ktextaddons] textautogeneratetextmcpprotocol/plugins/server/streamanblehttp: Add server stream

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a9028b27772675e49bf793f3d05de7fad4889248 by Laurent Montel.
Committed on 24/07/2026 at 11:22.
Pushed by mlaurent into branch 'master'.

Add server stream

A  +25   -0    textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.cpp     [License: GPL(v2.0+)]
A  +23   -0    textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.h     [License: GPL(v2.0+)]

https://invent.kde.org/libraries/ktextaddons/-/commit/a9028b27772675e49bf793f3d05de7fad4889248

diff --git a/textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.cpp b/textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.cpp
new file mode 100644
index 000000000..02a05b308
--- /dev/null
+++ b/textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.cpp
@@ -0,0 +1,25 @@
+/*
+  SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+  SPDX-License-Identifier: GPL-2.0-or-later
+*/
+#include "mcpserverstreamhttp.h"
+
+McpServerStreamHttp::McpServerStreamHttp(McpServerStreamHttpPluginInterface *interface, QObject *parent)
+    : QObject{parent}
+    , mInterface(interface)
+{
+}
+
+McpServerStreamHttp::~McpServerStreamHttp() = default;
+
+void McpServerStreamHttp::connection()
+{
+    // TODO
+}
+
+void McpServerStreamHttp::send(const QJsonObject &obj)
+{
+    // TODO
+}
+#include "moc_mcpserverstreamhttp.cpp"
diff --git a/textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.h b/textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.h
new file mode 100644
index 000000000..e257f3896
--- /dev/null
+++ b/textautogeneratetextmcpprotocol/plugins/server/streamanblehttp/mcpserverstreamhttp.h
@@ -0,0 +1,23 @@
+/*
+  SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+  SPDX-License-Identifier: GPL-2.0-or-later
+*/
+#pragma once
+
+#include <QObject>
+class McpServerStreamHttpPluginInterface;
+class McpServerStreamHttp : public QObject
+{
+    Q_OBJECT
+public:
+    explicit McpServerStreamHttp(McpServerStreamHttpPluginInterface *interface, QObject *parent = nullptr);
+    ~McpServerStreamHttp() override;
+
+    void connection();
+
+    void send(const QJsonObject &obj);
+
+private:
+    McpServerStreamHttpPluginInterface *const mInterface;
+};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.