summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdowndlg.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-02-04 02:46:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-02-04 02:46:39 +0100
commit1f3832a1368de214e95a38dd391367f8ae2456cb (patch)
treeac2c0e68c7a1393b124528054bd11df69e32381b /ksmserver/shutdowndlg.h
parent6275375b6aa17c6da78ab6486a8c930e9fd595f5 (diff)
downloadtdebase-1f3832a1368de214e95a38dd391367f8ae2456cb.tar.gz
tdebase-1f3832a1368de214e95a38dd391367f8ae2456cb.zip
Removed unnecessary dependency on dbus-tqt and dbus-1-tqt
Diffstat (limited to 'ksmserver/shutdowndlg.h')
-rw-r--r--ksmserver/shutdowndlg.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/ksmserver/shutdowndlg.h b/ksmserver/shutdowndlg.h
index d8f6b9d3b..a3864e616 100644
--- a/ksmserver/shutdowndlg.h
+++ b/ksmserver/shutdowndlg.h
@@ -34,20 +34,15 @@ class TDEAction;
#include <config.h>
-#ifdef WITH_UPOWER
- #include <tqdbusconnection.h>
-#else
- #warning test
+#ifdef COMPILE_HALBACKEND
#ifndef NO_QT3_DBUS_SUPPORT
/* We acknowledge the the dbus API is unstable */
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/connection.h>
#endif // NO_QT3_DBUS_SUPPORT
- #ifdef COMPILE_HALBACKEND
#include <hal/libhal.h>
- #endif
-#endif // WITH_UPOWER
+#endif // COMPILE_HALBACKEND
// The (singleton) widget that makes/fades the desktop gray.
class KSMShutdownFeedback : public TQWidget
@@ -153,14 +148,10 @@ private:
TQString m_bootOption;
TQPopupMenu *targets;
TQStringList rebootOptions;
-#ifdef WITH_UPOWER
- TQT_DBusConnection m_dbusConn;
-#else
#ifdef COMPILE_HALBACKEND
LibHalContext* m_halCtx;
DBusConnection *m_dbusConn;
#endif
-#endif // WITH_UPOWER
bool m_lockOnResume;
int* m_selection;
};