File indexing completed on 2024-05-19 16:31:12

0001 /******************************************************************
0002  *
0003  * kdbgwin - Helper application for DrKonqi
0004  *
0005  * This file is part of the KDE project
0006  *
0007  * SPDX-FileCopyrightText: 2010 Ilie Halip <lupuroshu@gmail.com>
0008  *
0009  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0010  *****************************************************************/
0011 
0012 #pragma once
0013 
0014 #include "common.h"
0015 #include <QTextStream>
0016 
0017 /**
0018  * \brief Basic outputter.
0019  *
0020  * This class will output the information from a backtrace generator.
0021  */
0022 class Outputter : public QObject
0023 {
0024     Q_OBJECT
0025 
0026 protected:
0027     QTextStream stream;
0028 
0029 public:
0030     Outputter();
0031 
0032 public Q_SLOTS:
0033     /// The slot that will be called for each line emitted by the generator. This method
0034     /// sends the string to stdout and qCDebug(DRKONQI_LOG)
0035     void OnDebugLine(const QString &);
0036 };