[utilities/kaichat] src/core: Remove unused class

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c736e8bf8ac93486850e1a202e4617bb053beb6d by Laurent Montel.
Committed on 16/08/2026 at 05:25.
Pushed by mlaurent into branch 'master'.

Remove unused class

D  +0    -56   src/core/kaichatexportchatasbasejob.cpp
D  +0    -40   src/core/kaichatexportchatasbasejob.h

https://invent.kde.org/utilities/kaichat/-/commit/c736e8bf8ac93486850e1a202e4617bb053beb6d

diff --git a/src/core/kaichatexportchatasbasejob.cpp b/src/core/kaichatexportchatasbasejob.cpp
deleted file mode 100644
index ea06f61..0000000
--- a/src/core/kaichatexportchatasbasejob.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2025-2026 Laurent Montel <[email protected]>
- *
- * SPDX-License-Identifier: LGPL-2.0-or-later
- */
-
-#include "kaichatexportchatasbasejob.h"
-#include "kaichat_core_debug.h"
-
-KAIChatExportChatAsBaseJob::KAIChatExportChatAsBaseJob(QObject *parent)
-    : QObject{parent}
-{
-}
-
-KAIChatExportChatAsBaseJob::~KAIChatExportChatAsBaseJob() = default;
-
-KAIChatExportChatAsBaseJob::ExportChatInfo KAIChatExportChatAsBaseJob::info() const
-{
-    return mInfo;
-}
-
-void KAIChatExportChatAsBaseJob::setInfo(const ExportChatInfo &newInfo)
-{
-    mInfo = newInfo;
-}
-
-bool KAIChatExportChatAsBaseJob::canStart() const
-{
-    return mInfo.isValid();
-}
-
-void KAIChatExportChatAsBaseJob::start()
-{
-    if (!canStart()) {
-        qCWarning(KAICHAT_CORE_LOG) << " Impossible to start job";
-        deleteLater();
-        return;
-    }
-    exportChat();
-}
-
-QDebug operator<<(QDebug d, const KAIChatExportChatAsBaseJob::ExportChatInfo &t)
-{
-    d.space() << "filename:" << t.filename;
-    d.space() << "chatTitle:" << t.chatTitle;
-    d.space() << "listMessages:" << t.listMessages;
-    return d;
-}
-
-bool KAIChatExportChatAsBaseJob::ExportChatInfo::isValid() const
-{
-    // TODO add more
-    return !filename.isEmpty();
-}
-
-#include "moc_kaichatexportchatasbasejob.cpp"
diff --git a/src/core/kaichatexportchatasbasejob.h b/src/core/kaichatexportchatasbasejob.h
deleted file mode 100644
index 14e8149..0000000
--- a/src/core/kaichatexportchatasbasejob.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2025-2026 Laurent Montel <[email protected]>
- *
- * SPDX-License-Identifier: LGPL-2.0-or-later
- */
-#pragma once
-#include "libkaichatcore_export.h"
-#include <QDebug>
-#include <QObject>
-#include <TextAutoGenerateText/TextAutoGenerateMessage>
-
-class LIBKAICHATCORE_EXPORT KAIChatExportChatAsBaseJob : public QObject
-{
-    Q_OBJECT
-public:
-    struct LIBKAICHATCORE_EXPORT ExportChatInfo {
-        QString filename;
-        QString chatTitle;
-        QList<TextAutoGenerateText::TextAutoGenerateMessage> listMessages;
-        [[nodiscard]] bool isValid() const;
-    };
-
-    explicit KAIChatExportChatAsBaseJob(QObject *parent = nullptr);
-    ~KAIChatExportChatAsBaseJob() override;
-
-    [[nodiscard]] ExportChatInfo info() const;
-    void setInfo(const ExportChatInfo &newInfo);
-
-    [[nodiscard]] bool canStart() const;
-    void start();
-
-Q_SIGNALS:
-    void exportDone();
-
-protected:
-    virtual void exportChat() = 0;
-    ExportChatInfo mInfo;
-};
-Q_DECLARE_TYPEINFO(KAIChatExportChatAsBaseJob::ExportChatInfo, Q_RELOCATABLE_TYPE);
-LIBKAICHATCORE_EXPORT QDebug operator<<(QDebug d, const KAIChatExportChatAsBaseJob::ExportChatInfo &t);
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.