* updated license headers
[profile/ivi/genivi/genivi-audio-manager.git] / PluginRoutingInterfaceDbus / src / CAmRoutingSenderDbus.cpp
1 /** Copyright (c) 2012 GENIVI Alliance
2  *  Copyright (c) 2012 BMW
3  *
4  *  \author Christian Mueller, christian.ei.mueller@bmw.de BMW 2011,2012
5  *
6  *  \copyright
7  *  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,
8  *  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,
9  *  subject to the following conditions:
10  *  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11  *  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.
12  *  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
13  *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14  *
15  *  For further information see http://www.genivi.org/.
16  */
17
18 #include "CAmRoutingSenderDbus.h"
19
20 extern "C" IAmRoutingSend* PluginRoutingInterfaceDbusFactory()
21 {
22     return (new CAmRoutingSenderDbus());
23 }
24
25 extern "C" void destroyRoutingPluginInterfaceDbus(IAmRoutingSend* routingSendInterface)
26 {
27     delete routingSendInterface;
28 }
29
30 CAmRoutingSenderDbus::CAmRoutingSenderDbus()
31 {
32 }
33
34 CAmRoutingSenderDbus::~CAmRoutingSenderDbus()
35 {
36 }
37
38 am_Error_e CAmRoutingSenderDbus::asyncAbort(const am_Handle_s handle)
39 {
40     (void) handle;
41     return (E_NOT_USED);
42 }
43
44 am_Error_e CAmRoutingSenderDbus::asyncConnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_ConnectionFormat_e connectionFormat)
45 {
46     (void) handle;
47     (void) connectionID;
48     (void) sourceID;
49     (void) sinkID;
50     (void) connectionFormat;
51     return (E_NOT_USED);
52 }
53
54 am_Error_e CAmRoutingSenderDbus::asyncDisconnect(const am_Handle_s handle, const am_connectionID_t connectionID)
55 {
56     (void) handle;
57     (void) connectionID;
58     return (E_NOT_USED);
59 }
60
61 am_Error_e CAmRoutingSenderDbus::asyncSetSinkVolume(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume, const am_RampType_e ramp, const am_time_t time)
62 {
63     (void) handle;
64     (void) sinkID;
65     (void) volume;
66     (void) ramp;
67     (void) time;
68     return (E_NOT_USED);
69 }
70
71 am_Error_e CAmRoutingSenderDbus::asyncSetSourceVolume(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume, const am_RampType_e ramp, const am_time_t time)
72 {
73     (void) handle;
74     (void) sourceID;
75     (void) volume;
76     (void) ramp;
77     (void) time;
78     return (E_NOT_USED);
79 }
80
81 am_Error_e CAmRoutingSenderDbus::asyncSetSourceState(const am_Handle_s handle, const am_sourceID_t sourceID, const am_SourceState_e state)
82 {
83     (void) handle;
84     (void) sourceID;
85     (void) state;
86     return (E_NOT_USED);
87 }
88
89 am_Error_e CAmRoutingSenderDbus::asyncCrossFade(const am_Handle_s handle, const am_crossfaderID_t crossfaderID, const am_HotSink_e hotSink, const am_RampType_e rampType, const am_time_t time)
90 {
91     (void) handle;
92     (void) crossfaderID;
93     (void) hotSink;
94     (void) rampType;
95     (void) time;
96     return (E_NOT_USED);
97 }
98
99 am_Error_e CAmRoutingSenderDbus::setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState)
100 {
101     (void) domainID;
102     (void) domainState;
103     return (E_NOT_USED);
104 }
105
106 am_Error_e CAmRoutingSenderDbus::startupInterface(IAmRoutingReceive *routingreceiveinterface)
107 {
108     (void)routingreceiveinterface;
109     return (E_NOT_USED);
110 }
111
112 void CAmRoutingSenderDbus::setRoutingReady(const uint16_t handle)
113 {
114     (void) handle;
115 }
116
117 void CAmRoutingSenderDbus::setRoutingRundown(const uint16_t handle)
118 {
119     (void) handle;
120 }
121
122 am_Error_e CAmRoutingSenderDbus::returnBusName(std::string & BusName) const
123 {
124     BusName = "DbusPlugin";
125     return (E_OK);
126 }
127
128 am_Error_e CAmRoutingSenderDbus::asyncSetSinkSoundProperty(const am_Handle_s handle, const am_sinkID_t sinkID, const am_SoundProperty_s & soundProperty)
129 {
130     (void) handle;
131     (void) sinkID;
132     (void) soundProperty;
133     return (E_NOT_USED);
134 }
135
136 am_Error_e CAmRoutingSenderDbus::asyncSetSinkSoundProperties(const am_Handle_s handle, const am_sinkID_t sinkID, const std::vector<am_SoundProperty_s> & listSoundProperties)
137 {
138     (void) handle;
139     (void) sinkID;
140     (void) listSoundProperties;
141     return (E_NOT_USED);
142 }
143
144 am_Error_e CAmRoutingSenderDbus::asyncSetSourceSoundProperty(const am_Handle_s handle, const am_sourceID_t sourceID, const am_SoundProperty_s & soundProperty)
145 {
146     (void) handle;
147     (void) sourceID;
148     (void) soundProperty;
149     return (E_NOT_USED);
150 }
151
152 am_Error_e CAmRoutingSenderDbus::asyncSetSourceSoundProperties(const am_Handle_s handle, const am_sourceID_t sourceID, const std::vector<am_SoundProperty_s> & listSoundProperties)
153 {
154     (void) handle;
155     (void) sourceID;
156     (void) listSoundProperties;
157     return (E_NOT_USED);
158 }
159
160 void CAmRoutingSenderDbus::getInterfaceVersion(std::string & version) const
161 {
162     version=RoutingSendVersion;
163 }
164
165
166