increased version number to 2.1.5 and regenerated code for test fidl
[profile/ivi/common-api-dbus-runtime.git] / src / test / commonapi / tests / ExtendedInterfaceDBusProxy.cpp
1 /*
2 * This file was generated by the CommonAPI Generators.
3 * Used org.genivi.commonapi.core 2.1.5.qualifier.
4 * Used org.franca.core 0.8.10.201309262002.
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 "ExtendedInterfaceDBusProxy.h"
11
12 namespace commonapi {
13 namespace tests {
14
15 std::shared_ptr<CommonAPI::DBus::DBusProxy> createExtendedInterfaceDBusProxy(
16                     const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
17                     const std::string& commonApiAddress,
18                     const std::string& interfaceName,
19                     const std::string& busName,
20                     const std::string& objectPath,
21                     const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
22     return std::make_shared<ExtendedInterfaceDBusProxy>(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
23 }
24
25 __attribute__((constructor)) void registerExtendedInterfaceDBusProxy(void) {
26     CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(ExtendedInterface::getInterfaceId(),
27        &createExtendedInterfaceDBusProxy);
28 }
29
30 ExtendedInterfaceDBusProxy::ExtendedInterfaceDBusProxy(
31                     const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
32                     const std::string& commonApiAddress,
33                     const std::string& interfaceName,
34                     const std::string& busName,
35                     const std::string& objectPath,
36                     const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
37         TestInterfaceDBusProxy(
38                     factory,
39                     commonApiAddress,
40                     interfaceName,
41                     busName,
42                     objectPath,
43                     dbusProxyconnection),
44         CommonAPI::DBus::DBusProxy(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
45     {
46     }
47
48
49
50 void ExtendedInterfaceDBusProxy::TestIntMethodExtended(const uint32_t& inInt, CommonAPI::CallStatus& callStatus) {
51     CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t>,
52                                      CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
53         *this,
54         "TestIntMethodExtended",
55         "u",
56         inInt,
57         callStatus
58         );
59 }
60 std::future<CommonAPI::CallStatus> ExtendedInterfaceDBusProxy::TestIntMethodExtendedAsync(const uint32_t& inInt, TestIntMethodExtendedAsyncCallback callback) {
61     return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t>,
62                                      CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
63         *this,
64         "TestIntMethodExtended",
65         "u",
66         inInt, 
67         std::move(callback));
68 }
69
70
71
72 void ExtendedInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
73     ownVersionMajor = 1;
74     ownVersionMinor = 0;
75 }
76
77 } // namespace tests
78 } // namespace commonapi