add more spacing
[personal-kdebase.git] / workspace / plasma / runners / powerdevil / PowerDevilRunner.h
blob870c19dffc20ded547d0cb0221b58de78e7910f1
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 POWERDEVILRUNNER_H
21 #define POWERDEVILRUNNER_H
23 #include <Plasma/AbstractRunner>
24 #include <QDBusConnection>
26 class PowerDevilRunner : public Plasma::AbstractRunner
28 Q_OBJECT
30 public:
31 PowerDevilRunner( QObject *parent, const QVariantList &args );
32 ~PowerDevilRunner();
34 void match( Plasma::RunnerContext &context );
35 void run( const Plasma::RunnerContext &context, const Plasma::QueryMatch &action );
37 private slots:
38 void updateStatus();
40 private:
41 void initUpdateTriggers();
43 QStringList m_words;
44 QDBusConnection m_dbus;
46 QStringList m_supportedGovernors;
47 QHash<QString, int> m_governorData;
48 QStringList m_availableProfiles;
49 QHash<QString, QString> m_profileIcon;
50 QStringList m_supportedSchemes;
51 QStringList m_suspendMethods;
52 QHash<QString, int> m_suspendData;
55 K_EXPORT_PLASMA_RUNNER( powerdevil, PowerDevilRunner )
57 #endif