File indexing completed on 2024-05-12 05:25:24
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 class LogInfo : public QObject 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit LogInfo(QObject *parent = nullptr); 0016 ~LogInfo() override; 0017 0018 void addInfoLogEntry(const QString &log); 0019 void addErrorLogEntry(const QString &log); 0020 void addTitleLogEntry(const QString &log); 0021 void addEndLineLogEntry(); 0022 0023 private: 0024 enum LogType { AddEndLine = 0, AddInfo, AddError, AddTitle }; 0025 void addLogLine(const QString &message, LogType type); 0026 };