/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 2.1.5.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/. */ #ifndef COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_STUB_ADAPTER_H_ #define COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_STUB_ADAPTER_H_ #include #if !defined (COMMONAPI_INTERNAL_COMPILATION) #define COMMONAPI_INTERNAL_COMPILATION #endif #include #include #include #include #undef COMMONAPI_INTERNAL_COMPILATION namespace commonapi { namespace tests { typedef CommonAPI::DBus::DBusStubAdapterHelper TestFreedesktopInterfaceDBusStubAdapterHelper; class TestFreedesktopInterfaceDBusStubAdapterInternal: public virtual TestFreedesktopInterfaceStubAdapter, public TestFreedesktopInterfaceDBusStubAdapterHelper { public: TestFreedesktopInterfaceDBusStubAdapterInternal( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& dbusInterfaceName, const std::string& dbusBusName, const std::string& dbusObjectPath, const std::shared_ptr& dbusConnection, const std::shared_ptr& stub); ~TestFreedesktopInterfaceDBusStubAdapterInternal(); virtual const bool hasFreedesktopProperties(); void fireTestPredefinedTypeAttributeAttributeChanged(const uint32_t& value); void fireTestReadonlyAttributeAttributeChanged(const uint32_t& value); void fireTestDerivedStructAttributeAttributeChanged(const DerivedTypeCollection::TestStructExtended& value); void fireTestDerivedArrayAttributeAttributeChanged(const DerivedTypeCollection::TestArrayUInt64& value); const TestFreedesktopInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); void deactivateManagedInstances(); static CommonAPI::DBus::DBusGetAttributeStubDispatcher< TestFreedesktopInterfaceStub, CommonAPI::Version > getTestFreedesktopInterfaceInterfaceVersionStubDispatcher; static CommonAPI::DBus::DBusGetFreedesktopAttributeStubDispatcher< TestFreedesktopInterfaceStub, uint32_t > getTestPredefinedTypeAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusSetFreedesktopObservableAttributeStubDispatcher< TestFreedesktopInterfaceStub, uint32_t > setTestPredefinedTypeAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusGetFreedesktopAttributeStubDispatcher< TestFreedesktopInterfaceStub, uint32_t > getTestReadonlyAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusGetFreedesktopAttributeStubDispatcher< TestFreedesktopInterfaceStub, DerivedTypeCollection::TestStructExtended > getTestDerivedStructAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusSetFreedesktopObservableAttributeStubDispatcher< TestFreedesktopInterfaceStub, DerivedTypeCollection::TestStructExtended > setTestDerivedStructAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusGetFreedesktopAttributeStubDispatcher< TestFreedesktopInterfaceStub, DerivedTypeCollection::TestArrayUInt64 > getTestDerivedArrayAttributeAttributeStubDispatcher; static CommonAPI::DBus::DBusSetFreedesktopObservableAttributeStubDispatcher< TestFreedesktopInterfaceStub, DerivedTypeCollection::TestArrayUInt64 > setTestDerivedArrayAttributeAttributeStubDispatcher; protected: virtual const char* getMethodsDBusIntrospectionXmlData() const; private: TestFreedesktopInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; CommonAPI::DBus::StubAttributeTable stubAttributeTable_; }; class TestFreedesktopInterfaceDBusStubAdapter: public TestFreedesktopInterfaceDBusStubAdapterInternal, public std::enable_shared_from_this { public: TestFreedesktopInterfaceDBusStubAdapter( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& dbusInterfaceName, const std::string& dbusBusName, const std::string& dbusObjectPath, const std::shared_ptr& dbusConnection, const std::shared_ptr& stub) : CommonAPI::DBus::DBusStubAdapter( factory, commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, false), TestFreedesktopInterfaceDBusStubAdapterInternal( factory, commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, stub) { } }; } // namespace tests } // namespace commonapi #endif // COMMONAPI_TESTS_Test_Freedesktop_Interface_DBUS_STUB_ADAPTER_H_