/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 2.1.4.qualifier. * Used org.franca.core 0.8.10.201309262002. * * 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/. */ #include "TestInterfaceDBusProxy.h" namespace commonapi { namespace tests { std::shared_ptr createTestInterfaceDBusProxy( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& interfaceName, const std::string& busName, const std::string& objectPath, const std::shared_ptr& dbusProxyConnection) { return std::make_shared(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection); } __attribute__((constructor)) void registerTestInterfaceDBusProxy(void) { CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(TestInterface::getInterfaceId(), &createTestInterfaceDBusProxy); } TestInterfaceDBusProxy::TestInterfaceDBusProxy( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& interfaceName, const std::string& busName, const std::string& objectPath, const std::shared_ptr& dbusProxyconnection): CommonAPI::DBus::DBusProxy(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection) ,testPredefinedTypeAttribute_(*this, "onTestPredefinedTypeAttributeAttributeChanged", "setTestPredefinedTypeAttributeAttribute", "u", "getTestPredefinedTypeAttributeAttribute"), testDerivedStructAttribute_(*this, "onTestDerivedStructAttributeAttributeChanged", "setTestDerivedStructAttributeAttribute", "(sqi)", "getTestDerivedStructAttributeAttribute"), testDerivedArrayAttribute_(*this, "onTestDerivedArrayAttributeAttributeChanged", "setTestDerivedArrayAttributeAttribute", "at", "getTestDerivedArrayAttributeAttribute") , testPredefinedTypeBroadcast_(*this, "TestPredefinedTypeBroadcast", "us"), testSelectiveBroadcastSelective_(*this, "TestSelectiveBroadcast", ""), testBroadcastWithOutArgsSelective_(*this, "TestBroadcastWithOutArgs", "us") { } TestInterfaceDBusProxy::TestPredefinedTypeAttributeAttribute& TestInterfaceDBusProxy::getTestPredefinedTypeAttributeAttribute() { return testPredefinedTypeAttribute_; } TestInterfaceDBusProxy::TestDerivedStructAttributeAttribute& TestInterfaceDBusProxy::getTestDerivedStructAttributeAttribute() { return testDerivedStructAttribute_; } TestInterfaceDBusProxy::TestDerivedArrayAttributeAttribute& TestInterfaceDBusProxy::getTestDerivedArrayAttributeAttribute() { return testDerivedArrayAttribute_; } TestInterfaceDBusProxy::TestPredefinedTypeBroadcastEvent& TestInterfaceDBusProxy::getTestPredefinedTypeBroadcastEvent() { return testPredefinedTypeBroadcast_; } TestInterfaceDBusProxy::TestSelectiveBroadcastSelectiveEvent& TestInterfaceDBusProxy::getTestSelectiveBroadcastSelectiveEvent() { return testSelectiveBroadcastSelective_; } TestInterfaceDBusProxy::TestBroadcastWithOutArgsSelectiveEvent& TestInterfaceDBusProxy::getTestBroadcastWithOutArgsSelectiveEvent() { return testBroadcastWithOutArgsSelective_; } void TestInterfaceDBusProxy::testEmptyMethod(CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "testEmptyMethod", "", callStatus ); } std::future TestInterfaceDBusProxy::testEmptyMethodAsync(TestEmptyMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "testEmptyMethod", "", std::move(callback)); } void TestInterfaceDBusProxy::testVoidPredefinedTypeMethod(const uint32_t& uint32Value, const std::string& stringValue, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "testVoidPredefinedTypeMethod", "us", uint32Value, stringValue, callStatus ); } std::future TestInterfaceDBusProxy::testVoidPredefinedTypeMethodAsync(const uint32_t& uint32Value, const std::string& stringValue, TestVoidPredefinedTypeMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "testVoidPredefinedTypeMethod", "us", uint32Value, stringValue, std::move(callback)); } void TestInterfaceDBusProxy::testPredefinedTypeMethod(const uint32_t& uint32InValue, const std::string& stringInValue, CommonAPI::CallStatus& callStatus, uint32_t& uint32OutValue, std::string& stringOutValue) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( *this, "testPredefinedTypeMethod", "us", uint32InValue, stringInValue, callStatus , uint32OutValue, stringOutValue); } std::future TestInterfaceDBusProxy::testPredefinedTypeMethodAsync(const uint32_t& uint32InValue, const std::string& stringInValue, TestPredefinedTypeMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( *this, "testPredefinedTypeMethod", "us", uint32InValue, stringInValue, std::move(callback)); } void TestInterfaceDBusProxy::testVoidDerivedTypeMethod(const DerivedTypeCollection::TestEnumExtended2& testEnumExtended2Value, const DerivedTypeCollection::TestMap& testMapValue, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "testVoidDerivedTypeMethod", "ia{ua(sq)}", testEnumExtended2Value, testMapValue, callStatus ); } std::future TestInterfaceDBusProxy::testVoidDerivedTypeMethodAsync(const DerivedTypeCollection::TestEnumExtended2& testEnumExtended2Value, const DerivedTypeCollection::TestMap& testMapValue, TestVoidDerivedTypeMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "testVoidDerivedTypeMethod", "ia{ua(sq)}", testEnumExtended2Value, testMapValue, std::move(callback)); } void TestInterfaceDBusProxy::testDerivedTypeMethod(const DerivedTypeCollection::TestEnumExtended2& testEnumExtended2InValue, const DerivedTypeCollection::TestMap& testMapInValue, CommonAPI::CallStatus& callStatus, DerivedTypeCollection::TestEnumExtended2& testEnumExtended2OutValue, DerivedTypeCollection::TestMap& testMapOutValue) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( *this, "testDerivedTypeMethod", "ia{ua(sq)}", testEnumExtended2InValue, testMapInValue, callStatus , testEnumExtended2OutValue, testMapOutValue); } std::future TestInterfaceDBusProxy::testDerivedTypeMethodAsync(const DerivedTypeCollection::TestEnumExtended2& testEnumExtended2InValue, const DerivedTypeCollection::TestMap& testMapInValue, TestDerivedTypeMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( *this, "testDerivedTypeMethod", "ia{ua(sq)}", testEnumExtended2InValue, testMapInValue, std::move(callback)); } void TestInterfaceDBusProxy::TestArrayOfPolymorphicStructMethod(const std::vector>& inArray, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper>>, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "TestArrayOfPolymorphicStructMethod", "a(uv)", inArray, callStatus ); } std::future TestInterfaceDBusProxy::TestArrayOfPolymorphicStructMethodAsync(const std::vector>& inArray, TestArrayOfPolymorphicStructMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper>>, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "TestArrayOfPolymorphicStructMethod", "a(uv)", inArray, std::move(callback)); } void TestInterfaceDBusProxy::TestMapOfPolymorphicStructMethod(const DerivedTypeCollection::MapIntToPolymorphic& inMap, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "TestMapOfPolymorphicStructMethod", "a{y(uv)}", inMap, callStatus ); } std::future TestInterfaceDBusProxy::TestMapOfPolymorphicStructMethodAsync(const DerivedTypeCollection::MapIntToPolymorphic& inMap, TestMapOfPolymorphicStructMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "TestMapOfPolymorphicStructMethod", "a{y(uv)}", inMap, std::move(callback)); } void TestInterfaceDBusProxy::TestStructWithPolymorphicMemberMethod(const DerivedTypeCollection::StructWithPolymorphicMember& inStruct, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "TestStructWithPolymorphicMemberMethod", "(u(uv))", inStruct, callStatus ); } std::future TestInterfaceDBusProxy::TestStructWithPolymorphicMemberMethodAsync(const DerivedTypeCollection::StructWithPolymorphicMember& inStruct, TestStructWithPolymorphicMemberMethodAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "TestStructWithPolymorphicMemberMethod", "(u(uv))", inStruct, std::move(callback)); } void TestInterfaceDBusProxy::TestStructWithEnumKeyMapMember(const DerivedTypeCollection::StructWithEnumKeyMap& inStruct, CommonAPI::CallStatus& callStatus) { CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply( *this, "TestStructWithEnumKeyMapMember", "(a{is})", inStruct, callStatus ); } std::future TestInterfaceDBusProxy::TestStructWithEnumKeyMapMemberAsync(const DerivedTypeCollection::StructWithEnumKeyMap& inStruct, TestStructWithEnumKeyMapMemberAsyncCallback callback) { return CommonAPI::DBus::DBusProxyHelper, CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync( *this, "TestStructWithEnumKeyMapMember", "(a{is})", inStruct, std::move(callback)); } void TestInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { ownVersionMajor = 1; ownVersionMinor = 0; } } // namespace tests } // namespace commonapi