1 /* 2 SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #pragma once 8 9 /** 10 * Cups Log Mode Identifier 11 */ 12 #define CUPS_LOG_MODE_ID "cupsLogMode" 13 14 /** 15 * Cups Log Icon 16 */ 17 #define CUPS_MODE_ICON "preferences-devices-printer" 18 19 #include <QList> 20 21 #include "logFile.h" 22 23 #include "logMode.h" 24 25 class CupsConfiguration; 26 class CupsConfigurationWidget; 27 28 class CupsLogMode : public LogMode 29 { 30 Q_OBJECT 31 32 public: 33 explicit CupsLogMode(QSharedPointer<CupsConfiguration> &cupsConfiguration, CupsConfigurationWidget *cupsConfigurationWidget); 34 35 ~CupsLogMode() override; 36 37 Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; 38 39 QVector<LogFile> createLogFiles() override; 40 }; 41 42