diff options
author | Timothy Pearson <[email protected]> | 2012-04-15 17:42:29 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-04-15 17:42:29 -0500 |
commit | 3ec8230e9f10645de684b5e03471e293481183d7 (patch) | |
tree | 0a9f15fcc62fb8a0e84eb8270ff30262274f3f4c /src/hardware.h | |
parent | 82806a03ea419871940eb3c03c792f3ea15734d9 (diff) | |
download | tdepowersave-3ec8230e9f10645de684b5e03471e293481183d7.tar.gz tdepowersave-3ec8230e9f10645de684b5e03471e293481183d7.zip |
Initial migration off of HAL
Diffstat (limited to 'src/hardware.h')
-rw-r--r-- | src/hardware.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/hardware.h b/src/hardware.h index a3cdc2e..f902499 100644 --- a/src/hardware.h +++ b/src/hardware.h @@ -45,6 +45,9 @@ #include <tqptrlist.h> #include <tqdict.h> +// TDE hardware library +#include <tdehardwaredevices.h> + // HAL Library #include <hal/libhal.h> @@ -125,6 +128,8 @@ class HardwareInfo : public TQObject{ private: + TDEHardwareDevices *m_hwdevices; + //! pointer to the dbusHAL connection class dbusHAL *dbus_HAL; @@ -315,12 +320,16 @@ private: bool setSchedPowerSavings( bool enable ); //! find and update a battery information - void updateBatteryValues (TQString udi, TQString property); + void updateBatteryValues (TDEGenericDevice* device); private slots: //! to fetch events from D-Bus and handle them void processMessage (msg_type type, TQString message, TQString value); + //! to fetch events from the TDE hardware library and handle them + void processHardwareChangedEvent (TDEGenericDevice*); + //! to fetch keypresses from the TDE hardware library and handle them + void processKeyPressEvent (unsigned int, TDEEventDevice*); //! to update \ref primaryBatteries void updatePrimaryBatteries (); //! to set \ref update_info_primBattery_changed @@ -331,9 +340,6 @@ private slots: void checkACAdapterState(); //! check if brightness change is possible void checkBrightness(); - - //! TQT_SLOT to handle the reconnect to D-Bus - void reconnectDBUS(); //! TQT_SLOT to forward signal about changed battery warning state void emitBatteryWARNState (int type, int state); @@ -423,14 +429,6 @@ public: * \li false: If D-Bus not terminated */ bool dbus_terminated; - //! boolean which tell us if the HAL daemon was terminated - /*! - * This boolean contains information if the HAL daemon terminated and - * we recieved "hal.terminate" - * \li true: If HAL terminated - * \li false: If HAL not terminated - */ - bool hal_terminated; // --> functions //! default constructor |