mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 19:35:33 +08:00
Ref T739, functions to register devices (will be used by DBus/proxy)
This commit is contained in:
committed by
Mat Sutcliffe
parent
fdf4bf6b57
commit
e109106102
@@ -55,6 +55,12 @@ namespace BlackMisc
|
||||
//! Type
|
||||
DeviceType getType() const { return m_type; }
|
||||
|
||||
//! Input device
|
||||
bool isInputDevice() const { return this->getType() == InputDevice; }
|
||||
|
||||
//! Output device
|
||||
bool isOutputDevice() const { return this->getType() == OutputDevice; }
|
||||
|
||||
//! Valid audio device object?
|
||||
bool isValid() const { return !m_deviceName.isEmpty(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user