File indexing completed on 2025-01-05 04:37:17

0001 /*
0002     SPDX-FileCopyrightText: 2005 Joris Guisson <joris.guisson@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #ifndef BTLOGMONITORINTERFACE_H
0007 #define BTLOGMONITORINTERFACE_H
0008 
0009 #include <ktorrent_export.h>
0010 
0011 class QString;
0012 
0013 namespace bt
0014 {
0015 /**
0016  * @author Joris Guisson
0017  * @brief Interface for classes who which to receive which log messages are printed
0018  *
0019  * This class is an interface for all classes which want to know,
0020  * what is written to the log.
0021  */
0022 class KTORRENT_EXPORT LogMonitorInterface
0023 {
0024 public:
0025     LogMonitorInterface();
0026     virtual ~LogMonitorInterface();
0027 
0028     /**
0029      * A line was written to the log file.
0030      * @param line The line
0031      */
0032     virtual void message(const QString &line, unsigned int arg) = 0;
0033 };
0034 
0035 }
0036 
0037 #endif