From 84e3f9e06ba1b6a050e838ca55970f018e81b749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 7 Oct 2014 01:00:47 +0200 Subject: Allow conditional build of tdehwlib --- tdecore/kinstance.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tdecore/kinstance.h') diff --git a/tdecore/kinstance.h b/tdecore/kinstance.h index be60c943c..e0fdf73de 100644 --- a/tdecore/kinstance.h +++ b/tdecore/kinstance.h @@ -18,6 +18,9 @@ #ifndef _KINSTANCE_H #define _KINSTANCE_H +#include +#include "tdelibs_export.h" + class TDEStandardDirs; class TDEAboutData; class TDEConfig; @@ -27,11 +30,10 @@ class TQFont; class TDEInstancePrivate; class KMimeSourceFactory; class TDESharedConfig; +#ifdef __TDE_HAVE_TDEHWLIB class TDEHardwareDevices; class TDEGlobalNetworkManager; - -#include -#include "tdelibs_export.h" +#endif /** @@ -110,6 +112,7 @@ class TDECORE_EXPORT TDEInstance */ TDEIconLoader *iconLoader() const; +#ifdef __TDE_HAVE_TDEHWLIB /** * Returns a TDEHardwareDevices object. * @return the hardwaredevices object. @@ -121,6 +124,7 @@ class TDECORE_EXPORT TDEInstance * @return the networkmanager object. */ TDEGlobalNetworkManager *networkManager() const; +#endif /** * Re-allocate the global iconloader. @@ -168,8 +172,10 @@ private: mutable TDEConfig *_config; mutable TDEIconLoader *_iconLoader; +#ifdef __TDE_HAVE_TDEHWLIB mutable TDEHardwareDevices *_hardwaredevices; mutable TDEGlobalNetworkManager *_networkmanager; +#endif mutable void *_placeholder; TQCString _name; -- cgit v1.2.1