diff options
Diffstat (limited to 'tdecore/tdehw/disksHelper.h')
-rw-r--r-- | tdecore/tdehw/disksHelper.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/tdecore/tdehw/disksHelper.h b/tdecore/tdehw/disksHelper.h index 665de8223..560d3cd9a 100644 --- a/tdecore/tdehw/disksHelper.h +++ b/tdecore/tdehw/disksHelper.h @@ -20,22 +20,32 @@ #ifndef _DISKS_HELPER_H #define _DISKS_HELPER_H -#include <stdlib.h> -#include "tdestoragedevice.h" +#if defined(WITH_UDISKS) || defined(WITH_UDISKS2) + #include "tqstringlist.h" + #include "tqvariant.h" + class TQString; + class TDEStorageDevice; +#endif +#ifdef WITH_UDISKS //------------------------------- // UDisks //------------------------------- -TQStringVariantMap UDisksEjectDrive(TDEStorageDevice *sdevice); -TQStringVariantMap UDisksMountDrive(TQString deviceNode, TQString fileSystemType, TQStringList mountOptions); -TQStringVariantMap UDisksUnmountDrive(TQString deviceNode, TQStringList unmountOptions); +TQStringVariantMap udisksEjectDrive(TDEStorageDevice *sdevice); +TQStringVariantMap udisksMountDrive(const TQString &deviceNode, const TQString &fileSystemType, TQStringList mountOptions); +TQStringVariantMap udisksUnmountDrive(const TQString &deviceNode, TQStringList unmountOptions); +#endif +#ifdef WITH_UDISKS2 //------------------------------- // UDisks2 //------------------------------- -TQStringVariantMap UDisks2EjectDrive(TDEStorageDevice *sdevice); -TQStringVariantMap UDisks2MountDrive(TQString deviceNode, TQString fileSystemType, TQString mountOptions); -TQStringVariantMap UDisks2UnmountDrive(TQString deviceNode, TQString unmountOptions); +TQStringVariantMap udisks2EjectDrive(TDEStorageDevice *sdevice); +TQStringVariantMap udisks2MountDrive(const TQString &deviceNode, const TQString &fileSystemType, const TQString &mountOptions); +TQStringVariantMap udisks2UnmountDrive(const TQString &deviceNode, const TQString &unmountOptions); +TQStringVariantMap udisks2UnlockDrive(const TQString &deviceNode, const TQString &passphrase); +TQStringVariantMap udisks2LockDrive(const TQString &deviceNode); +#endif #endif |