diff options
Diffstat (limited to 'src/hardware.h')
-rw-r--r-- | src/hardware.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/hardware.h b/src/hardware.h index f28f1b4..4d64314 100644 --- a/src/hardware.h +++ b/src/hardware.h @@ -33,7 +33,7 @@ #ifndef _HARDWARE_H_ #define _HARDWARE_H_ -// QT - Header +// TQt - Header #include <tqstring.h> #include <tqobject.h> #include <tqvaluelist.h> @@ -130,7 +130,7 @@ typedef struct SuspendStates { class HardwareInfo : public TQObject{ - Q_OBJECT + TQ_OBJECT private: @@ -139,7 +139,7 @@ private: //! pointer to the dbusInterface connection class dbusInterface *dbus_iface; - //! hold udis of special hardware execpt batteries represented by a TQString pairs (name,udi) + //! hold udis of special hardware except batteries represented by a TQString pairs (name,udi) /*! * This directory handle udis for known fixed devices as e.g ac adapter. This devices are * currently available: @@ -157,6 +157,11 @@ private: */ TQStringList allUDIs; + /*! + * This TQStringList contains the unmonitored UDIs we alread know + */ + TQStringList unknownUDIs; + //! hold information if suspend/standby/pm actions are supported and allowed /*! * This dictionary contains information about the available pm capabilities and @@ -333,10 +338,10 @@ private slots: //! check if brightness change is possible void checkBrightness(); - //! TQT_SLOT to forward signal about changed battery warning state + //! TQ_SLOT to forward signal about changed battery warning state void emitBatteryWARNState (int type, int state); - //! TQT_SLOT to handle resume and forward a signal for resume + //! TQ_SLOT to handle resume and forward a signal for resume void handleResumeSignal (int result); //! to emit signal for power button @@ -348,11 +353,6 @@ private slots: //! to emit signal for session state void emitSessionActiveState(); - //! to handle signal for brightness Up buttons/keys - void brightnessUpPressed(); - //! to handle signal for brightness Down buttons/keys - void brightnessDownPressed(); - signals: //! signal for larger data changes void generalDataChanged(); @@ -459,8 +459,10 @@ public: // --> functions to call a TDE hardware library and trigger an action //! execute/trigger a suspend via the TDE hardware library bool suspend ( suspend_type suspend ); - //! set the brightness via TDE hardware library - bool setBrightness ( int level, int percent = -1); + //! set the brightness level via TDE hardware library + bool setBrightnessLevel(int level); + //! set the brightness percentage via TDE hardware library + bool setBrightnessPercentage(int percent); //! to set the brightness down bool setBrightnessDown(int percentageStep = -1); //! to set the brightness up |