/* * 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/. */ #ifndef COMMONAPI_TESTS_Extended_Interface_DBUS_STUB_ADAPTER_HPP_ #define COMMONAPI_TESTS_Extended_Interface_DBUS_STUB_ADAPTER_HPP_ #include #include #include "v1_0/commonapi/tests/ExtendedInterfaceDBusDeployment.hpp" #if !defined (COMMONAPI_INTERNAL_COMPILATION) #define COMMONAPI_INTERNAL_COMPILATION #endif #include #include #include #include #undef COMMONAPI_INTERNAL_COMPILATION namespace v1_0 { namespace commonapi { namespace tests { typedef CommonAPI::DBus::DBusStubAdapterHelper ExtendedInterfaceDBusStubAdapterHelper; class ExtendedInterfaceDBusStubAdapterInternal : public virtual ExtendedInterfaceStubAdapter, public ExtendedInterfaceDBusStubAdapterHelper, public TestInterfaceDBusStubAdapterInternal { public: ExtendedInterfaceDBusStubAdapterInternal( const CommonAPI::DBus::DBusAddress &_address, const std::shared_ptr &_connection, const std::shared_ptr &_stub); ~ExtendedInterfaceDBusStubAdapterInternal(); virtual const bool hasFreedesktopProperties(); const ExtendedInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); void deactivateManagedInstances(); virtual const CommonAPI::Address &getAddress() const { return DBusStubAdapter::getAddress(); } virtual void init(std::shared_ptr instance) { return ExtendedInterfaceDBusStubAdapterHelper::init(instance); } virtual void deinit() { return ExtendedInterfaceDBusStubAdapterHelper::deinit(); } virtual bool onInterfaceDBusMessage(const CommonAPI::DBus::DBusMessage& dbusMessage) { return ExtendedInterfaceDBusStubAdapterHelper::onInterfaceDBusMessage(dbusMessage); } virtual bool onInterfaceDBusFreedesktopPropertiesMessage(const CommonAPI::DBus::DBusMessage& dbusMessage) { return ExtendedInterfaceDBusStubAdapterHelper::onInterfaceDBusFreedesktopPropertiesMessage(dbusMessage); } static CommonAPI::DBus::DBusGetAttributeStubDispatcher< ExtendedInterfaceStub, CommonAPI::Version > getExtendedInterfaceInterfaceVersionStubDispatcher; #ifdef WIN32 static CommonAPI::DBus::DBusGetAttributeStubDispatcher< ExtendedInterfaceStub, uint32_t > getTestPredefinedTypeAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< ExtendedInterfaceStub, uint32_t > setTestPredefinedTypeAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusGetAttributeStubDispatcher< ExtendedInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestStructExtended, ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t > getTestDerivedStructAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< ExtendedInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestStructExtended, ::commonapi::tests::DerivedTypeCollection_::TestStructExtendedDeployment_t > setTestDerivedStructAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusGetAttributeStubDispatcher< ExtendedInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t > getTestDerivedArrayAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher< ExtendedInterfaceStub, ::commonapi::tests::DerivedTypeCollection::TestArrayUInt64, ::commonapi::tests::DerivedTypeCollection_::TestArrayUInt64Deployment_t > setTestDerivedArrayAttributeAttributeStubDispatcher; #endif static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple, std::tuple<>, std::tuple, std::tuple<> > testIntMethodExtendedStubDispatcher; #ifdef WIN32 static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple<>, std::tuple<>, std::tuple<>, std::tuple<> > testEmptyMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple, std::tuple<>, std::tuple, std::tuple<> > testVoidPredefinedTypeMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple, std::tuple, std::tuple, std::tuple > testPredefinedTypeMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, std::tuple<>, std::tuple, std::tuple<> > testVoidDerivedTypeMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, std::tuple<::commonapi::tests::DerivedTypeCollection::TestEnumExtended2, ::commonapi::tests::DerivedTypeCollection::TestMap>, std::tuple, std::tuple > testDerivedTypeMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple>>, std::tuple<>, std::tuple>, std::tuple<> > testArrayOfPolymorphicStructMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple<::commonapi::tests::DerivedTypeCollection::MapIntToPolymorphic>, std::tuple<>, std::tuple<::commonapi::tests::DerivedTypeCollection_::MapIntToPolymorphicDeployment_t>, std::tuple<> > testMapOfPolymorphicStructMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithPolymorphicMember>, std::tuple<>, std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithPolymorphicMemberDeployment_t>, std::tuple<> > testStructWithPolymorphicMemberMethodStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< ExtendedInterfaceStub, std::tuple<::commonapi::tests::DerivedTypeCollection::StructWithEnumKeyMap>, std::tuple<>, std::tuple<::commonapi::tests::DerivedTypeCollection_::StructWithEnumKeyMapDeployment_t>, std::tuple<> > testStructWithEnumKeyMapMemberStubDispatcher; #endif #ifdef WIN32 static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< ExtendedInterfaceStub, ExtendedInterfaceStubAdapter, std::tuple<>, std::tuple > subscribeTestSelectiveBroadcastSelectiveStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< ExtendedInterfaceStub, ExtendedInterfaceStubAdapter, std::tuple<>, std::tuple<> > unsubscribeTestSelectiveBroadcastSelectiveStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< ExtendedInterfaceStub, ExtendedInterfaceStubAdapter, std::tuple<>, std::tuple > subscribeTestBroadcastWithOutArgsSelectiveStubDispatcher; static CommonAPI::DBus::DBusMethodWithReplyAdapterDispatcher< ExtendedInterfaceStub, ExtendedInterfaceStubAdapter, std::tuple<>, std::tuple<> > unsubscribeTestBroadcastWithOutArgsSelectiveStubDispatcher; #endif protected: virtual const char* getMethodsDBusIntrospectionXmlData() const; private: ExtendedInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; CommonAPI::DBus::StubAttributeTable stubAttributeTable_; }; class ExtendedInterfaceDBusStubAdapter : public ExtendedInterfaceDBusStubAdapterInternal, public std::enable_shared_from_this { public: ExtendedInterfaceDBusStubAdapter( const CommonAPI::DBus::DBusAddress &_address, const std::shared_ptr &_connection, const std::shared_ptr &_stub) : CommonAPI::DBus::DBusStubAdapter( _address, _connection, false), ExtendedInterfaceDBusStubAdapterInternal( _address, _connection, _stub) { } }; } // namespace tests } // namespace commonapi } // namespace v1_0 #endif // COMMONAPI_TESTS_Extended_Interface_DBUS_STUB_ADAPTER_HPP_