File indexing completed on 2024-04-28 16:45:05
0001 /* 0002 SPDX-FileCopyrightText: 2012 Alejandro Fiestas Olivares <afiestas@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef CONSOLE_H 0008 #define CONSOLE_H 0009 0010 #include <QObject> 0011 0012 #include <kscreen/output.h> 0013 0014 namespace KScreen 0015 { 0016 class Config; 0017 } 0018 class Console : public QObject 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit Console(const KScreen::ConfigPtr &config); 0023 ~Console() override; 0024 0025 public Q_SLOTS: 0026 void printConfig(); 0027 void printJSONConfig(); 0028 void printSerializations(); 0029 void monitor(); 0030 void monitorAndPrint(); 0031 0032 private: 0033 KScreen::ConfigPtr m_config; 0034 }; 0035 0036 #endif