File indexing completed on 2024-04-21 16:35:02

0001 /*
0002     SPDX-FileCopyrightText: 2005-2006 Tom Albers <toma@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef SETUPGENERAL_H
0008 #define SETUPGENERAL_H
0009 
0010 #include <qwidget.h>
0011 
0012 class SetupGeneralPriv;
0013 
0014 /**
0015  * @class SetupGeneral
0016  * These contain the general settings of RSIBreak
0017  * @author Tom Albers <toma.org>
0018  */
0019 
0020 class SetupGeneral : public QWidget
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     /**
0026      * Constructor
0027      * @param parent Parent Widget
0028      */
0029     explicit SetupGeneral(QWidget *parent = nullptr);
0030 
0031     /**
0032      * Destructor
0033      */
0034     ~SetupGeneral();
0035 
0036     /**
0037      * Call this if you want the settings saved from this page.
0038      */
0039     void applySettings();
0040 
0041     bool useIdleTimer() const;
0042 
0043 signals:
0044     void useIdleTimerChanged(bool useIdleTimer);
0045 
0046 private:
0047     void readSettings();
0048 
0049     SetupGeneralPriv *d;
0050 };
0051 
0052 #endif /* SETUPGENERAL_H */