d7819a33fcdcf30861a69832f9f96290bd071842
[profile/ivi/genivi/genivi-audio-manager.git] / PluginCommandInterfaceCAPI / src-gen / org / genivi / am / CommandControlStub.h
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 /**
22  * The interface towards the Controlling Instance (e.g HMI). It handles the
23  *  communication towards the HMI and other system components who need to interact
24  *  with the audiomanagement.
25 There are two rules that have to be kept in mind
26  *  when implementing against this interface:
27  * @author Christian Mueller
28  */
29 #ifndef ORG_GENIVI_AM_Command_Control_STUB_H_
30 #define ORG_GENIVI_AM_Command_Control_STUB_H_
31
32
33
34 #include <org/genivi/am.h>
35
36 #include "CommandControl.h"
37
38 #if !defined (COMMONAPI_INTERNAL_COMPILATION)
39 #define COMMONAPI_INTERNAL_COMPILATION
40 #endif
41
42 #include <CommonAPI/InputStream.h>
43 #include <CommonAPI/OutputStream.h>
44 #include <CommonAPI/SerializableStruct.h>
45 #include <cstdint>
46 #include <string>
47 #include <unordered_set>
48 #include <vector>
49
50 #include <CommonAPI/Stub.h>
51
52 #undef COMMONAPI_INTERNAL_COMPILATION
53
54 namespace org {
55 namespace genivi {
56 namespace am {
57
58 /**
59  * Receives messages from remote and handles all dispatching of deserialized calls
60  * to a stub for the service CommandControl. Also provides means to send broadcasts
61  * and attribute-changed-notifications of observable attributes as defined by this service.
62  * An application developer should not need to bother with this class.
63  */
64 class CommandControlStubAdapter: virtual public CommonAPI::StubAdapter, public CommandControl {
65  public:
66
67     /**
68      * Sends a broadcast event for newMainConnection. Should not be called directly.
69      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
70      */
71     virtual void fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) = 0;
72     /**
73      * Sends a broadcast event for removedMainConnection. Should not be called directly.
74      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
75      */
76     virtual void fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) = 0;
77     /**
78      * Sends a broadcast event for newSink. Should not be called directly.
79      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
80      */
81     virtual void fireNewSinkEvent(const am_SinkType_s& sink) = 0;
82     /**
83      * Sends a broadcast event for removedSink. Should not be called directly.
84      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
85      */
86     virtual void fireRemovedSinkEvent(const am_sinkID_t& sinkID) = 0;
87     /**
88      * Sends a broadcast event for newSource. Should not be called directly.
89      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
90      */
91     virtual void fireNewSourceEvent(const am_SourceType_s& source) = 0;
92     /**
93      * Sends a broadcast event for removedSource. Should not be called directly.
94      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
95      */
96     virtual void fireRemovedSourceEvent(const am_sourceID_t& source) = 0;
97     /**
98      * Sends a broadcast event for numberOfSinkClassesChanged. Should not be called directly.
99      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
100      */
101     virtual void fireNumberOfSinkClassesChangedEvent() = 0;
102     /**
103      * Sends a broadcast event for numberOfSourceClassesChanged. Should not be called directly.
104      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
105      */
106     virtual void fireNumberOfSourceClassesChangedEvent() = 0;
107     /**
108      * Sends a broadcast event for mainConnectionStateChanged. Should not be called directly.
109      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
110      */
111     virtual void fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) = 0;
112     /**
113      * Sends a broadcast event for mainSinkSoundPropertyChanged. Should not be called directly.
114      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
115      */
116     virtual void fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) = 0;
117     /**
118      * Sends a broadcast event for mainSourceSoundPropertyChanged. Should not be called directly.
119      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
120      */
121     virtual void fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) = 0;
122     /**
123      * Sends a broadcast event for sinkAvailabilityChanged. Should not be called directly.
124      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
125      */
126     virtual void fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) = 0;
127     /**
128      * Sends a broadcast event for sourceAvailabilityChanged. Should not be called directly.
129      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
130      */
131     virtual void fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) = 0;
132     /**
133      * Sends a broadcast event for volumeChanged. Should not be called directly.
134      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
135      */
136     virtual void fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) = 0;
137     /**
138      * Sends a broadcast event for sinkMuteStateChanged. Should not be called directly.
139      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
140      */
141     virtual void fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) = 0;
142     /**
143      * Sends a broadcast event for systemPropertyChanged. Should not be called directly.
144      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
145      */
146     virtual void fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) = 0;
147     /**
148      * Sends a broadcast event for timingInformationChanged. Should not be called directly.
149      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
150      */
151     virtual void fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) = 0;
152     /**
153      * Sends a broadcast event for sinkUpdated. Should not be called directly.
154      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
155      */
156     virtual void fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
157     /**
158      * Sends a broadcast event for sourceUpdated. Should not be called directly.
159      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
160      */
161     virtual void fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
162     /**
163      * Sends a broadcast event for sinkNotification. Should not be called directly.
164      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
165      */
166     virtual void fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) = 0;
167     /**
168      * Sends a broadcast event for sourceNotification. Should not be called directly.
169      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
170      */
171     virtual void fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) = 0;
172     /**
173      * Sends a broadcast event for mainSinkNotificationConfigurationChanged. Should not be called directly.
174      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
175      */
176     virtual void fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
177     /**
178      * Sends a broadcast event for mainSourceNotificationConfigurationChanged. Should not be called directly.
179      * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
180      */
181     virtual void fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
182     
183     
184     virtual void deactivateManagedInstances() = 0;
185     
186 protected:
187     /**
188      * Defines properties for storing the ClientIds of clients / proxies that have
189      * subscribed to the selective broadcasts
190      */
191 };
192
193
194 /**
195  * Defines the necessary callbacks to handle remote set events related to the attributes
196  * defined in the IDL description for CommandControl.
197  * For each attribute two callbacks are defined:
198  * - a verification callback that allows to verify the requested value and to prevent setting
199  *   e.g. an invalid value ("onRemoteSet<AttributeName>").
200  * - an action callback to do local work after the attribute value has been changed
201  *   ("onRemote<AttributeName>Changed").
202  *
203  * This class and the one below are the ones an application developer needs to have
204  * a look at if he wants to implement a service.
205  */
206 class CommandControlStubRemoteEvent {
207  public:
208     virtual ~CommandControlStubRemoteEvent() { }
209
210 };
211
212
213 /**
214  * Defines the interface that must be implemented by any class that should provide
215  * the service CommandControl to remote clients.
216  * This class and the one above are the ones an application developer needs to have
217  * a look at if he wants to implement a service.
218  */
219 class CommandControlStub : public CommonAPI::Stub<CommandControlStubAdapter , CommandControlStubRemoteEvent> {
220  public:
221     virtual ~CommandControlStub() { }
222
223
224     /**
225      * connects a source to sink
226     (at)return E_OK on success, E_NOT_POSSIBLE on
227      *  failure, E_ALREADY_EXISTS if the connection does already exists
228      */
229     /// This is the method that will be called on remote calls on the method connect.
230     virtual void connect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_sinkID_t sinkID, am_mainConnectionID_t& mainConnectionID, am_Error_e& error) = 0;
231     /**
232      * disconnects a mainConnection
233     (at)return E_OK on successes, E_NON_EXISTENT if
234      *  the connection does not exist, E_NOT_POSSIBLE on error.
235      */
236     /// This is the method that will be called on remote calls on the method disconnect.
237     virtual void disconnect(const std::shared_ptr<CommonAPI::ClientId> clientId, am_mainConnectionID_t mainConnectionID, am_Error_e& error) = 0;
238     /**
239      * sets the volume for a sink
240     (at)return E_OK on success, E_UNKOWN on error,
241      *  E_OUT_OF_RANGE in case the value is out of range
242      */
243     /// This is the method that will be called on remote calls on the method setVolume.
244     virtual void setVolume(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_mainVolume_t volume, am_Error_e& error) = 0;
245     /**
246      * This function is used to increment or decrement the current volume for a
247      *  sink.
248     (at)return E_OK on success, E_UNKNOWN on error and E_OUT_OF_RANGE if
249      *  the value is not in the given volume range.
250      */
251     /// This is the method that will be called on remote calls on the method volumeStep.
252     virtual void volumeStep(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, int16_t volumeStep_, am_Error_e& error) = 0;
253     /**
254      * sets the mute state of a sink
255     (at)return E_OK on success, E_UNKNOWN on error.
256      *  If the mute state is already the desired one, the Daemon will return E_OK.
257      */
258     /// This is the method that will be called on remote calls on the method setSinkMuteState.
259     virtual void setSinkMuteState(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_MuteState_e muteState, am_Error_e& error) = 0;
260     /**
261      * This method is used to set sound properties, e.g. Equalizer Values. Since the
262      *  capabilities of the system can differ, the exact key value pairs can be
263      *  extended in each product
264     (at)return E_OK on success, E_OUT_OF_RANGE if value
265      *  exceeds range, E_UNKNOWN in case of an error
266      */
267     /// This is the method that will be called on remote calls on the method setMainSinkSoundProperty.
268     virtual void setMainSinkSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_MainSoundProperty_s soundProperty, am_Error_e& error) = 0;
269     /**
270      * This method is used to set sound properties, e.g. Equalizer Values. Since the
271      *  capabilities of the system can differ, the exact key value pairs can be
272      *  extended in each product
273     (at)return E_OK on success, E_OUT_OF_RANGE if value
274      *  exceeds range, E_UNKNOWN in case of an error
275      */
276     /// This is the method that will be called on remote calls on the method setMainSourceSoundProperty.
277     virtual void setMainSourceSoundProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_MainSoundProperty_s soundProperty, am_Error_e& error) = 0;
278     /**
279      * is used to set a specific system property.
280     (at)return E_OK on success,
281      *  E_OUT_OF_RANGE if value exceeds range, E_UNKNOWN in case of an error
282      */
283     /// This is the method that will be called on remote calls on the method setSystemProperty.
284     virtual void setSystemProperty(const std::shared_ptr<CommonAPI::ClientId> clientId, am_SystemProperty_s property, am_Error_e& error) = 0;
285     /**
286      * returns the actual list of MainConnections
287     (at)return E_OK on success,
288      *  E_DATABASE_ERROR on error
289      */
290     /// This is the method that will be called on remote calls on the method getListMainConnections.
291     virtual void getListMainConnections(const std::shared_ptr<CommonAPI::ClientId> clientId, am_MainConnection_L& listConnections, am_Error_e& error) = 0;
292     /**
293      * returns the actual list of Sinks
294     (at)return E_OK on success, E_DATABASE_ERROR
295      *  on error
296      */
297     /// This is the method that will be called on remote calls on the method getListMainSinks.
298     virtual void getListMainSinks(const std::shared_ptr<CommonAPI::ClientId> clientId, am_SinkType_L& listMainSinks, am_Error_e& error) = 0;
299     /**
300      * returns the actual list of Sources
301     (at)return E_OK on success,
302      *  E_DATABASE_ERROR on error
303      */
304     /// This is the method that will be called on remote calls on the method getListMainSources.
305     virtual void getListMainSources(const std::shared_ptr<CommonAPI::ClientId> clientId, am_SourceType_L& listMainSources, am_Error_e& error) = 0;
306     /**
307      * This is used to retrieve all source sound properties related to a source.
308      *  Returns a vector of the sound properties and values as pair
309     (at)return E_OK
310      *  on success, E_DATABASE_ERROR on error
311      */
312     /// This is the method that will be called on remote calls on the method getListMainSinkSoundProperties.
313     virtual void getListMainSinkSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error) = 0;
314     /**
315      * This is used to retrieve all source sound properties related to a
316      *  source.
317     (at)return E_OK on success, E_DATABASE_ERROR on error
318      */
319     /// This is the method that will be called on remote calls on the method getListMainSourceSoundProperties.
320     virtual void getListMainSourceSoundProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error) = 0;
321     /**
322      * This is used to retrieve SourceClass Information of all source classes
323      *  
324     (at)return E_OK on success, E_DATABASE_ERROR on error
325      */
326     /// This is the method that will be called on remote calls on the method getListSourceClasses.
327     virtual void getListSourceClasses(const std::shared_ptr<CommonAPI::ClientId> clientId, am_SourceClass_L& listSourceClasses, am_Error_e& error) = 0;
328     /**
329      * This is used to retrieve SinkClass Information of all sink classes 
330     (at)return
331      *  E_OK on success, E_DATABASE_ERROR on error
332      */
333     /// This is the method that will be called on remote calls on the method getListSinkClasses.
334     virtual void getListSinkClasses(const std::shared_ptr<CommonAPI::ClientId> clientId, am_SinkClass_L& listSinkClasses, am_Error_e& error) = 0;
335     /**
336      * Retrieves a complete list of all systemProperties.
337     (at)return E_OK on success,
338      *  E_DATABASE_ERROR on error
339      */
340     /// This is the method that will be called on remote calls on the method getListSystemProperties.
341     virtual void getListSystemProperties(const std::shared_ptr<CommonAPI::ClientId> clientId, am_SystemProperty_L& listSystemProperties, am_Error_e& error) = 0;
342     /**
343      * returns the delay in ms that the audiopath for the given mainConnection
344      *  has
345     (at)return E_OK on success, E_NOT_POSSIBLE if timing information is not
346      *  yet retrieved, E_DATABASE_ERROR on read error on the database
347      */
348     /// This is the method that will be called on remote calls on the method getTimingInformation.
349     virtual void getTimingInformation(const std::shared_ptr<CommonAPI::ClientId> clientId, am_mainConnectionID_t mainConnectionID, am_timeSync_t& delay, am_Error_e& error) = 0;
350     /**
351      * Retrieves the list of MainNotifications for a sink. Does not return the
352      *  possible ones.
353      */
354     /// This is the method that will be called on remote calls on the method getListMainSinkNotificationConfigurations.
355     virtual void getListMainSinkNotificationConfigurations(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0;
356     /**
357      * Retrieves the list of MainNotifications for a source. Does not return the
358      *  possible ones.
359      */
360     /// This is the method that will be called on remote calls on the method getListMainSourceNotificationConfigurations.
361     virtual void getListMainSourceNotificationConfigurations(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0;
362     /**
363      * sets a MainNotificationConfiuration. This can be used to turn on an off
364      *  notifications an to change the mode of the configuration.
365     (at)return E_OK on
366      *  success, E_NON_EXISTENT if sinkID does not exists, E_DATABASE_ERROR on error
367      */
368     /// This is the method that will be called on remote calls on the method setMainSinkNotificationConfiguration.
369     virtual void setMainSinkNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sinkID_t sinkID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error) = 0;
370     /**
371      * sets a MainNotificationConfiuration. This can be used to turn on an off
372      *  notifications an to change the mode of the configuration.
373     (at)return E_OK on
374      *  success, E_NON_EXISTENT if sourceID does not exists, E_DATABASE_ERROR on error
375      */
376     /// This is the method that will be called on remote calls on the method setMainSourceNotificationConfiguration.
377     virtual void setMainSourceNotificationConfiguration(const std::shared_ptr<CommonAPI::ClientId> clientId, am_sourceID_t sourceID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error) = 0;
378     /**
379      * Callback that is called when the number of connections change
380      */
381     /// Sends a broadcast event for newMainConnection.
382     virtual void fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) = 0;
383     /**
384      * Callback that is called when the number of connections change
385      */
386     /// Sends a broadcast event for removedMainConnection.
387     virtual void fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) = 0;
388     /**
389      * Callback that is called when the number of sinks change
390      */
391     /// Sends a broadcast event for newSink.
392     virtual void fireNewSinkEvent(const am_SinkType_s& sink) = 0;
393     /**
394      * Callback that is called when the number of sinks change
395      */
396     /// Sends a broadcast event for removedSink.
397     virtual void fireRemovedSinkEvent(const am_sinkID_t& sinkID) = 0;
398     /**
399      * Callback that is called when the number of sources change
400      */
401     /// Sends a broadcast event for newSource.
402     virtual void fireNewSourceEvent(const am_SourceType_s& source) = 0;
403     /**
404      * Callback that is called when the number of sources change
405      */
406     /// Sends a broadcast event for removedSource.
407     virtual void fireRemovedSourceEvent(const am_sourceID_t& source) = 0;
408     /**
409      * this callback is fired if the number of sink classes changed
410      */
411     /// Sends a broadcast event for numberOfSinkClassesChanged.
412     virtual void fireNumberOfSinkClassesChangedEvent() = 0;
413     /**
414      * this callback is fired if the number of source classes changed
415      */
416     /// Sends a broadcast event for numberOfSourceClassesChanged.
417     virtual void fireNumberOfSourceClassesChangedEvent() = 0;
418     /**
419      * This callback is called when the ConnectionState of a connection changed.
420      */
421     /// Sends a broadcast event for mainConnectionStateChanged.
422     virtual void fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) = 0;
423     /**
424      * this callback indicates that a sinkSoundProperty has changed.
425      */
426     /// Sends a broadcast event for mainSinkSoundPropertyChanged.
427     virtual void fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) = 0;
428     /**
429      * this callback indicates that a sourceSoundProperty has changed.
430      */
431     /// Sends a broadcast event for mainSourceSoundPropertyChanged.
432     virtual void fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) = 0;
433     /**
434      * this callback is called when the availability of a sink has changed
435      */
436     /// Sends a broadcast event for sinkAvailabilityChanged.
437     virtual void fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) = 0;
438     /**
439      * this callback is called when the availability of source has changed.
440      */
441     /// Sends a broadcast event for sourceAvailabilityChanged.
442     virtual void fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) = 0;
443     /**
444      * this callback indicates a volume change on the indicated sink
445      */
446     /// Sends a broadcast event for volumeChanged.
447     virtual void fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) = 0;
448     /**
449      * this callback indicates a mute state change on a sink.
450      */
451     /// Sends a broadcast event for sinkMuteStateChanged.
452     virtual void fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) = 0;
453     /**
454      * is fired if a systemProperty changed
455      */
456     /// Sends a broadcast event for systemPropertyChanged.
457     virtual void fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) = 0;
458     /**
459      * This callback is fired if the timinginformation for a mainConnectionID changed
460      */
461     /// Sends a broadcast event for timingInformationChanged.
462     virtual void fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) = 0;
463     /**
464      * This callback is called when a sink is updated.
465      */
466     /// Sends a broadcast event for sinkUpdated.
467     virtual void fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
468     /**
469      * This callback is called when a source is updated.
470      */
471     /// Sends a broadcast event for sourceUpdated.
472     virtual void fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
473     /**
474      * This callback is called when a notificated value of a sink changes.
475      */
476     /// Sends a broadcast event for sinkNotification.
477     virtual void fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) = 0;
478     /**
479      * This callback is called when a notifcated value of a source changes.
480      */
481     /// Sends a broadcast event for sourceNotification.
482     virtual void fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) = 0;
483     /**
484      * This callback is triggered when a mainNotificationConfiguration is changed.
485      */
486     /// Sends a broadcast event for mainSinkNotificationConfigurationChanged.
487     virtual void fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
488     /**
489      * This callback is triggered when a mainNotificationConfiguration is changed.
490      */
491     /// Sends a broadcast event for mainSourceNotificationConfigurationChanged.
492     virtual void fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
493     
494 };
495
496 } // namespace am
497 } // namespace genivi
498 } // namespace org
499
500 #endif // ORG_GENIVI_AM_Command_Control_STUB_H_