/* * This file was generated by the CommonAPI Generators. * * This file was generated by the CommonAPI Generators. * * This file was generated by the CommonAPI Generators. * * Copyright (C) 2012, BMW AG * * This file is part of GENIVI Project AudioManager. * * Contributions are licensed to the GENIVI Alliance under one or more * Contribution License Agreements. * * \copyright * This Source Code Form is subject to the terms of the * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with * this file, You can obtain one at http://mozilla.org/MPL/2.0/. * * * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013 * \author Christian Linke christian.linke@bmw.de BMW 2013 * * For further information see http://www.genivi.org/. */ #include "RoutingControlDBusProxy.h" namespace org { namespace genivi { namespace am { std::shared_ptr createRoutingControlDBusProxy( const std::string& commonApiAddress, const std::string& interfaceName, const std::string& busName, const std::string& objectPath, const std::shared_ptr& dbusProxyConnection) { return std::make_shared(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection); } __attribute__((constructor)) void registerRoutingControlDBusProxy(void) { CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingControl::getInterfaceId(), &createRoutingControlDBusProxy); } RoutingControlDBusProxy::RoutingControlDBusProxy( const std::string& commonApiAddress, const std::string& interfaceName, const std::string& busName, const std::string& objectPath, const std::shared_ptr& dbusProxyconnection): CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection) { } void RoutingControlDBusProxy::asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncAbort", "(iq)", handle, callStatus ); } std::future RoutingControlDBusProxy::asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncAbort", "(iq)", handle, std::move(callback)); } void RoutingControlDBusProxy::asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncConnect", "(iq)qqqq", handle, connectionID, sourceID, sinkID, connectionFormat, callStatus ); } std::future RoutingControlDBusProxy::asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, AsyncConnectAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncConnect", "(iq)qqqq", handle, connectionID, sourceID, sinkID, connectionFormat, std::move(callback)); } void RoutingControlDBusProxy::asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncDisconnect", "(iq)q", handle, connectionID, callStatus ); } std::future RoutingControlDBusProxy::asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncDisconnect", "(iq)q", handle, connectionID, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSinkVolume", "(iq)qnqn", handle, sinkID, volume, ramp, time, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSinkVolume", "(iq)qnqn", handle, sinkID, volume, ramp, time, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSourceVolume", "(iq)qnqn", handle, sourceID, volume, ramp, time, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSourceVolume", "(iq)qnqn", handle, sourceID, volume, ramp, time, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSourceState", "(iq)qi", handle, sourceID, state, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSourceState", "(iq)qi", handle, sourceID, state, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSinkSoundProperties", "(iq)qa(qn)", handle, sinkID, listSoundProperties, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSinkSoundProperties", "(iq)qa(qn)", handle, sinkID, listSoundProperties, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSinkSoundProperty", "(iq)q(qn)", handle, sinkID, soundProperty, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSinkSoundProperty", "(iq)q(qn)", handle, sinkID, soundProperty, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSourceSoundProperties", "(iq)qa(qn)", handle, sourceID, listSoundProperties, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSourceSoundProperties", "(iq)qa(qn)", handle, sourceID, listSoundProperties, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSourceSoundProperty", "(iq)q(qn)", handle, sourceID, soundProperty, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSourceSoundProperty", "(iq)q(qn)", handle, sourceID, soundProperty, std::move(callback)); } void RoutingControlDBusProxy::asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncCrossFade", "(iq)qiqn", handle, crossfaderID, hotSink, rampType, time, callStatus ); } std::future RoutingControlDBusProxy::asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncCrossFade", "(iq)qiqn", handle, crossfaderID, hotSink, rampType, time, std::move(callback)); } void RoutingControlDBusProxy::setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( *this, "setDomainState", "qi", domainID, domainState, callStatus , error); } std::future RoutingControlDBusProxy::setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( *this, "setDomainState", "qi", domainID, domainState, std::move(callback)); } void RoutingControlDBusProxy::asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetVolumes", "(iq)a(i(yv)nqn)", handle, volumes, callStatus ); } std::future RoutingControlDBusProxy::asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetVolumes", "(iq)a(i(yv)nqn)", handle, volumes, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSinkNotificationConfiguration", "(iq)q(qin)", handle, sinkID, notificationConfiguration, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSinkNotificationConfiguration", "(iq)q(qin)", handle, sinkID, notificationConfiguration, std::move(callback)); } void RoutingControlDBusProxy::asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "asyncSetSourceNotificationConfiguration", "(iq)q(qin)", handle, sourceID, notificationConfiguration, callStatus ); } std::future RoutingControlDBusProxy::asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "asyncSetSourceNotificationConfiguration", "(iq)q(qin)", handle, sourceID, notificationConfiguration, std::move(callback)); } void RoutingControlDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { ownVersionMajor = 0; ownVersionMinor = 1; } } // namespace am } // namespace genivi } // namespace org