6 #ifndef SWIFT_MISC_AUDIO_AUDIODEVICE_H
7 #define SWIFT_MISC_AUDIO_AUDIODEVICE_H
19 namespace swift::misc::audio
32 IndexName = CPropertyIndexRef::GlobalIndexCAudioDeviceInfo,
34 IndexDeviceTypeAsString,
53 const QString &
getName()
const {
return m_deviceName; }
56 const QString &
getMachineName()
const {
return m_identifier.getMachineName(); }
65 const QString &
getTypeAsString()
const {
return deviceTypeToString(this->getType()); }
74 bool isValid()
const {
return !m_deviceName.isEmpty() && (m_type != Unknown); }
77 bool isDefault()
const;
98 QString convertToQString(
bool i18n =
false)
const;
104 static const QString &deviceTypeToString(DeviceType t);
107 int m_type =
static_cast<int>(Unknown);
108 QString m_deviceName;
Value object encapsulating information identifying a component of a modular distributed swift process...
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Value object encapsulating information of a audio device.
const QString & getMachineName() const
Machine name.
bool isInputDevice() const
Input device.
const CIdentifier & getIdentifier() const
Identifier.
ColumnIndex
Properties by index.
DeviceType getType() const
Type.
const QString & getTypeAsString() const
Type as string.
bool isOutputDevice() const
Output device.
bool isValid() const
Valid audio device object?
const QString & getName() const
Get the device name.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...