SolidModules
halsuspendjob.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef HALSUSPENDJOB_H
00021 #define HALSUSPENDJOB_H
00022
00023 #include <kjob.h>
00024 #include <QtDBus/QDBusInterface>
00025 #include <QtDBus/QDBusMessage>
00026
00027 #include "halpower.h"
00028
00029 class HalSuspendJob : public KJob
00030 {
00031 Q_OBJECT
00032 public:
00033 HalSuspendJob(QDBusInterface &powermanagement, Solid::Control::PowerManager::SuspendMethod method,
00034 Solid::Control::PowerManager::SuspendMethods supported);
00035 virtual ~HalSuspendJob();
00036
00037 void start();
00038 void kill(bool quietly);
00039
00040 private Q_SLOTS:
00041 void doStart();
00042 void resumeDone(const QDBusMessage &reply);
00043
00044 private:
00045 QDBusInterface &m_halPowerManagement;
00046 QString m_dbusMethod;
00047 int m_dbusParam;
00048 };
00049
00050 #endif