diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-30 23:28:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-07-07 23:44:28 +0900 |
commit | bf683427937ea0cfd90749b833456377de6ffa10 (patch) | |
tree | 6b911cc13766cfb54dc6e8b0211e7138e64cba7b /tdecore/tdehw/disksHelper.h | |
parent | 7214a7b6b590d62aac622dbf2de31b1ca1ba78d5 (diff) | |
download | tdelibs-bf683427937ea0cfd90749b833456377de6ffa10.tar.gz tdelibs-bf683427937ea0cfd90749b833456377de6ffa10.zip |
Reworked code for eject/mount/unmount operations to support new TDEStorageOpResult return type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdehw/disksHelper.h')
-rw-r--r-- | tdecore/tdehw/disksHelper.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/tdecore/tdehw/disksHelper.h b/tdecore/tdehw/disksHelper.h index def540f34..5f2d7e7cb 100644 --- a/tdecore/tdehw/disksHelper.h +++ b/tdecore/tdehw/disksHelper.h @@ -21,16 +21,21 @@ #define _DISKS_HELPER_H #include <stdlib.h> - -class TDEStorageDevice; -class TQString; -class TQStringList; - -bool ejectDriveUDisks(TDEStorageDevice* sdevice); -bool ejectDriveUDisks2(TDEStorageDevice* sdevice); -int mountDriveUDisks(TQString deviceNode, TQString fileSystemType, TQStringList mountOptions, TQString* errStr = NULL); -int mountDriveUDisks2(TQString deviceNode, TQString fileSystemType, TQString mountOptions, TQString* errStr = NULL); -int unMountDriveUDisks(TQString deviceNode, TQStringList unMountOptions, TQString* errStr = NULL); -int unMountDriveUDisks2(TQString deviceNode, TQString unMountOptions, TQString* errStr = NULL); +#include "tdestoragedevice.h" + + +//------------------------------- +// UDisks +//------------------------------- +TDEStorageOpResult UDisksEjectDrive(TDEStorageDevice *sdevice); +TDEStorageOpResult UDisksMountDrive(TQString deviceNode, TQString fileSystemType, TQStringList mountOptions); +TDEStorageOpResult UDisksUnmountDrive(TQString deviceNode, TQStringList unmountOptions); + +//------------------------------- +// UDisks2 +//------------------------------- +TDEStorageOpResult UDisks2EjectDrive(TDEStorageDevice *sdevice); +TDEStorageOpResult UDisks2MountDrive(TQString deviceNode, TQString fileSystemType, TQString mountOptions); +TDEStorageOpResult UDisks2UnmountDrive(TQString deviceNode, TQString unmountOptions); #endif |