refs #140, removed MACRO DBUS_ENUM_MARSHALLING, changed to template

discussed in https://dev.vatsim-germany.org/issues/140#change-864
This commit is contained in:
Klaus Basan
2014-03-11 21:08:59 +01:00
parent ffc03e46f5
commit 0d306861f0
13 changed files with 21 additions and 38 deletions

View File

@@ -28,7 +28,7 @@ namespace BlackMisc
public:
//! \brief Type
enum DeviceType
enum DeviceType : uint
{
InputDevice,
OutputDevice,
@@ -135,10 +135,9 @@ namespace BlackMisc
static QString hostName();
};
} // Voice
} // Audio
} // BlackMisc
BLACK_DBUS_ENUM_MARSHALLING(BlackMisc::Audio::CAudioDevice::DeviceType)
BLACK_DECLARE_TUPLE_CONVERSION(BlackMisc::Audio::CAudioDevice, (o.m_type, o.m_deviceIndex, o.m_deviceName, o.m_hostName))
Q_DECLARE_METATYPE(BlackMisc::Audio::CAudioDevice)