summaryrefslogtreecommitdiffstats
path: root/tdecore/kinstance.h
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-07 01:00:47 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-07 01:34:09 +0200
commit84e3f9e06ba1b6a050e838ca55970f018e81b749 (patch)
treec0b5c29503c24bba5339eab5191a692ddbb674dc /tdecore/kinstance.h
parente255a8ca6387cc1f100beffe39f889328e8f2a41 (diff)
downloadtdelibs-84e3f9e06ba1b6a050e838ca55970f018e81b749.tar.gz
tdelibs-84e3f9e06ba1b6a050e838ca55970f018e81b749.zip
Allow conditional build of tdehwlib
Diffstat (limited to 'tdecore/kinstance.h')
-rw-r--r--tdecore/kinstance.h12
1 files changed, 9 insertions, 3 deletions
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 <tqstring.h>
+#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 <tqstring.h>
-#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;