2 * This file was generated by the CommonAPI Generators.
3 * Used org.genivi.commonapi.core 2.1.5.201312121915.
4 * Used org.franca.core 0.8.11.201401091023.
6 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 * If a copy of the MPL was not distributed with this file, You can obtain one at
8 * http://mozilla.org/MPL/2.0/.
10 #include <org/genivi/am/RoutingControlStubDefault.h>
16 RoutingControlStubDefault::RoutingControlStubDefault():
17 remoteEventHandler_(this),
18 interfaceVersion_(RoutingControl::getInterfaceVersion()) {
21 const CommonAPI::Version& RoutingControlStubDefault::getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId) {
22 return interfaceVersion_;
25 RoutingControlStubRemoteEvent* RoutingControlStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter) {
26 CommonAPI::Stub<RoutingControlStubAdapter, RoutingControlStubRemoteEvent>::stubAdapter_ = stubAdapter;
27 return &remoteEventHandler_;
32 * aborts an asynchronous action.
33 (at)return E_OK on success, E_UNKNOWN on error,
34 * E_NON_EXISTENT if handle was not found
36 void RoutingControlStubDefault::asyncAbort(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle) {
37 // Call old style methods in default
40 void RoutingControlStubDefault::asyncAbort(am_Handle_s handle) {
41 // No operation in default
45 * connects a source to a sink
46 (at)return E_OK on success, E_UNKNOWN on error,
47 * E_WRONG_FORMAT in case am_CustomConnectionFormat_t does not match
49 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_CustomConnectionFormat_t connectionFormat) {
50 // Call old style methods in default
51 asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat);
53 void RoutingControlStubDefault::asyncConnect(am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_CustomConnectionFormat_t connectionFormat) {
54 // No operation in default
58 * disconnect a connection with given connectionID
59 (at)return E_OK on success,
60 * E_UNKNOWN on error, E_NON_EXISTENT if connection was not found
62 void RoutingControlStubDefault::asyncDisconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_connectionID_t connectionID) {
63 // Call old style methods in default
64 asyncDisconnect(handle, connectionID);
66 void RoutingControlStubDefault::asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID) {
67 // No operation in default
71 * this method is used to set the volume of a sink. This function is used to drive
72 * ramps, to mute or unmute or directly set the value. The difference is made
73 * through the ramptype.
74 (at)return E_OK on success, E_UNKNOWN on error,
75 * E_OUT_OF_RANGE if new volume is out of range
77 void RoutingControlStubDefault::asyncSetSinkVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) {
78 // Call old style methods in default
79 asyncSetSinkVolume(handle, sinkID, volume, ramp, time);
81 void RoutingControlStubDefault::asyncSetSinkVolume(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) {
82 // No operation in default
86 * sets the volume of a source. This method is used to set the volume of a sink.
87 * This function is used to drive ramps, to mute or unmute or directly set the
88 * value. The difference is made through the ramptype.
90 * success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of
92 triggers the acknowledge ackSourceVolumeChange
94 void RoutingControlStubDefault::asyncSetSourceVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) {
95 // Call old style methods in default
96 asyncSetSourceVolume(handle, sourceID, volume, ramp, time);
98 void RoutingControlStubDefault::asyncSetSourceVolume(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_CustomRampType_t ramp, am_time_t time) {
99 // No operation in default
103 * This function is used to set the source state of a particular
105 (at)return E_OK on success, E_UNKNOWN on error
107 void RoutingControlStubDefault::asyncSetSourceState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) {
108 // Call old style methods in default
109 asyncSetSourceState(handle, sourceID, state);
111 void RoutingControlStubDefault::asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) {
112 // No operation in default
116 * this function sets the sinksoundproperty.
117 (at)return E_OK on success,
118 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
120 void RoutingControlStubDefault::asyncSetSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) {
121 // Call old style methods in default
122 asyncSetSinkSoundProperties(handle, sinkID, listSoundProperties);
124 void RoutingControlStubDefault::asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) {
125 // No operation in default
129 * this function sets the sinksoundproperty.
130 (at)return E_OK on success,
131 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
133 void RoutingControlStubDefault::asyncSetSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) {
134 // Call old style methods in default
135 asyncSetSinkSoundProperty(handle, sinkID, soundProperty);
137 void RoutingControlStubDefault::asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) {
138 // No operation in default
142 * this function sets the sourcesoundproperty.
143 (at)return E_OK on success,
144 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
146 void RoutingControlStubDefault::asyncSetSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) {
147 // Call old style methods in default
148 asyncSetSourceSoundProperties(handle, sourceID, listSoundProperties);
150 void RoutingControlStubDefault::asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) {
151 // No operation in default
155 * this function sets the sourcesoundproperty.
156 (at)return E_OK on success,
157 * E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
159 void RoutingControlStubDefault::asyncSetSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) {
160 // Call old style methods in default
161 asyncSetSourceSoundProperty(handle, sourceID, soundProperty);
163 void RoutingControlStubDefault::asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) {
164 // No operation in default
168 * this function triggers crossfading.
169 (at)return E_OK on success, E_UNKNOWN on
172 void RoutingControlStubDefault::asyncCrossFade(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_CustomRampType_t rampType, am_time_t time) {
173 // Call old style methods in default
174 asyncCrossFade(handle, crossfaderID, hotSink, rampType, time);
176 void RoutingControlStubDefault::asyncCrossFade(am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_CustomRampType_t rampType, am_time_t time) {
177 // No operation in default
181 * this function is used for early and late audio functions to set the domain
183 (at)return E_OK on success, E_UNKNOWN on error
185 void RoutingControlStubDefault::setDomainState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) {
186 // Call old style methods in default
187 setDomainState(domainID, domainState, error);
189 void RoutingControlStubDefault::setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) {
190 // No operation in default
193 void RoutingControlStubDefault::asyncSetVolumes(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_Volumes_L volumes) {
194 // Call old style methods in default
195 asyncSetVolumes(handle, volumes);
197 void RoutingControlStubDefault::asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes) {
198 // No operation in default
201 void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) {
202 // Call old style methods in default
203 asyncSetSinkNotificationConfiguration(handle, sinkID, notificationConfiguration);
205 void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) {
206 // No operation in default
209 void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) {
210 // Call old style methods in default
211 asyncSetSourceNotificationConfiguration(handle, sourceID, notificationConfiguration);
213 void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) {
214 // No operation in default
220 RoutingControlStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlStubDefault* defaultStub):
221 defaultStub_(defaultStub) {
225 } // namespace genivi