diff options
author | Timothy Pearson <[email protected]> | 2013-03-30 20:24:24 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-03-30 20:24:24 -0500 |
commit | 983ade75ae2f488477bbb796f52ce2135c202dfe (patch) | |
tree | 32fd2ad28d871b6f5f636ae5659391eac56665b5 /libk3bdevice/k3bhalconnection.h | |
parent | 39728f666128bb7d8ab24c1e3835cf0ac3c1f092 (diff) | |
download | k3b-983ade75ae2f488477bbb796f52ce2135c202dfe.tar.gz k3b-983ade75ae2f488477bbb796f52ce2135c202dfe.zip |
Use TDE hardware library instead of HAL when HAL is not available
Clean up spurious build files
Diffstat (limited to 'libk3bdevice/k3bhalconnection.h')
-rw-r--r-- | libk3bdevice/k3bhalconnection.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/libk3bdevice/k3bhalconnection.h b/libk3bdevice/k3bhalconnection.h index a57093f..232669e 100644 --- a/libk3bdevice/k3bhalconnection.h +++ b/libk3bdevice/k3bhalconnection.h @@ -26,8 +26,11 @@ #include <tqmap.h> #include <tqstringlist.h> +#ifdef HAVE_HAL class DBusConnection; - +#else // HAVE_HAL +class TDEGenericDevice; +#endif // HAVE_HAL namespace K3bDevice { @@ -74,6 +77,7 @@ namespace K3bDevice { */ TQStringList devices() const; +#ifdef HAVE_HAL /** * \internal */ @@ -83,6 +87,7 @@ namespace K3bDevice { * \internal */ void removeDevice( const char* udi ); +#endif // HAVE_HAL /** * Error codes named as the HAL deamon raises them @@ -176,6 +181,24 @@ namespace K3bDevice { int eject( Device*, const TQStringList& options = TQStringList() ); +#ifndef HAVE_HAL +private slots: + /** + * \internal + */ + void AddDeviceHandler(TDEGenericDevice*); + + /** + * \internal + */ + void RemoveDeviceHandler(TDEGenericDevice*); + + /** + * \internal + */ + void ModifyDeviceHandler(TDEGenericDevice*); +#endif // HAVE_HAL + signals: /** * This signal gets emitted whenever HAL finds a new optical drive. @@ -217,7 +240,9 @@ namespace K3bDevice { class Private; Private* d; +#ifdef HAVE_HAL void setupDBusTQtConnection( DBusConnection* dbusConnection ); +#endif // HAVE_HAL }; } |