File indexing completed on 2024-04-21 03:42:56

0001 /*
0002     SPDX-FileCopyrightText: 2017 Jasem Mutlaq <mutlaqja@ikarustech.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "ui_opslogs.h"
0010 
0011 class KConfigDialog;
0012 
0013 namespace Ekos
0014 {
0015 /**
0016  * @class OpsLogs
0017  *
0018  * Enables the user to set logging options
0019  *
0020  * @author Jasem Mutlaq
0021  */
0022 class OpsLogs : public QFrame, public Ui::OpsLogs
0023 {
0024     Q_OBJECT
0025 
0026   public:
0027     explicit OpsLogs();
0028     uint16_t getINDIDebugInterface() { return m_INDIDebugInterface; }
0029     bool isINDISettingsChanged() { return m_SettingsChanged; }
0030 
0031 
0032   private slots:
0033     void refreshInterface();
0034     void slotToggleVerbosityOptions();
0035     void slotToggleOutputOptions();
0036     void slotClearLogs();
0037 
0038   private:
0039     qint64 getDirSize(const QString &dirPath);
0040 
0041     uint16_t m_INDIDebugInterface = { 0 };
0042     bool m_SettingsChanged = { false };
0043 };
0044 
0045 }