You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* File: powermanagementd.h
|
|
|
|
* Author: Christian Surlykke
|
|
|
|
*
|
|
|
|
* Created on 9. februar 2014, 16:15
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef POWERMANAGEMENTD_H
|
|
|
|
#define POWERMANAGEMENTD_H
|
|
|
|
|
|
|
|
#include <LXQt/Notification>
|
|
|
|
|
|
|
|
#include "../config/powermanagementsettings.h"
|
|
|
|
|
|
|
|
class BatteryWatcher;
|
|
|
|
class LidWatcher;
|
|
|
|
class IdlenessWatcher;
|
|
|
|
|
|
|
|
class PowerManagementd : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
PowerManagementd();
|
|
|
|
virtual ~PowerManagementd();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void settingsChanged();
|
|
|
|
void runConfigure();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void performRunCheck();
|
|
|
|
|
|
|
|
BatteryWatcher* mBatterywatcherd;
|
|
|
|
LidWatcher* mLidwatcherd;
|
|
|
|
IdlenessWatcher* mIdlenesswatcherd;
|
|
|
|
|
|
|
|
PowerManagementSettings mSettings;
|
|
|
|
LXQt::Notification mNotification;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* POWERMANAGEMENTD_H */
|
|
|
|
|