diff options
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. */ |