2 * This file was generated by the CommonAPI Generators.
3 * Used org.genivi.commonapi.core 2.1.2.201309301424.
4 * Used org.franca.core 0.8.9.201308271211.
6 * Copyright (c) 2012 BMW
8 * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
11 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
12 * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
13 * subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
17 * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 * For further information see http://www.genivi.org/.
22 * Routing Receive sendInterface description.
23 * @author Christian Mueller
25 #include "RoutingControlObserverDBusProxy.h"
31 std::shared_ptr<CommonAPI::DBus::DBusProxy> createRoutingControlObserverDBusProxy(
32 const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
33 const std::string& commonApiAddress,
34 const std::string& interfaceName,
35 const std::string& busName,
36 const std::string& objectPath,
37 const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
38 return std::make_shared<RoutingControlObserverDBusProxy>(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
41 __attribute__((constructor)) void registerRoutingControlObserverDBusProxy(void) {
42 CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingControlObserver::getInterfaceId(),
43 &createRoutingControlObserverDBusProxy);
46 RoutingControlObserverDBusProxy::RoutingControlObserverDBusProxy(
47 const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
48 const std::string& commonApiAddress,
49 const std::string& interfaceName,
50 const std::string& busName,
51 const std::string& objectPath,
52 const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
53 CommonAPI::DBus::DBusProxy(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
54 ,routingReady_(*this, "onRoutingReadyAttributeChanged", "i", "getRoutingReadyAttribute")
58 RoutingControlObserverDBusProxy::RoutingReadyAttribute& RoutingControlObserverDBusProxy::getRoutingReadyAttribute() {
64 * acknowledges a asyncConnect
66 void RoutingControlObserverDBusProxy::ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
67 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
68 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
72 handle, connectionID, error,
76 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback) {
77 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
78 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
82 handle, connectionID, error,
86 * acknowledges a asyncDisconnect
88 void RoutingControlObserverDBusProxy::ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
89 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
90 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
94 handle, connectionID, error,
98 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback) {
99 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
100 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
104 handle, connectionID, error,
105 std::move(callback));
108 * acknowledges a asyncsetSinkVolume
110 void RoutingControlObserverDBusProxy::ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
111 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
112 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
114 "ackSetSinkVolumeChange",
116 handle, volume, error,
120 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback) {
121 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
122 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
124 "ackSetSinkVolumeChange",
126 handle, volume, error,
127 std::move(callback));
130 * acknowledges a asyncsetSourceVolume
132 void RoutingControlObserverDBusProxy::ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
133 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
134 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
136 "ackSetSourceVolumeChange",
138 handle, volume, error,
142 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback) {
143 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
144 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
146 "ackSetSourceVolumeChange",
148 handle, volume, error,
149 std::move(callback));
152 * acknowlegde for asyncSetSourceState
154 void RoutingControlObserverDBusProxy::ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
155 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
156 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
164 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback) {
165 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
166 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
171 std::move(callback));
174 * acknowledges asyncSetSinkSoundProperties
176 void RoutingControlObserverDBusProxy::ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
177 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
178 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
180 "ackSetSinkSoundProperties",
186 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback) {
187 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
188 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
190 "ackSetSinkSoundProperties",
193 std::move(callback));
196 * acknowledges asyncSetSinkSoundProperty
198 void RoutingControlObserverDBusProxy::ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
199 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
200 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
202 "ackSetSinkSoundProperty",
208 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback) {
209 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
210 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
212 "ackSetSinkSoundProperty",
215 std::move(callback));
218 * acknowledges asyncSetSourceSoundProperties
220 void RoutingControlObserverDBusProxy::ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
221 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
222 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
224 "ackSetSourceSoundProperties",
230 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback) {
231 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
232 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
234 "ackSetSourceSoundProperties",
237 std::move(callback));
240 * acknowledges asyncSetSourceSoundProperty
242 void RoutingControlObserverDBusProxy::ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
243 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
244 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
246 "ackSetSourceSoundProperty",
252 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback) {
253 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
254 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
256 "ackSetSourceSoundProperty",
259 std::move(callback));
262 * acknowledges asyncCrossFade
264 void RoutingControlObserverDBusProxy::ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
265 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_HotSink_e, am_Error_e>,
266 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
270 handle, hotSink, error,
274 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback) {
275 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_HotSink_e, am_Error_e>,
276 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
280 handle, hotSink, error,
281 std::move(callback));
284 * acknowledges a volume tick. This can be used to display volumechanges during
287 void RoutingControlObserverDBusProxy::ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
288 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t>,
289 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
291 "ackSourceVolumeTick",
293 handle, sourceID, volume,
297 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) {
298 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t>,
299 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
301 "ackSourceVolumeTick",
303 handle, sourceID, volume,
304 std::move(callback));
307 * acknowledges a volume tick. This can be used to display volumechanges during
310 void RoutingControlObserverDBusProxy::ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
311 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t>,
312 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
316 handle, sinkID, volume,
320 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) {
321 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t>,
322 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
326 handle, sinkID, volume,
327 std::move(callback));
330 * This function returns the ID to the given domainName. If already a domain is
331 * registered with this name, it will return the corresponding ID, if not it will
332 * reserve an ID but not register the domain. The other parameters of the domain
333 * will be overwritten when the domain is registered.
335 * success, E_UNKNOWN on error
337 void RoutingControlObserverDBusProxy::peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) {
338 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
339 CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodWithReply(
347 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) {
348 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
349 CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodAsync(
354 std::move(callback));
358 (at)return E_OK on succes, E_ALREADY_EXISTENT if already
359 * registered E_UNKOWN on error
361 void RoutingControlObserverDBusProxy::registerDomain(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) {
362 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Domain_s, std::string, std::string>,
363 CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodWithReply(
367 domainData, returnBusname, returnInterface,
371 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerDomainAsync(const am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnInterface, RegisterDomainAsyncCallback callback) {
372 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Domain_s, std::string, std::string>,
373 CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodAsync(
377 domainData, returnBusname, returnInterface,
378 std::move(callback));
381 * deregisters a domain. All sources, sinks, gateways and crossfaders from that
382 * domain will be removed as well.
383 (at)return E_OK on succes, E_NON_EXISTENT if
384 * not found E_UNKOWN on error
386 void RoutingControlObserverDBusProxy::deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
387 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
388 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
396 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) {
397 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
398 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
403 std::move(callback));
406 * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already
407 * registered E_UNKOWN on error
409 void RoutingControlObserverDBusProxy::registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error) {
410 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Gateway_s>,
411 CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_Error_e> >::callMethodWithReply(
419 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) {
420 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Gateway_s>,
421 CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_Error_e> >::callMethodAsync(
426 std::move(callback));
429 * deregisters a gateway. Also removes all sinks and sources of the controlling
431 (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on
434 void RoutingControlObserverDBusProxy::deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
435 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t>,
436 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
444 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) {
445 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t>,
446 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
451 std::move(callback));
454 * This function returns the ID to the given sinkName. If already a sink is
455 * registered with this name, it will return the corresponding ID, if not it will
456 * reserve an ID but not register the sink. The other parameters of the sink will
457 * be overwritten when the sink is registered.
458 (at)return E_OK on success,
461 void RoutingControlObserverDBusProxy::peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) {
462 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
463 CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodWithReply(
471 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) {
472 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
473 CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodAsync(
478 std::move(callback));
481 * Registers a sink. If the sink is part of a gateway, the listconnectionFormats
482 * is copied to the gatewayInformation
483 (at)return E_OK on succes,
484 * E_ALREADY_EXISTENT if already registered E_UNKOWN on error
486 void RoutingControlObserverDBusProxy::registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) {
487 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Sink_s>,
488 CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodWithReply(
491 "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))",
496 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback) {
497 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Sink_s>,
498 CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodAsync(
501 "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))",
503 std::move(callback));
506 * deregisters a sink.
507 (at)return E_OK on succes, E_NON_EXISTENT if not found
510 void RoutingControlObserverDBusProxy::deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
511 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
512 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
520 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) {
521 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
522 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
527 std::move(callback));
530 * This function returns the ID to the given sourceName. If already a source is
531 * registered with this name, it will return the corresponding ID, if not it will
532 * reserve an ID but not register the source. The other parameters of the source
533 * will be overwritten when the source is registered.
535 * success, E_UNKNOWN on error
537 void RoutingControlObserverDBusProxy::peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) {
538 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
539 CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodWithReply(
547 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) {
548 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
549 CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodAsync(
554 std::move(callback));
557 * registers a source. If the source is part of a gateway, the
558 * listconnectionFormats is copied to the gatewayInformation
560 * success, E_UNKNOWN on error, E_ALREADY_EXIST if either name or sourceID
563 void RoutingControlObserverDBusProxy::registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) {
564 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Source_s>,
565 CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodWithReply(
568 "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))",
573 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback) {
574 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Source_s>,
575 CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodAsync(
578 "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))",
580 std::move(callback));
583 * deregisters a source
584 (at)return E_OK on succes, E_NON_EXISTENT if not found
587 void RoutingControlObserverDBusProxy::deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
588 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
589 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
597 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) {
598 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
599 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
604 std::move(callback));
607 * this function registers a crossfader.
608 (at)return E_OK on succes,
609 * E_ALREADY_EXISTENT if already registered E_UNKOWN on error
611 void RoutingControlObserverDBusProxy::registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error) {
612 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Crossfader_s>,
613 CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t, am_Error_e> >::callMethodWithReply(
615 "registerCrossfader",
619 , crossfaderID, error);
621 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) {
622 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Crossfader_s>,
623 CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t, am_Error_e> >::callMethodAsync(
625 "registerCrossfader",
628 std::move(callback));
631 * this function deregisters a crossfader. removes all sources and sinks assiated
633 (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on
636 void RoutingControlObserverDBusProxy::deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
637 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t>,
638 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
640 "deregisterCrossfader",
646 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) {
647 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t>,
648 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
650 "deregisterCrossfader",
653 std::move(callback));
656 * this function peeks a sourceclassID. It is used by the RoutingPlugins to
657 * determine the SinkClassIDs of a sinkClass.
658 (at)return E_OK on succes,
659 * E_DATABASE_ERROR on error
661 void RoutingControlObserverDBusProxy::peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error) {
662 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
663 CommonAPI::DBus::DBusSerializableArguments<am_sourceClass_t, am_Error_e> >::callMethodWithReply(
669 , sourceClassID, error);
671 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) {
672 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
673 CommonAPI::DBus::DBusSerializableArguments<am_sourceClass_t, am_Error_e> >::callMethodAsync(
678 std::move(callback));
681 * this function peeks a sourceclassID. It is used by the RoutingPlugins to
682 * determine the SinkClassIDs of a sinkClass.
683 (at)return E_OK on succes,
684 * E_DATABASE_ERROR on error
686 void RoutingControlObserverDBusProxy::peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error) {
687 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
688 CommonAPI::DBus::DBusSerializableArguments<am_sinkClass_t, am_Error_e> >::callMethodWithReply(
694 , sinkClassID, error);
696 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) {
697 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
698 CommonAPI::DBus::DBusSerializableArguments<am_sinkClass_t, am_Error_e> >::callMethodAsync(
703 std::move(callback));
706 * is called when a low level interrupt changes it status.
708 void RoutingControlObserverDBusProxy::hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus) {
709 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_InterruptState_e>,
710 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
712 "hookInterruptStatusChange",
714 sourceID, interruptState,
718 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback) {
719 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_InterruptState_e>,
720 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
722 "hookInterruptStatusChange",
724 sourceID, interruptState,
725 std::move(callback));
728 * This hook is called when all elements from a domain are registered.
730 * the Controller to know when all expected domains are finally registered
732 void RoutingControlObserverDBusProxy::hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
733 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
734 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
736 "hookDomainRegistrationComplete",
742 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) {
743 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
744 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
746 "hookDomainRegistrationComplete",
749 std::move(callback));
752 * is called when a sink changes its availability
754 void RoutingControlObserverDBusProxy::hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
755 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Availability_s>,
756 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
758 "hookSinkAvailablityStatusChange",
760 sinkID, availability,
764 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) {
765 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Availability_s>,
766 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
768 "hookSinkAvailablityStatusChange",
770 sinkID, availability,
771 std::move(callback));
774 * is called when a source changes its availability
776 void RoutingControlObserverDBusProxy::hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
777 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Availability_s>,
778 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
780 "hookSourceAvailablityStatusChange",
782 sourceID, availability,
786 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) {
787 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Availability_s>,
788 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
790 "hookSourceAvailablityStatusChange",
792 sourceID, availability,
793 std::move(callback));
796 * is called when a domain changes its status. This used for early domains only
798 void RoutingControlObserverDBusProxy::hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) {
799 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>,
800 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
802 "hookDomainStateChange",
804 domainID, domainState,
808 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) {
809 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>,
810 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
812 "hookDomainStateChange",
814 domainID, domainState,
815 std::move(callback));
818 * is called when the timinginformation (delay) changed for a connection.
820 void RoutingControlObserverDBusProxy::hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus) {
821 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_connectionID_t, am_timeSync_t>,
822 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
824 "hookTimingInformationChanged",
830 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback) {
831 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_connectionID_t, am_timeSync_t>,
832 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
834 "hookTimingInformationChanged",
837 std::move(callback));
840 * this function is used to send out all data that has been changed in an early
842 (at)return E_OK on success, E_UNKNOWN on error
844 void RoutingControlObserverDBusProxy::sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus) {
845 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_EarlyData_L>,
846 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
854 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback) {
855 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_EarlyData_L>,
856 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
861 std::move(callback));
864 * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the
865 * gatewayID is not valid.
867 void RoutingControlObserverDBusProxy::updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
868 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>,
869 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
873 gatewayID, listSourceFormats, listSinkFormats, convertionMatrix,
877 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback) {
878 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>,
879 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
883 gatewayID, listSourceFormats, listSinkFormats, convertionMatrix,
884 std::move(callback));
887 * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the
888 * sinkID is not valid.
890 void RoutingControlObserverDBusProxy::updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
891 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
892 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
896 sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
900 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) {
901 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
902 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
906 sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
907 std::move(callback));
910 * updates data of an source. (at)return E_OK on success, E_NON_EXISTENT if the
911 * sourceID in the struct is not valid.
912 Please note that only the following
913 * data out of am_Source_s have effect when they are
917 listConnectionFormats,
919 listMainSoundProperties
921 void RoutingControlObserverDBusProxy::updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
922 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
923 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
927 sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
931 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) {
932 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
933 CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
937 sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
938 std::move(callback));
941 * acknowledges a asyncSetSinkVolumes
943 void RoutingControlObserverDBusProxy::ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
944 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L, am_Error_e>,
945 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
949 handle, listvolumes, error,
953 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback) {
954 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L, am_Error_e>,
955 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
959 handle, listvolumes, error,
960 std::move(callback));
963 * The acknowledge of the SinkNotificationConfiguration
965 void RoutingControlObserverDBusProxy::ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
966 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
967 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
969 "ackSinkNotificationConfiguration",
975 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback) {
976 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
977 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
979 "ackSinkNotificationConfiguration",
982 std::move(callback));
985 * The acknowledge of the SourceNotificationConfiguration
987 void RoutingControlObserverDBusProxy::ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
988 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
989 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
991 "ackSourceNotificationConfiguration",
997 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback) {
998 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
999 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
1001 "ackSourceNotificationConfiguration",
1004 std::move(callback));
1007 * is called whenever a notified value needs to be send
1009 void RoutingControlObserverDBusProxy::hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
1010 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationPayload_s>,
1011 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
1013 "hookSinkNotificationDataChange",
1019 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) {
1020 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationPayload_s>,
1021 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
1023 "hookSinkNotificationDataChange",
1026 std::move(callback));
1029 * is called whenever a notified value needs to be send
1031 void RoutingControlObserverDBusProxy::hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
1032 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationPayload_s>,
1033 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
1035 "hookSourceNotificationDataChange",
1041 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) {
1042 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationPayload_s>,
1043 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
1045 "hookSourceNotificationDataChange",
1048 std::move(callback));
1050 void RoutingControlObserverDBusProxy::confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus) {
1051 CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
1052 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
1054 "confirmRoutingRundown",
1060 std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback) {
1061 return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
1062 CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
1064 "confirmRoutingRundown",
1067 std::move(callback));
1072 void RoutingControlObserverDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
1073 ownVersionMajor = 0;
1074 ownVersionMinor = 1;
1078 } // namespace genivi