* Bug #100 - removed projecttypes.h which causes compiling conflicts
[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.5.201312121915.
4 * Used org.franca.core 0.8.11.201401091023.
5 *
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/.
9 */
10 #include <org/genivi/am/RoutingControlStubDefault.h>
11
12 namespace org {
13 namespace genivi {
14 namespace am {
15
16 RoutingControlStubDefault::RoutingControlStubDefault():
17         remoteEventHandler_(this),
18         interfaceVersion_(RoutingControl::getInterfaceVersion()) {
19 }
20
21 const CommonAPI::Version& RoutingControlStubDefault::getInterfaceVersion(std::shared_ptr<CommonAPI::ClientId> clientId) {
22     return interfaceVersion_;
23 }
24
25 RoutingControlStubRemoteEvent* RoutingControlStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter) {
26     CommonAPI::Stub<RoutingControlStubAdapter, RoutingControlStubRemoteEvent>::stubAdapter_ = stubAdapter;
27     return &remoteEventHandler_;
28 }
29
30
31 /**
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
35  */
36 void RoutingControlStubDefault::asyncAbort(const std::shared_ptr<CommonAPI::ClientId> clientId, am_Handle_s handle) {
37     // Call old style methods in default 
38     asyncAbort(handle);
39 }
40 void RoutingControlStubDefault::asyncAbort(am_Handle_s handle) {
41     // No operation in default
42 }
43
44 /**
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
48  */
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);
52 }
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
55 }
56
57 /**
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
61  */
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);
65 }
66 void RoutingControlStubDefault::asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID) {
67     // No operation in default
68 }
69
70 /**
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
76  */
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);
80 }
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
83 }
84
85 /**
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.
89 (at)return E_OK on
90  *  success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of
91  *  range.
92 triggers the acknowledge ackSourceVolumeChange
93  */
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);
97 }
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
100 }
101
102 /**
103  * This function is used to set the source state of a particular
104  *  source.
105 (at)return E_OK on success, E_UNKNOWN on error
106  */
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);
110 }
111 void RoutingControlStubDefault::asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) {
112     // No operation in default
113 }
114
115 /**
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
119  */
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);
123 }
124 void RoutingControlStubDefault::asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) {
125     // No operation in default
126 }
127
128 /**
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
132  */
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);
136 }
137 void RoutingControlStubDefault::asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) {
138     // No operation in default
139 }
140
141 /**
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
145  */
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);
149 }
150 void RoutingControlStubDefault::asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) {
151     // No operation in default
152 }
153
154 /**
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
158  */
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);
162 }
163 void RoutingControlStubDefault::asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) {
164     // No operation in default
165 }
166
167 /**
168  * this function triggers crossfading.
169 (at)return E_OK on success, E_UNKNOWN on
170  *  error
171  */
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);
175 }
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
178 }
179
180 /**
181  * this function is used for early and late audio functions to set the domain
182  *  state
183 (at)return E_OK on success, E_UNKNOWN on error
184  */
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);
188 }
189 void RoutingControlStubDefault::setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) {
190     // No operation in default
191 }
192
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);
196 }
197 void RoutingControlStubDefault::asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes) {
198     // No operation in default
199 }
200
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);
204 }
205 void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) {
206     // No operation in default
207 }
208
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);
212 }
213 void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) {
214     // No operation in default
215 }
216
217
218
219
220 RoutingControlStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlStubDefault* defaultStub):
221         defaultStub_(defaultStub) {
222 }
223
224 } // namespace am
225 } // namespace genivi
226 } // namespace org