932f17ad0026f55f649d46b50ca58cd832b1a4c7
[profile/ivi/genivi/genivi-audio-manager.git] / PluginRoutingInterfaceCAPI / src-gen / org / genivi / am / RoutingControlStubDefault.cpp
1 /*
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.
5 *
6 * Copyright (c) 2012 BMW
7
8 * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
9
10 * \copyright
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
19 * For further information see http://www.genivi.org/.
20 */
21 #include <org/genivi/am/RoutingControlStubDefault.h>
22
23 namespace org {
24 namespace genivi {
25 namespace am {
26
27 RoutingControlStubDefault::RoutingControlStubDefault():
28         remoteEventHandler_(this) {
29 }
30
31 RoutingControlStubRemoteEvent* RoutingControlStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter) {
32     stubAdapter_ = stubAdapter;
33     return &remoteEventHandler_;
34 }
35
36
37 /**
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
41  */
42 void RoutingControlStubDefault::asyncAbort(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle) {
43     // Call old style methods in default 
44     asyncAbort(handle);
45 }
46 void RoutingControlStubDefault::asyncAbort(am_Handle_s handle) {
47     // No operation in default
48 }
49
50 /**
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
54  */
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);
58 }
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
61 }
62
63 /**
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
67  */
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);
71 }
72 void RoutingControlStubDefault::asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID) {
73     // No operation in default
74 }
75
76 /**
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
82  */
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);
86 }
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
89 }
90
91 /**
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.
95 (at)return E_OK on
96  *  success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of
97  *  range.
98 triggers the acknowledge ackSourceVolumeChange
99  */
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);
103 }
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
106 }
107
108 /**
109  * This function is used to set the source state of a particular
110  *  source.
111 (at)return E_OK on success, E_UNKNOWN on error
112  */
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);
116 }
117 void RoutingControlStubDefault::asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) {
118     // No operation in default
119 }
120
121 /**
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
125  */
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);
129 }
130 void RoutingControlStubDefault::asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) {
131     // No operation in default
132 }
133
134 /**
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
138  */
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);
142 }
143 void RoutingControlStubDefault::asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) {
144     // No operation in default
145 }
146
147 /**
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
151  */
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);
155 }
156 void RoutingControlStubDefault::asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) {
157     // No operation in default
158 }
159
160 /**
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
164  */
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);
168 }
169 void RoutingControlStubDefault::asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) {
170     // No operation in default
171 }
172
173 /**
174  * this function triggers crossfading.
175 (at)return E_OK on success, E_UNKNOWN on
176  *  error
177  */
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);
181 }
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
184 }
185
186 /**
187  * this function is used for early and late audio functions to set the domain
188  *  state
189 (at)return E_OK on success, E_UNKNOWN on error
190  */
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);
194 }
195 void RoutingControlStubDefault::setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) {
196     // No operation in default
197 }
198
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);
202 }
203 void RoutingControlStubDefault::asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes) {
204     // No operation in default
205 }
206
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);
210 }
211 void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) {
212     // No operation in default
213 }
214
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);
218 }
219 void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) {
220     // No operation in default
221 }
222
223
224
225
226 RoutingControlStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlStubDefault* defaultStub):
227         defaultStub_(defaultStub) {
228 }
229
230 } // namespace am
231 } // namespace genivi
232 } // namespace org