X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftest%2Fcommonapi%2Ftests%2Fmanaged%2FSecondRootDBusStubAdapter.h;h=70ef6eb32fc98a5729761313184f915b23cf490c;hb=0727abb2487860889b09dc5a9fea85bbf2e9c917;hp=8fdb7dcf7bd78894a59d7fd4d080a690aa5c6d22;hpb=71d4ddf336fd7b9eb9446c56a5ea4650d34aabdb;p=profile%2Fivi%2Fcommon-api-dbus-runtime.git diff --git a/src/test/commonapi/tests/managed/SecondRootDBusStubAdapter.h b/src/test/commonapi/tests/managed/SecondRootDBusStubAdapter.h index 8fdb7dc..70ef6eb 100644 --- a/src/test/commonapi/tests/managed/SecondRootDBusStubAdapter.h +++ b/src/test/commonapi/tests/managed/SecondRootDBusStubAdapter.h @@ -1,6 +1,6 @@ /* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 2.1.3.qualifier. +* 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. @@ -29,9 +29,9 @@ namespace managed { typedef CommonAPI::DBus::DBusStubAdapterHelper SecondRootDBusStubAdapterHelper; -class SecondRootDBusStubAdapter: public SecondRootStubAdapter, public SecondRootDBusStubAdapterHelper { +class SecondRootDBusStubAdapterInternal: public SecondRootStubAdapter, public SecondRootDBusStubAdapterHelper { public: - SecondRootDBusStubAdapter( + SecondRootDBusStubAdapterInternal( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& dbusInterfaceName, @@ -40,23 +40,53 @@ class SecondRootDBusStubAdapter: public SecondRootStubAdapter, public SecondRoot const std::shared_ptr& dbusConnection, const std::shared_ptr& stub); - ~SecondRootDBusStubAdapter(); + ~SecondRootDBusStubAdapterInternal(); + - bool registerManagedStubLeafInterface(std::shared_ptr, const std::string&); bool deregisterManagedStubLeafInterface(const std::string&); std::set& getLeafInterfaceInstances(); - const StubDispatcherTable& getStubDispatcherTable(); - + const SecondRootDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); + void deactivateManagedInstances(); + protected: virtual const char* getMethodsDBusIntrospectionXmlData() const; private: std::set registeredLeafInterfaceInstances; + SecondRootDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; +}; + +class SecondRootDBusStubAdapter: public SecondRootDBusStubAdapterInternal, public std::enable_shared_from_this { +public: + SecondRootDBusStubAdapter( + 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, + true), + SecondRootDBusStubAdapterInternal( + factory, + commonApiAddress, + dbusInterfaceName, + dbusBusName, + dbusObjectPath, + dbusConnection, + stub) { } }; } // namespace managed