summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/libmediacommon/medium.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2019-08-25 14:34:16 +0900
committerMichele Calgaro <[email protected]>2020-10-17 10:48:29 +0800
commit7c6e00a43ce3626e0450954ab1234c78048fcb58 (patch)
treeb732915f07a411b97c02734de6be5f68827e7198 /tdeioslave/media/libmediacommon/medium.h
parentb54fcda719b94c629c11e9b3462f2c9a2c5a9666 (diff)
downloadtdebase-7c6e00a43ce3626e0450954ab1234c78048fcb58.tar.gz
tdebase-7c6e00a43ce3626e0450954ab1234c78048fcb58.zip
tdeioslave media: added LOCKED property to Medium class.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/media/libmediacommon/medium.h')
-rw-r--r--tdeioslave/media/libmediacommon/medium.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/tdeioslave/media/libmediacommon/medium.h b/tdeioslave/media/libmediacommon/medium.h
index 7e7f2b04a..49a7fb980 100644
--- a/tdeioslave/media/libmediacommon/medium.h
+++ b/tdeioslave/media/libmediacommon/medium.h
@@ -46,7 +46,8 @@ public:
static const uint CLEAR_DEVICE_UDI = 14;
static const uint HIDDEN = 15;
static const uint SOFT_HIDDEN = 16;
- static const uint PROPERTIES_COUNT = 17;
+ static const uint LOCKED = 17;
+ static const uint PROPERTIES_COUNT = 18;
static const TQString SEPARATOR;
Medium(const TQString id, TQString uuid, const TQString name);
@@ -60,21 +61,22 @@ public:
TQString name() const { return m_properties[NAME]; }
TQString label() const { return m_properties[LABEL]; }
TQString userLabel() const { return m_properties[USER_LABEL]; }
- bool isMountable() const { return m_properties[MOUNTABLE]=="true"; }
+ bool isMountable() const { return m_properties[MOUNTABLE] == "true"; }
TQString deviceNode() const { return m_properties[DEVICE_NODE]; }
TQString mountPoint() const { return m_properties[MOUNT_POINT]; }
TQString fsType() const { return m_properties[FS_TYPE]; }
- bool isMounted() const { return m_properties[MOUNTED]=="true"; }
+ bool isMounted() const { return m_properties[MOUNTED] == "true"; }
TQString baseURL() const { return m_properties[BASE_URL]; }
TQString mimeType() const { return m_properties[MIME_TYPE]; }
TQString iconName() const { return m_properties[ICON_NAME]; }
- bool isEncrypted() const { return m_properties[ENCRYPTED]=="true"; };
+ bool isEncrypted() const { return m_properties[ENCRYPTED] == "true"; };
TQString clearDeviceUdi() const { return m_properties[CLEAR_DEVICE_UDI]; };
- bool hidden() const { return m_properties[HIDDEN]=="true"; };
- bool softHidden() const { return m_properties[SOFT_HIDDEN]=="true"; };
+ bool hidden() const { return m_properties[HIDDEN] == "true"; };
+ bool softHidden() const { return m_properties[SOFT_HIDDEN] == "true"; };
+ bool isLocked() const { return m_properties[LOCKED] == "true"; };
bool needMounting() const;
- bool needDecryption() const;
+ bool needUnlocking() const;
KURL prettyBaseURL() const;
TQString prettyLabel() const;
@@ -89,10 +91,11 @@ public:
void setBaseURL(const TQString &baseURL);
void setMimeType(const TQString &mimeType);
void setIconName(const TQString &iconName);
- void setEncrypted(bool state);
+ void setEncrypted(bool encrypted);
void setClearDeviceUdi(const TQString &clearDeviceUdi);
void setHidden(bool state);
void setSoftHidden(bool state);
+ void setLocked(bool locked);
Medium();