2 * This file was generated by the CommonAPI Generators.
3 * Used org.genivi.commonapi.core 2.1.1.201309251246.
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.
19 * For further information see http://www.genivi.org/.
21 #include <org/genivi/am/RoutingControlStubDefault.h>
27 RoutingControlStubDefault::RoutingControlStubDefault():
28 remoteEventHandler_(this) {
31 RoutingControlStubRemoteEvent* RoutingControlStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter) {
32 stubAdapter_ = stubAdapter;
33 return &remoteEventHandler_;
38 * aborts an asynchronous action.
39 (at)return E_OK on success, E_UNKNOWN on error,
40 * E_NON_EXISTENT if handle was not found
42 void RoutingControlStubDefault::asyncAbort(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle) {
43 // Call old style methods in default
46 void RoutingControlStubDefault::asyncAbort(am_Handle_s handle) {
47 // No operation in default
51 * connects a source to a sink
52 (at)return E_OK on success, E_UNKNOWN on error,
53 * E_WRONG_FORMAT in case am_ConnectionFormat_e does not match
55 void RoutingControlStubDefault::asyncConnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_ConnectionFormat_pe connectionFormat) {
56 // Call old style methods in default
57 asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat);
59 void RoutingControlStubDefault::asyncConnect(am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_ConnectionFormat_pe connectionFormat) {
60 // No operation in default
64 * disconnect a connection with given connectionID
65 (at)return E_OK on success,
66 * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found
68 void RoutingControlStubDefault::asyncDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID) {
69 // Call old style methods in default
70 asyncDisconnect(handle, connectionID);
72 void RoutingControlStubDefault::asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID) {
73 // No operation in default
77 * this method is used to set the volume of a sink. This function is used to drive
78 * ramps, to mute or unmute or directly set the value. The difference is made
79 * through the ramptype.
80 (at)return E_OK on success, E_UNKNOWN on error,
81 * E_OUT_OF_RANGE if new volume is out of range
83 void RoutingControlStubDefault::asyncSetSinkVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) {
84 // Call old style methods in default
85 asyncSetSinkVolume(handle, sinkID, volume, ramp, time);
87 void RoutingControlStubDefault::asyncSetSinkVolume(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) {
88 // No operation in default
92 * sets the volume of a source. This method is used to set the volume of a sink.
93 * This function is used to drive ramps, to mute or unmute or directly set the
94 * value. The difference is made through the ramptype.
96 * success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of
98 triggers the acknowledge ackSourceVolumeChange
100 void RoutingControlStubDefault::asyncSetSourceVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) {
101 // Call old style methods in default
102 asyncSetSourceVolume(handle, sourceID, volume, ramp, time);
104 void RoutingControlStubDefault::asyncSetSourceVolume(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) {
105 // No operation in default
109 * This function is used to set the source state of a particular
111 (at)return E_OK on success, E_UNKNOWN on error
113 void RoutingControlStubDefault::asyncSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) {
114 // Call old style methods in default
115 asyncSetSourceState(handle, sourceID, state);
117 void RoutingControlStubDefault::asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) {
118 // No operation in default
122 * this function sets the sinksoundproperty.
123 (at)return E_OK on success,
124 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
126 void RoutingControlStubDefault::asyncSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) {
127 // Call old style methods in default
128 asyncSetSinkSoundProperties(handle, sinkID, listSoundProperties);
130 void RoutingControlStubDefault::asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) {
131 // No operation in default
135 * this function sets the sinksoundproperty.
136 (at)return E_OK on success,
137 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
139 void RoutingControlStubDefault::asyncSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) {
140 // Call old style methods in default
141 asyncSetSinkSoundProperty(handle, sinkID, soundProperty);
143 void RoutingControlStubDefault::asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) {
144 // No operation in default
148 * this function sets the sourcesoundproperty.
149 (at)return E_OK on success,
150 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
152 void RoutingControlStubDefault::asyncSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) {
153 // Call old style methods in default
154 asyncSetSourceSoundProperties(handle, sourceID, listSoundProperties);
156 void RoutingControlStubDefault::asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) {
157 // No operation in default
161 * this function sets the sourcesoundproperty.
162 (at)return E_OK on success,
163 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
165 void RoutingControlStubDefault::asyncSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) {
166 // Call old style methods in default
167 asyncSetSourceSoundProperty(handle, sourceID, soundProperty);
169 void RoutingControlStubDefault::asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) {
170 // No operation in default
174 * this function triggers crossfading.
175 (at)return E_OK on success, E_UNKNOWN on
178 void RoutingControlStubDefault::asyncCrossFade(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_RampType_pe rampType, am_time_t time) {
179 // Call old style methods in default
180 asyncCrossFade(handle, crossfaderID, hotSink, rampType, time);
182 void RoutingControlStubDefault::asyncCrossFade(am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_RampType_pe rampType, am_time_t time) {
183 // No operation in default
187 * this function is used for early and late audio functions to set the domain
189 (at)return E_OK on success, E_UNKNOWN on error
191 void RoutingControlStubDefault::setDomainState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) {
192 // Call old style methods in default
193 setDomainState(domainID, domainState, error);
195 void RoutingControlStubDefault::setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) {
196 // No operation in default
199 void RoutingControlStubDefault::asyncSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L volumes) {
200 // Call old style methods in default
201 asyncSetVolumes(handle, volumes);
203 void RoutingControlStubDefault::asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes) {
204 // No operation in default
207 void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) {
208 // Call old style methods in default
209 asyncSetSinkNotificationConfiguration(handle, sinkID, notificationConfiguration);
211 void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) {
212 // No operation in default
215 void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) {
216 // Call old style methods in default
217 asyncSetSourceNotificationConfiguration(handle, sourceID, notificationConfiguration);
219 void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) {
220 // No operation in default
226 RoutingControlStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlStubDefault* defaultStub):
227 defaultStub_(defaultStub) {
231 } // namespace genivi