summaryrefslogtreecommitdiff
path: root/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h
blob: 77b93fe0754b34e342e120a7ad9438e170b0c5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 2.1.6.v20140519.
* Used org.franca.core 0.8.11.201401091023.
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at
* http://mozilla.org/MPL/2.0/.
*/
/**
 * This class implements everything from Audiomanager -> RoutingAdapter
 * @author Christian Mueller
 */
#ifndef ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_
#define ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_

#include <org/genivi/am/RoutingControlStub.h>

#if !defined (COMMONAPI_INTERNAL_COMPILATION)
#define COMMONAPI_INTERNAL_COMPILATION
#endif

#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
#include <CommonAPI/DBus/DBusStubAdapter.h>
#include <CommonAPI/DBus/DBusFactory.h>
#include <CommonAPI/DBus/DBusServicePublisher.h>

#undef COMMONAPI_INTERNAL_COMPILATION

namespace org {
namespace genivi {
namespace am {

typedef CommonAPI::DBus::DBusStubAdapterHelper<RoutingControlStub> RoutingControlDBusStubAdapterHelper;

class RoutingControlDBusStubAdapterInternal: public virtual RoutingControlStubAdapter, public RoutingControlDBusStubAdapterHelper {
 public:
    RoutingControlDBusStubAdapterInternal(
            const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
            const std::string& commonApiAddress,
            const std::string& dbusInterfaceName,
            const std::string& dbusBusName,
            const std::string& dbusObjectPath,
            const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
            const std::shared_ptr<CommonAPI::StubBase>& stub);

    ~RoutingControlDBusStubAdapterInternal();

    virtual const bool hasFreedesktopProperties();




    const RoutingControlDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable();
    const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable();

    void deactivateManagedInstances();


static CommonAPI::DBus::DBusGetAttributeStubDispatcher<
        RoutingControlStub,
        CommonAPI::Version
        > getRoutingControlInterfaceVersionStubDispatcher;



/**
 * aborts an asynchronous action.
(at)return E_OK on success, E_UNKNOWN on error,
 *  E_NON_EXISTENT if handle was not found
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s>,
    std::tuple<>
    > asyncAbortStubDispatcher;
/**
 * connects a source to a sink
(at)return E_OK on success, E_UNKNOWN on error,
 *  E_WRONG_FORMAT in case am_ConnectionFormat_e does not match
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_connectionID_t, am_sourceID_t, am_sinkID_t, am_CustomConnectionFormat_t>,
    std::tuple<>
    > asyncConnectStubDispatcher;
/**
 * disconnect a connection with given connectionID
(at)return E_OK on success,
 *  E_UNKNOWN on error, E_NON_EXISTENT if connection was not found
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_connectionID_t>,
    std::tuple<>
    > asyncDisconnectStubDispatcher;
/**
 * this method is used to set the volume of a sink. This function is used to drive
 *  ramps, to mute or unmute or directly set the value. The difference is made
 *  through the ramptype.
(at)return E_OK on success, E_UNKNOWN on error,
 *  E_OUT_OF_RANGE if new volume is out of range
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sinkID_t, am_volume_t, am_CustomRampType_t, am_time_t>,
    std::tuple<>
    > asyncSetSinkVolumeStubDispatcher;
/**
 * sets the volume of a source. This method is used to set the volume of a sink.
 *  This function is used to drive ramps, to mute or unmute or directly set the
 *  value. The difference is made through the ramptype.
(at)return E_OK on
 *  success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of
 *  range.
triggers the acknowledge ackSourceVolumeChange
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sourceID_t, am_volume_t, am_CustomRampType_t, am_time_t>,
    std::tuple<>
    > asyncSetSourceVolumeStubDispatcher;
/**
 * This function is used to set the source state of a particular
 *  source.
(at)return E_OK on success, E_UNKNOWN on error
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sourceID_t, am_SourceState_e>,
    std::tuple<>
    > asyncSetSourceStateStubDispatcher;
/**
 * this function sets the sinksoundproperty.
(at)return E_OK on success, E_UNKNOWN
 *  on error, E_OUT_OF_RANGE in case the propery value is out of range
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sinkID_t, am_SoundProperty_L>,
    std::tuple<>
    > asyncSetSinkSoundPropertiesStubDispatcher;
/**
 * this function sets the sinksoundproperty.
(at)return E_OK on success, E_UNKNOWN
 *  on error, E_OUT_OF_RANGE in case the propery value is out of range
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sinkID_t, am_SoundProperty_s>,
    std::tuple<>
    > asyncSetSinkSoundPropertyStubDispatcher;
/**
 * this function sets the sourcesoundproperty.
(at)return E_OK on success,
 *  E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sourceID_t, am_SoundProperty_L>,
    std::tuple<>
    > asyncSetSourceSoundPropertiesStubDispatcher;
/**
 * this function sets the sourcesoundproperty.
(at)return E_OK on success,
 *  E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sourceID_t, am_SoundProperty_s>,
    std::tuple<>
    > asyncSetSourceSoundPropertyStubDispatcher;
/**
 * this function triggers crossfading.
(at)return E_OK on success, E_UNKNOWN on
 *  error
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_crossfaderID_t, am_HotSink_e, am_CustomRampType_t, am_time_t>,
    std::tuple<>
    > asyncCrossFadeStubDispatcher;
/**
 * this function is used for early and late audio functions to set the domain
 *  state
(at)return E_OK on success, E_UNKNOWN on error
 */
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_domainID_t, am_DomainState_e>,
    std::tuple<am_Error_e>
    > setDomainStateStubDispatcher;
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_Volumes_L>,
    std::tuple<>
    > asyncSetVolumesStubDispatcher;
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sinkID_t, am_NotificationConfiguration_s>,
    std::tuple<>
    > asyncSetSinkNotificationConfigurationStubDispatcher;
static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
    RoutingControlStub,
    std::tuple<am_Handle_s, am_sourceID_t, am_NotificationConfiguration_s>,
    std::tuple<>
    > asyncSetSourceNotificationConfigurationStubDispatcher;




 protected:
    virtual const char* getMethodsDBusIntrospectionXmlData() const;

 private:
    RoutingControlDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_;
    CommonAPI::DBus::StubAttributeTable stubAttributeTable_;
};

class RoutingControlDBusStubAdapter: public RoutingControlDBusStubAdapterInternal, public std::enable_shared_from_this<RoutingControlDBusStubAdapter> {
public:
    RoutingControlDBusStubAdapter(
                         const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
                         const std::string& commonApiAddress,
                         const std::string& dbusInterfaceName,
                         const std::string& dbusBusName,
                         const std::string& dbusObjectPath,
                         const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
                         const std::shared_ptr<CommonAPI::StubBase>& stub) :
            CommonAPI::DBus::DBusStubAdapter(
                            factory,
                            commonApiAddress,
                            dbusInterfaceName,
                            dbusBusName,
                            dbusObjectPath,
                            dbusConnection,
                            false),
            RoutingControlDBusStubAdapterInternal(
                            factory,
                            commonApiAddress,
                            dbusInterfaceName,
                            dbusBusName,
                            dbusObjectPath,
                            dbusConnection,
                            stub) { }
};

} // namespace am
} // namespace genivi
} // namespace org

#endif // ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_