/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 3.1.2.v201507021046. * Used org.franca.core 0.9.1.201412191134. * * 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 #include namespace v1_0 { namespace fake { namespace legacy { namespace service { std::shared_ptr createLegacyInterfaceDBusStubAdapter( const CommonAPI::DBus::DBusAddress &_address, const std::shared_ptr &_connection, const std::shared_ptr &_stub) { return std::make_shared(_address, _connection, _stub); } INITIALIZER(registerLegacyInterfaceDBusStubAdapter) { CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( LegacyInterface::getInterface(), &createLegacyInterfaceDBusStubAdapter); } LegacyInterfaceDBusStubAdapterInternal::~LegacyInterfaceDBusStubAdapterInternal() { deactivateManagedInstances(); LegacyInterfaceDBusStubAdapterHelper::deinit(); } void LegacyInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { } const char* LegacyInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { static const std::string introspectionData = "\n" "" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" ; return introspectionData.c_str(); } CommonAPI::DBus::DBusGetAttributeStubDispatcher< LegacyInterfaceStub, CommonAPI::Version > LegacyInterfaceDBusStubAdapterInternal::getLegacyInterfaceInterfaceVersionStubDispatcher(&LegacyInterfaceStub::getInterfaceVersion, "uu"); CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< LegacyInterfaceStub, std::tuple, std::tuple, std::tuple, std::tuple > LegacyInterfaceDBusStubAdapterInternal::testMethodStubDispatcher( &LegacyInterfaceStub::TestMethod, "ii", std::make_tuple(static_cast(nullptr)), std::make_tuple(static_cast(nullptr), static_cast(nullptr))); CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< LegacyInterfaceStub, std::tuple<>, std::tuple, std::tuple<>, std::tuple > LegacyInterfaceDBusStubAdapterInternal::otherTestMethodStubDispatcher( &LegacyInterfaceStub::OtherTestMethod, "si", std::make_tuple(), std::make_tuple(static_cast(nullptr), static_cast(nullptr))); CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< LegacyInterfaceStub, std::tuple<>, std::tuple<>, std::tuple<>, std::tuple<> > LegacyInterfaceDBusStubAdapterInternal::finishStubDispatcher( &LegacyInterfaceStub::finish, "", std::make_tuple(), std::make_tuple()); const LegacyInterfaceDBusStubAdapterHelper::StubDispatcherTable& LegacyInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { return stubDispatcherTable_; } const CommonAPI::DBus::StubAttributeTable& LegacyInterfaceDBusStubAdapterInternal::getStubAttributeTable() { return stubAttributeTable_; } LegacyInterfaceDBusStubAdapterInternal::LegacyInterfaceDBusStubAdapterInternal( const CommonAPI::DBus::DBusAddress &_address, const std::shared_ptr &_connection, const std::shared_ptr &_stub) : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), LegacyInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), stubDispatcherTable_({ { { "TestMethod", "i" }, &fake::legacy::service::LegacyInterfaceDBusStubAdapterInternal::testMethodStubDispatcher }, { { "OtherTestMethod", "" }, &fake::legacy::service::LegacyInterfaceDBusStubAdapterInternal::otherTestMethodStubDispatcher }, { { "finish", "" }, &fake::legacy::service::LegacyInterfaceDBusStubAdapterInternal::finishStubDispatcher } }), stubAttributeTable_() { stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &fake::legacy::service::LegacyInterfaceDBusStubAdapterInternal::getLegacyInterfaceInterfaceVersionStubDispatcher }); } const bool LegacyInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { return false; } } // namespace service } // namespace legacy } // namespace fake } // namespace v1_0