mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
[DBus] DBus related fixes
* use INT in CAudioDeviceInfo (minimum trouble) * register metatype * removed getSimulatorStatusEnum from DBus slots
This commit is contained in:
committed by
Mat Sutcliffe
parent
991681a1ea
commit
d8ec308a3b
@@ -47,13 +47,13 @@ namespace BlackCore
|
||||
void CContextAudioProxy::registerDevices(const CAudioDeviceInfoList &devices)
|
||||
{
|
||||
if (devices.isEmpty()) { return; }
|
||||
m_dBusInterface->callDBus(QLatin1String("registerDevices"));
|
||||
m_dBusInterface->callDBus(QLatin1String("registerDevices"), devices);
|
||||
}
|
||||
|
||||
void CContextAudioProxy::unRegisterDevices(const CAudioDeviceInfoList &devices)
|
||||
{
|
||||
if (devices.isEmpty()) { return; }
|
||||
m_dBusInterface->callDBus(QLatin1String("unRegisterDevices"));
|
||||
m_dBusInterface->callDBus(QLatin1String("unRegisterDevices"), devices);
|
||||
}
|
||||
|
||||
void CContextAudioProxy::unRegisterDevicesFor(const CIdentifier &identifier)
|
||||
|
||||
@@ -87,6 +87,10 @@ namespace BlackCore
|
||||
//! Destructor
|
||||
virtual ~IContextSimulator() override {}
|
||||
|
||||
//! Get simulator status as enum
|
||||
//! \fixme To be removed with Qt 5.5 when getSimualtorStatus directly provides the enum
|
||||
BlackCore::ISimulator::SimulatorStatus getSimulatorStatusEnum() const;
|
||||
|
||||
signals:
|
||||
//! Simulator combined status
|
||||
//! \sa ISimulator::SimulatorStatus
|
||||
@@ -171,10 +175,6 @@ namespace BlackCore
|
||||
//! Simulator combined status
|
||||
virtual int getSimulatorStatus() const = 0;
|
||||
|
||||
//! Get simulator status as enum
|
||||
//! \fixme To be removed with Qt 5.5 when getSimualtorStatus directly provides the enum
|
||||
BlackCore::ISimulator::SimulatorStatus getSimulatorStatusEnum() const;
|
||||
|
||||
//! Simulator setup
|
||||
virtual BlackMisc::Simulation::CSimulatorInternals getSimulatorInternals() const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user