diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-02-10 15:25:45 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-02-10 15:25:45 +0900 |
commit | b6953843f5d84e806cdb8ecf50eb2ac58ee9e065 (patch) | |
tree | 2216ac092a2e9902ba295cd18e72b36bd5d41c8e /tdecore/tdehw/disksHelper.cpp | |
parent | 94515be234e926611355ec174f91b3abdf1cf13a (diff) | |
download | tdelibs-b6953843f5d84e806cdb8ecf50eb2ac58ee9e065.tar.gz tdelibs-b6953843f5d84e806cdb8ecf50eb2ac58ee9e065.zip |
Added back build options for UDISKS2, UDISKS and UDEVIL as requested by
some users.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 |