summaryrefslogtreecommitdiffstats
path: root/ksmserver/shutdowndlg.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-08 02:02:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-08 02:02:57 +0000
commit5a63d5945b2f886322c3ed6f5561822bcb1ed6fa (patch)
tree6de1044646a3920cef778dadd48cfaefee34b2c6 /ksmserver/shutdowndlg.h
parent21fc43f2d4b21845480549053f92293fe1f41ce3 (diff)
downloadtdebase-5a63d5945b2f886322c3ed6f5561822bcb1ed6fa.tar.gz
tdebase-5a63d5945b2f886322c3ed6f5561822bcb1ed6fa.zip
Allow kdebase to build with HAL disabled
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1252060 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksmserver/shutdowndlg.h')
-rw-r--r--ksmserver/shutdowndlg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ksmserver/shutdowndlg.h b/ksmserver/shutdowndlg.h
index e6bcfdab2..0db328a79 100644
--- a/ksmserver/shutdowndlg.h
+++ b/ksmserver/shutdowndlg.h
@@ -26,18 +26,21 @@ class TQPainter;
class TQString;
class KAction;
-
#include "timed.h"
#include <kapplication.h>
#include <kpixmapio.h>
+#include <config.h>
+
#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
// The (singleton) widget that makes/fades the desktop gray.
class KSMShutdownFeedback : public TQWidget
@@ -128,8 +131,10 @@ private:
TQString m_bootOption;
TQPopupMenu *targets;
TQStringList rebootOptions;
+#ifdef COMPILE_HALBACKEND
LibHalContext* m_halCtx;
DBusConnection *m_dbusConn;
+#endif
bool m_lockOnResume;
};