diff options
author | Michele Calgaro <[email protected]> | 2022-02-08 23:22:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-02-10 22:47:05 +0900 |
commit | 4112c3b48633dac80afbe219fd9f4ee85b2be3d3 (patch) | |
tree | a6ef7ba4f2e1f1e76b19884ba935983f6aebd8a3 /src/hardware.cpp | |
parent | 0120940b40e727c89441e9d46e3e05af8a2f0263 (diff) | |
download | tdepowersave-4112c3b48633dac80afbe219fd9f4ee85b2be3d3.tar.gz tdepowersave-4112c3b48633dac80afbe219fd9f4ee85b2be3d3.zip |
Removed HAL dependant code.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/hardware.cpp')
-rw-r--r-- | src/hardware.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/hardware.cpp b/src/hardware.cpp index f4efedd..86098db 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -24,6 +24,10 @@ * \date 2006-2007 */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + // include global header #include <fcntl.h> @@ -193,9 +197,6 @@ void HardwareInfo::processKeyPressEvent(unsigned int keycode, TDEEventDevice* ed // FIXME // How can I get specific button press/release information (instead of just "something happened to the button") from the TDE hardware library? - // TODO: Check if we really need to monitor this events. We get maybe also - // HAL_PROPERTY_CHANGED event for the key -// if (message.startsWith("ButtonPressed")) { kdDebug() << "ButtonPressed event from TDE HW library " << endl; if (((edevice->eventType() == TDEEventDeviceType::ACPIPowerButton) || (edevice->eventType() == TDEEventDeviceType::ACPIOtherInput)) && (keycode == KEY_POWER)) { @@ -212,9 +213,6 @@ void HardwareInfo::processKeyPressEvent(unsigned int keycode, TDEEventDevice* ed // else if (!brightness_in_hardware && value.endsWith("-down")) // TQTimer::singleShot(50, this, TQT_SLOT(brightnessDownPressed())); } -// } else { -// kdDebug() << "Unmonitored HAL_CONDITION: " << message << " : " << value << endl; -// } kdDebugFuncOut(trace); } @@ -1082,9 +1080,9 @@ bool HardwareInfo::setCPUFreqGovernor( const char *governor ) { // --> TDE hardware library method call (trigger actions) section -- END <--- // --> private helper functions/slots to forward/handle events -- START <-- -// need this functions to make events from HAL/D-Bus independent -// from QT event loop and to allow QT3 D-Bus bindings to get not -// blocked by normal KDE/QT (GUI) calls +// need this functions to make events independent +// from TQt event loop and to allow TQt3 D-Bus bindings to get not +// blocked by normal TDE/TQt (GUI) calls /*! * Function to emit the signal for the Power button. */ |