/* * 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 commonapi { namespace tests { std::shared_ptr createTestFreedesktopInterfaceDBusStubAdapter( const CommonAPI::DBus::DBusAddress &_address, const std::shared_ptr &_connection, const std::shared_ptr &_stub) { return std::make_shared(_address, _connection, _stub); } INITIALIZER(registerTestFreedesktopInterfaceDBusStubAdapter) { CommonAPI::DBus::Factory::get()->registerStubAdapterCreateMethod( TestFreedesktopInterface::getInterface(), &createTestFreedesktopInterfaceDBusStubAdapter); } TestFreedesktopInterfaceDBusStubAdapterInternal::~TestFreedesktopInterfaceDBusStubAdapterInternal() { deactivateManagedInstances(); TestFreedesktopInterfaceDBusStubAdapterHelper::deinit(); } void TestFreedesktopInterfaceDBusStubAdapterInternal::deactivateManagedInstances() { } const char* TestFreedesktopInterfaceDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { static const std::string introspectionData = "\n" "" "\n" "\n" "" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "" "\n" "\n" "\n" "\n" "\n" "" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "" "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" ; return introspectionData.c_str(); } CommonAPI::DBus::DBusGetAttributeStubDispatcher< TestFreedesktopInterfaceStub, CommonAPI::Version > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestFreedesktopInterfaceInterfaceVersionStubDispatcher(&TestFreedesktopInterfaceStub::getInterfaceVersion, "uu"); CommonAPI::DBus::DBusGetAttributeStubDispatcher< TestFreedesktopInterfaceStub, uint32_t > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher( &TestFreedesktopInterfaceStub::getTestPredefinedTypeAttributeAttribute , "u" ); CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< TestFreedesktopInterfaceStub, uint32_t > TestFreedesktopInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher( &TestFreedesktopInterfaceStub::getTestPredefinedTypeAttributeAttribute, &TestFreedesktopInterfaceStubRemoteEvent::onRemoteSetTestPredefinedTypeAttributeAttribute, &TestFreedesktopInterfaceStubRemoteEvent::onRemoteTestPredefinedTypeAttributeAttributeChanged ,&TestFreedesktopInterfaceStubAdapter::fireTestPredefinedTypeAttributeAttributeChanged ,"u" ); CommonAPI::DBus::DBusGetAttributeStubDispatcher< TestFreedesktopInterfaceStub, uint32_t > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestReadonlyAttributeAttributeStubDispatcher( &TestFreedesktopInterfaceStub::getTestReadonlyAttributeAttribute , "u" ); CommonAPI::DBus::DBusGetAttributeStubDispatcher< TestFreedesktopInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestStructExtended, ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher( &TestFreedesktopInterfaceStub::getTestDerivedStructAttributeAttribute , "(sqi)" ); CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< TestFreedesktopInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestStructExtended, ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t > TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher( &TestFreedesktopInterfaceStub::getTestDerivedStructAttributeAttribute, &TestFreedesktopInterfaceStubRemoteEvent::onRemoteSetTestDerivedStructAttributeAttribute, &TestFreedesktopInterfaceStubRemoteEvent::onRemoteTestDerivedStructAttributeAttributeChanged ,&TestFreedesktopInterfaceStubAdapter::fireTestDerivedStructAttributeAttributeChanged ,"(sqi)" ); CommonAPI::DBus::DBusGetAttributeStubDispatcher< TestFreedesktopInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t > TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher( &TestFreedesktopInterfaceStub::getTestDerivedArrayAttributeAttribute , "at" ); CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< TestFreedesktopInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t > TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher( &TestFreedesktopInterfaceStub::getTestDerivedArrayAttributeAttribute, &TestFreedesktopInterfaceStubRemoteEvent::onRemoteSetTestDerivedArrayAttributeAttribute, &TestFreedesktopInterfaceStubRemoteEvent::onRemoteTestDerivedArrayAttributeAttributeChanged ,&TestFreedesktopInterfaceStubAdapter::fireTestDerivedArrayAttributeAttributeChanged ,"at" ); void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestPredefinedTypeAttributeAttributeChanged(const uint32_t& value) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "onTestPredefinedTypeAttributeAttributeChanged", "u", value ); } void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestReadonlyAttributeAttributeChanged(const uint32_t& value) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "onTestReadonlyAttributeAttributeChanged", "u", value ); } void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestDerivedStructAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestStructExtended& value) { CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestStructExtended, ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t> deployedValue(value, static_cast<::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t*>(nullptr)); CommonAPI::DBus::DBusStubSignalHelper >> ::sendSignal( *this, "onTestDerivedStructAttributeAttributeChanged", "(sqi)", deployedValue ); } void TestFreedesktopInterfaceDBusStubAdapterInternal::fireTestDerivedArrayAttributeAttributeChanged(const ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64& value) { CommonAPI::Deployable<::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t> deployedValue(value, static_cast<::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t*>(nullptr)); CommonAPI::DBus::DBusStubSignalHelper >> ::sendSignal( *this, "onTestDerivedArrayAttributeAttributeChanged", "at", deployedValue ); } const TestFreedesktopInterfaceDBusStubAdapterHelper::StubDispatcherTable& TestFreedesktopInterfaceDBusStubAdapterInternal::getStubDispatcherTable() { return stubDispatcherTable_; } const CommonAPI::DBus::StubAttributeTable& TestFreedesktopInterfaceDBusStubAdapterInternal::getStubAttributeTable() { return stubAttributeTable_; } TestFreedesktopInterfaceDBusStubAdapterInternal::TestFreedesktopInterfaceDBusStubAdapterInternal( const CommonAPI::DBus::DBusAddress &_address, const std::shared_ptr &_connection, const std::shared_ptr &_stub) : CommonAPI::DBus::DBusStubAdapter(_address, _connection,false), TestFreedesktopInterfaceDBusStubAdapterHelper(_address, _connection, std::dynamic_pointer_cast(_stub), false), stubDispatcherTable_({ { { "getTestPredefinedTypeAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestPredefinedTypeAttributeAttributeStubDispatcher } , { { "setTestPredefinedTypeAttributeAttribute", "u" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::setTestPredefinedTypeAttributeAttributeStubDispatcher }, { { "getTestReadonlyAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestReadonlyAttributeAttributeStubDispatcher }, { { "getTestDerivedStructAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedStructAttributeAttributeStubDispatcher } , { { "setTestDerivedStructAttributeAttribute", "(sqi)" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedStructAttributeAttributeStubDispatcher }, { { "getTestDerivedArrayAttributeAttribute", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestDerivedArrayAttributeAttributeStubDispatcher } , { { "setTestDerivedArrayAttributeAttribute", "at" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::setTestDerivedArrayAttributeAttributeStubDispatcher } }), stubAttributeTable_() { stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &commonapi::tests::TestFreedesktopInterfaceDBusStubAdapterInternal::getTestFreedesktopInterfaceInterfaceVersionStubDispatcher }); } const bool TestFreedesktopInterfaceDBusStubAdapterInternal::hasFreedesktopProperties() { return false; } } // namespace tests } // namespace commonapi } // namespace v1_0