summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehardwaredevices.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-30 15:44:16 -0500
committerTimothy Pearson <[email protected]>2012-03-30 15:44:16 -0500
commite428644d86c505207079914f592d5275205493d1 (patch)
treeaee7ed4643b6ef660cec45558fce7408a48bfe13 /tdecore/tdehardwaredevices.h
parent1b63411074c3bbd49a6d0dc90c5eb906025e3aec (diff)
downloadtdelibs-e428644d86c505207079914f592d5275205493d1.tar.gz
tdelibs-e428644d86c505207079914f592d5275205493d1.zip
Add device mapper functions to TDE hardware library
Diffstat (limited to 'tdecore/tdehardwaredevices.h')
-rw-r--r--tdecore/tdehardwaredevices.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h
index e56217cbe..531106c36 100644
--- a/tdecore/tdehardwaredevices.h
+++ b/tdecore/tdehardwaredevices.h
@@ -21,6 +21,7 @@
// TDE includes
#include <tqstring.h>
#include <tqptrlist.h>
+#include <tqstringlist.h>
#include <tqtimer.h>
#include "tdelibs_export.h"
@@ -98,6 +99,7 @@ enum TDEDiskDeviceType {
MemoryStick = 0x04000000,
SmartMedia = 0x08000000,
SDMMC = 0x10000000,
+ UnlockedCrypt = 0x20000000,
Other = 0x80000000
};
@@ -123,6 +125,8 @@ enum TDEDiskDeviceStatus {
Removable = 0x00000002,
Inserted = 0x00000004,
Blank = 0x00000008,
+ UsedByDevice = 0x00000010,
+ UsesDevice = 0x00000020,
Other = 0x80000000
};
@@ -324,6 +328,26 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice
void setFileSystemUsage(TQString fu);
/**
+ * @return a TQStringList containing system paths to all devices with a lock on this device, if any
+ */
+ TQStringList &holdingDevices();
+
+ /**
+ * @param a TQStringList containing system paths to all devices with a lock on this device, if any
+ */
+ void setHoldingDevices(TQStringList hd);
+
+ /**
+ * @return a TQStringList containing system paths to all devices locked by this device, if any
+ */
+ TQStringList &slaveDevices();
+
+ /**
+ * @param a TQStringList containing system paths to all devices locked by this device, if any
+ */
+ void setSlaveDevices(TQStringList sd);
+
+ /**
* @return a TQString with the mount path, if mounted
*/
TQString mountPath();
@@ -337,6 +361,8 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice
TQString m_fileSystemUsage;
bool m_mediaInserted;
TQString m_mountPath;
+ TQStringList m_holdingDevices;
+ TQStringList m_slaveDevices;
};
typedef TQPtrList<TDEGenericDevice> TDEGenericHardwareList;