|
|
@ -34,20 +34,15 @@ class TDEAction;
|
|
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_UPOWER
|
|
|
|
#ifdef COMPILE_HALBACKEND
|
|
|
|
#include <tqdbusconnection.h>
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#warning test
|
|
|
|
|
|
|
|
#ifndef NO_QT3_DBUS_SUPPORT
|
|
|
|
#ifndef NO_QT3_DBUS_SUPPORT
|
|
|
|
/* We acknowledge the the dbus API is unstable */
|
|
|
|
/* We acknowledge the the dbus API is unstable */
|
|
|
|
#define DBUS_API_SUBJECT_TO_CHANGE
|
|
|
|
#define DBUS_API_SUBJECT_TO_CHANGE
|
|
|
|
#include <dbus/connection.h>
|
|
|
|
#include <dbus/connection.h>
|
|
|
|
#endif // NO_QT3_DBUS_SUPPORT
|
|
|
|
#endif // NO_QT3_DBUS_SUPPORT
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef COMPILE_HALBACKEND
|
|
|
|
|
|
|
|
#include <hal/libhal.h>
|
|
|
|
#include <hal/libhal.h>
|
|
|
|
#endif
|
|
|
|
#endif // COMPILE_HALBACKEND
|
|
|
|
#endif // WITH_UPOWER
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The (singleton) widget that makes/fades the desktop gray.
|
|
|
|
// The (singleton) widget that makes/fades the desktop gray.
|
|
|
|
class KSMShutdownFeedback : public TQWidget
|
|
|
|
class KSMShutdownFeedback : public TQWidget
|
|
|
@ -153,14 +148,10 @@ private:
|
|
|
|
TQString m_bootOption;
|
|
|
|
TQString m_bootOption;
|
|
|
|
TQPopupMenu *targets;
|
|
|
|
TQPopupMenu *targets;
|
|
|
|
TQStringList rebootOptions;
|
|
|
|
TQStringList rebootOptions;
|
|
|
|
#ifdef WITH_UPOWER
|
|
|
|
|
|
|
|
TQT_DBusConnection m_dbusConn;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifdef COMPILE_HALBACKEND
|
|
|
|
#ifdef COMPILE_HALBACKEND
|
|
|
|
LibHalContext* m_halCtx;
|
|
|
|
LibHalContext* m_halCtx;
|
|
|
|
DBusConnection *m_dbusConn;
|
|
|
|
DBusConnection *m_dbusConn;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif // WITH_UPOWER
|
|
|
|
|
|
|
|
bool m_lockOnResume;
|
|
|
|
bool m_lockOnResume;
|
|
|
|
int* m_selection;
|
|
|
|
int* m_selection;
|
|
|
|
};
|
|
|
|
};
|
|
|
|