added isReadOnly

This commit is contained in:
john30
2016-11-20 16:58:52 +01:00
parent 22ec96b96e
commit eff7355ef5
+6
View File
@@ -157,6 +157,12 @@ public:
*/
bool isValid();
/**
* Return whether to allow read access to the device only.
* @return whether to allow read access to the device only.
*/
bool isReadOnly() const { return m_readOnly; }
protected:
/**
* Check if the device is still available and close it if not.