add more spacing
[personal-kdebase.git] / workspace / powerdevil / kcmodule / GeneralPage.h
bloba961f147f4f0f57bb4cc4ccf467ab4c5a34b54c0
1 /***************************************************************************
2 * Copyright (C) 2008 by Dario Freddi <drf@kdemod.ath.cx> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18 ***************************************************************************/
20 #ifndef GENERALPAGE_H
21 #define GENERALPAGE_H
23 #include <QWidget>
25 #include "ui_generalPage.h"
27 class GeneralPage : public QWidget, private Ui_generalPage
29 Q_OBJECT
31 public:
32 GeneralPage(QWidget *parent = 0);
33 ~GeneralPage();
34 void fillUi();
36 void load();
37 void save();
39 signals:
40 void changed(bool ch);
42 private slots:
43 void emitChanged();
45 void enableBoxes();
46 void enableIssue(bool enable);
48 void configureNotifications();
50 void reloadAvailableProfiles();
52 private:
53 enum IdleAction {
54 None = 0,
55 Standby = 1,
56 S2Ram = 2,
57 S2Disk = 4,
58 Shutdown = 8,
59 Lock = 16,
60 ShutdownDialog = 32
63 KSharedConfig::Ptr m_profilesConfig;
64 bool m_profileEdited;
67 #endif /* GENERALPAGE_H */