summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/disksHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw/disksHelper.h')
-rw-r--r--tdecore/tdehw/disksHelper.h27
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