diff options
Diffstat (limited to 'tdecore/tdehw/disksHelper.cpp')
-rw-r--r-- | tdecore/tdehw/disksHelper.cpp | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/tdecore/tdehw/disksHelper.cpp b/tdecore/tdehw/disksHelper.cpp index 0eab2d28c..2589e5053 100644 --- a/tdecore/tdehw/disksHelper.cpp +++ b/tdecore/tdehw/disksHelper.cpp @@ -20,16 +20,21 @@ #include "disksHelper.h" #include "tdelocale.h" #include "tdestoragedevice.h" -#include <tqdbusdata.h> -#include <tqdbusmessage.h> -#include <tqdbusproxy.h> -#include <tqdbusvariant.h> -#include <tqdbusconnection.h> -#include <tqdbuserror.h> -#include <tqdbusdatamap.h> -#include <tqdbusobjectpath.h> -#include "tqdbusdatalist.h" +#if defined(WITH_UDISKS) || defined(WITH_UDISKS2) + #include <tqdbusdata.h> + #include <tqdbusmessage.h> + #include <tqdbusproxy.h> + #include <tqdbusvariant.h> + #include <tqdbusconnection.h> + #include <tqdbuserror.h> + #include <tqdbusdatamap.h> + #include <tqdbusobjectpath.h> + #include "tqdbusdatalist.h" +#endif + + +#ifdef WITH_UDISKS //------------------------------- // UDisks //------------------------------- @@ -148,7 +153,10 @@ TQStringVariantMap UDisksUnmountDrive(TQString deviceNode, TQStringList unmountO } return result; } +#endif + +#ifdef WITH_UDISKS2 //------------------------------- // UDisks2 //------------------------------- @@ -310,5 +318,4 @@ TQStringVariantMap UDisks2UnmountDrive(TQString deviceNode, TQString unmountOpti } return result; } - - +#endif |