2 * This file was generated by the CommonAPI Generators.
3 * Used org.genivi.commonapi.core 2.1.5.qualifier.
4 * Used org.franca.core 0.8.10.201309262002.
6 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 * If a copy of the MPL was not distributed with this file, You can obtain one at
8 * http://mozilla.org/MPL/2.0/.
10 #ifndef COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_STUB_ADAPTER_H_
11 #define COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_STUB_ADAPTER_H_
13 #include <commonapi/tests/managed/BranchInterfaceStub.h>
15 #if !defined (COMMONAPI_INTERNAL_COMPILATION)
16 #define COMMONAPI_INTERNAL_COMPILATION
19 #include <CommonAPI/DBus/DBusStubAdapterHelper.h>
20 #include <CommonAPI/DBus/DBusStubAdapter.h>
21 #include <CommonAPI/DBus/DBusFactory.h>
22 #include <CommonAPI/DBus/DBusServicePublisher.h>
24 #undef COMMONAPI_INTERNAL_COMPILATION
30 typedef CommonAPI::DBus::DBusStubAdapterHelper<BranchInterfaceStub> BranchInterfaceDBusStubAdapterHelper;
32 class BranchInterfaceDBusStubAdapterInternal: public BranchInterfaceStubAdapter, public BranchInterfaceDBusStubAdapterHelper {
34 BranchInterfaceDBusStubAdapterInternal(
35 const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
36 const std::string& commonApiAddress,
37 const std::string& dbusInterfaceName,
38 const std::string& dbusBusName,
39 const std::string& dbusObjectPath,
40 const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
41 const std::shared_ptr<CommonAPI::StubBase>& stub);
43 ~BranchInterfaceDBusStubAdapterInternal();
48 const BranchInterfaceDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable();
50 void deactivateManagedInstances();
54 virtual const char* getMethodsDBusIntrospectionXmlData() const;
57 BranchInterfaceDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_;
60 class BranchInterfaceDBusStubAdapter: public BranchInterfaceDBusStubAdapterInternal, public std::enable_shared_from_this<BranchInterfaceDBusStubAdapter> {
62 BranchInterfaceDBusStubAdapter(
63 const std::shared_ptr<CommonAPI::DBus::DBusFactory>& factory,
64 const std::string& commonApiAddress,
65 const std::string& dbusInterfaceName,
66 const std::string& dbusBusName,
67 const std::string& dbusObjectPath,
68 const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
69 const std::shared_ptr<CommonAPI::StubBase>& stub) :
70 CommonAPI::DBus::DBusStubAdapter(
78 BranchInterfaceDBusStubAdapterInternal(
88 } // namespace managed
90 } // namespace commonapi
92 #endif // COMMONAPI_TESTS_MANAGED_Branch_Interface_DBUS_STUB_ADAPTER_H_