diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-03 13:42:15 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-03 14:41:15 +0900 |
commit | 225d7c5ae08093755f31e9dd038e19537d493c5c (patch) | |
tree | 56e9577604ba30c889b0006ae3acf52c175e268d /libk3bdevice/k3bhalconnection.h | |
parent | 76363b112800c04c22bc339352f976156f6074b4 (diff) | |
download | k3b-225d7c5a.tar.gz k3b-225d7c5a.zip |
Fixed building without tdehw and without HAL. This resolves bug 2495.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cc51bb4eb48522433b14b1e584dd5dbdb9a0969e)
Diffstat (limited to 'libk3bdevice/k3bhalconnection.h')
-rw-r--r-- | libk3bdevice/k3bhalconnection.h | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/libk3bdevice/k3bhalconnection.h b/libk3bdevice/k3bhalconnection.h index 232669e..351a1ca 100644 --- a/libk3bdevice/k3bhalconnection.h +++ b/libk3bdevice/k3bhalconnection.h @@ -25,12 +25,16 @@ #include <tqobject.h> #include <tqmap.h> #include <tqstringlist.h> +#include <kdemacros.h> #ifdef HAVE_HAL class DBusConnection; -#else // HAVE_HAL +#endif +#ifdef __TDE_HAVE_TDEHWLIB class TDEGenericDevice; -#endif // HAVE_HAL +#else +#define TDEGenericDevice void +#endif namespace K3bDevice { @@ -165,7 +169,7 @@ namespace K3bDevice { * \see ErrorCode */ int unmount( Device*, - const TQStringList& options = TQStringList() ); + const TQStringList& options = TQStringList() ); /** * Unmounts a device via HAL @@ -179,25 +183,23 @@ namespace K3bDevice { * \see ErrorCode */ int eject( Device*, - const TQStringList& options = TQStringList() ); + const TQStringList& options = TQStringList() ); -#ifndef HAVE_HAL -private slots: - /** - * \internal - */ - void AddDeviceHandler(TDEGenericDevice*); - - /** - * \internal - */ - void RemoveDeviceHandler(TDEGenericDevice*); - - /** - * \internal - */ - void ModifyDeviceHandler(TDEGenericDevice*); -#endif // HAVE_HAL + private slots: + /** + * \internal + */ + void AddDeviceHandler(TDEGenericDevice*); + + /** + * \internal + */ + void RemoveDeviceHandler(TDEGenericDevice*); + + /** + * \internal + */ + void ModifyDeviceHandler(TDEGenericDevice*); signals: /** |