From eff7355ef523758d97451d8543fb7a2eb52b9273 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 20 Nov 2016 16:58:52 +0100 Subject: [PATCH] added isReadOnly --- src/lib/ebus/device.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/ebus/device.h b/src/lib/ebus/device.h index d475c1fd..b9688a8d 100644 --- a/src/lib/ebus/device.h +++ b/src/lib/ebus/device.h @@ -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.