File indexing completed on 2024-05-05 05:30:23

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