From c8ba6c38648138ea10641acc2c89ebec543a3ce5 Mon Sep 17 00:00:00 2001 From: Christian Linke Date: Mon, 3 Nov 2014 08:46:24 +0100 Subject: * make Audiomanager find and compile with CommonAPI 2.1.6 executable generator. Remove precompiled sources. Signed-off-by: Christian Linke --- .../src-gen/org/genivi/NodeStateManager/Consumer.h | 64 - .../genivi/NodeStateManager/ConsumerDBusProxy.cpp | 286 --- .../genivi/NodeStateManager/ConsumerDBusProxy.h | 100 - .../NodeStateManager/ConsumerDBusStubAdapter.cpp | 299 --- .../NodeStateManager/ConsumerDBusStubAdapter.h | 98 - .../org/genivi/NodeStateManager/ConsumerProxy.h | 611 ----- .../genivi/NodeStateManager/ConsumerProxyBase.h | 97 - .../org/genivi/NodeStateManager/ConsumerStub.h | 152 -- .../NodeStateManager/ConsumerStubDefault.cpp | 241 -- .../genivi/NodeStateManager/ConsumerStubDefault.h | 131 -- .../genivi/NodeStateManager/LifeCycleConsumer.h | 64 - .../LifeCycleConsumerDBusProxy.cpp | 76 - .../NodeStateManager/LifeCycleConsumerDBusProxy.h | 64 - .../LifeCycleConsumerDBusStubAdapter.cpp | 111 - .../LifeCycleConsumerDBusStubAdapter.h | 95 - .../NodeStateManager/LifeCycleConsumerProxy.h | 181 -- .../NodeStateManager/LifeCycleConsumerProxyBase.h | 51 - .../NodeStateManager/LifeCycleConsumerStub.h | 98 - .../LifeCycleConsumerStubDefault.cpp | 48 - .../LifeCycleConsumerStubDefault.h | 70 - CMakeLists.txt | 2 +- .../src-gen/org/genivi/am.cpp | 993 -------- PluginCommandInterfaceCAPI/src-gen/org/genivi/am.h | 2460 -------------------- .../src-gen/org/genivi/am/CommandControl.h | 69 - .../org/genivi/am/CommandControlDBusProxy.cpp | 653 ------ .../org/genivi/am/CommandControlDBusProxy.h | 268 --- .../genivi/am/CommandControlDBusStubAdapter.cpp | 1086 --------- .../org/genivi/am/CommandControlDBusStubAdapter.h | 192 -- .../src-gen/org/genivi/am/CommandControlProxy.h | 1190 ---------- .../org/genivi/am/CommandControlProxyBase.h | 350 --- .../src-gen/org/genivi/am/CommandControlStub.h | 492 ---- .../org/genivi/am/CommandControlStubDefault.cpp | 458 ---- .../org/genivi/am/CommandControlStubDefault.h | 339 --- .../src-gen/org/genivi/am.cpp | 993 -------- PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h | 2447 ------------------- .../src-gen/org/genivi/am/RoutingControl.h | 65 - .../org/genivi/am/RoutingControlDBusProxy.cpp | 409 ---- .../org/genivi/am/RoutingControlDBusProxy.h | 159 -- .../genivi/am/RoutingControlDBusStubAdapter.cpp | 467 ---- .../org/genivi/am/RoutingControlDBusStubAdapter.h | 96 - .../src-gen/org/genivi/am/RoutingControlObserver.h | 65 - .../genivi/am/RoutingControlObserverDBusProxy.cpp | 1068 --------- .../genivi/am/RoutingControlObserverDBusProxy.h | 341 --- .../am/RoutingControlObserverDBusStubAdapter.cpp | 1165 --------- .../am/RoutingControlObserverDBusStubAdapter.h | 103 - .../org/genivi/am/RoutingControlObserverProxy.h | 1803 -------------- .../genivi/am/RoutingControlObserverProxyBase.h | 382 --- .../org/genivi/am/RoutingControlObserverStub.h | 389 ---- .../am/RoutingControlObserverStubDefault.cpp | 602 ----- .../genivi/am/RoutingControlObserverStubDefault.h | 411 ---- .../src-gen/org/genivi/am/RoutingControlProxy.h | 708 ------ .../org/genivi/am/RoutingControlProxyBase.h | 165 -- .../src-gen/org/genivi/am/RoutingControlStub.h | 198 -- .../org/genivi/am/RoutingControlStubDefault.cpp | 226 -- .../org/genivi/am/RoutingControlStubDefault.h | 179 -- cmake/CommonAPIGenerator.cmake | 38 + 56 files changed, 39 insertions(+), 23929 deletions(-) delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h delete mode 100755 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.cpp delete mode 100755 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStub.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp delete mode 100644 AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am.cpp delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControl.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.cpp delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.cpp delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxy.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxyBase.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStub.h delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.cpp delete mode 100644 PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxy.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxy.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp delete mode 100644 PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h deleted file mode 100644 index 916c744..0000000 --- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 2.1.5.201312121915. -* Used org.franca.core 0.8.11.201401091023. -* -* 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/. -*/ -/** - * @author Christian Linke - */ -#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_H_ -#define ORG_GENIVI_NODESTATEMANAGER_Consumer_H_ - - - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace NodeStateManager { - -class Consumer { - public: - virtual ~Consumer() { } - - static inline const char* getInterfaceId(); - static inline CommonAPI::Version getInterfaceVersion(); -}; - -const char* Consumer::getInterfaceId() { - static const char* interfaceId = "org.genivi.NodeStateManager.Consumer"; - return interfaceId; -} - -CommonAPI::Version Consumer::getInterfaceVersion() { - return CommonAPI::Version(1, 0); -} - - -} // namespace NodeStateManager -} // namespace genivi -} // namespace org - -namespace CommonAPI { - -} - - -namespace std { - //hashes for types - - //hashes for error types -} - -#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_H_ diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp deleted file mode 100644 index 6971e07..0000000 --- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp +++ /dev/null @@ -1,286 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 2.1.5.201312121915. -* Used org.franca.core 0.8.11.201401091023. -* -* 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/. -*/ -/** - * @author Christian Linke - */ -#include "ConsumerDBusProxy.h" - -namespace org { -namespace genivi { -namespace NodeStateManager { - -std::shared_ptr createConsumerDBusProxy( - const std::shared_ptr& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr& dbusProxyConnection) { - return std::make_shared(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection); -} - -__attribute__((constructor)) void registerConsumerDBusProxy(void) { - CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(Consumer::getInterfaceId(), - &createConsumerDBusProxy); -} - -ConsumerDBusProxy::ConsumerDBusProxy( - const std::shared_ptr& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr& dbusProxyconnection): - CommonAPI::DBus::DBusProxy(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection) -,bootMode_(*this, "i", "getBootModeAttribute"), -restartReason_(*this, "i", "getRestartReasonAttribute"), -shutdownReason_(*this, "i", "getShutdownReasonAttribute"), -wakeUpReason_(*this, "i", "getWakeUpReasonAttribute") -, nodeApplicationMode_(*this, "NodeApplicationMode", "i"), - sessionStateChanged_(*this, "SessionStateChanged", "sii"), - nodeState_(*this, "NodeState", "i") - { - } - -ConsumerDBusProxy::BootModeAttribute& ConsumerDBusProxy::getBootModeAttribute() { - return bootMode_; -} -ConsumerDBusProxy::RestartReasonAttribute& ConsumerDBusProxy::getRestartReasonAttribute() { - return restartReason_; -} -ConsumerDBusProxy::ShutdownReasonAttribute& ConsumerDBusProxy::getShutdownReasonAttribute() { - return shutdownReason_; -} -ConsumerDBusProxy::WakeUpReasonAttribute& ConsumerDBusProxy::getWakeUpReasonAttribute() { - return wakeUpReason_; -} - -ConsumerDBusProxy::NodeApplicationModeEvent& ConsumerDBusProxy::getNodeApplicationModeEvent() { - return nodeApplicationMode_; -} -ConsumerDBusProxy::SessionStateChangedEvent& ConsumerDBusProxy::getSessionStateChangedEvent() { - return sessionStateChanged_; -} -ConsumerDBusProxy::NodeStateEvent& ConsumerDBusProxy::getNodeStateEvent() { - return nodeState_; -} - -void ConsumerDBusProxy::GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "GetAppHealthCount", - "", - callStatus - , Count); -} -std::future ConsumerDBusProxy::GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "GetAppHealthCount", - "", - std::move(callback)); -} -void ConsumerDBusProxy::LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "LifecycleRequestComplete", - "ui", - RequestId, Status, - callStatus - , ErrorCode); -} -std::future ConsumerDBusProxy::LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "LifecycleRequestComplete", - "ui", - RequestId, Status, - std::move(callback)); -} -void ConsumerDBusProxy::GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "GetInterfaceVersion", - "", - callStatus - , Version); -} -std::future ConsumerDBusProxy::GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "GetInterfaceVersion", - "", - std::move(callback)); -} -void ConsumerDBusProxy::GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "GetApplicationMode", - "", - callStatus - , ErrorCode, ApplicationModeId); -} -std::future ConsumerDBusProxy::GetApplicationModeAsync(GetApplicationModeAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "GetApplicationMode", - "", - std::move(callback)); -} -void ConsumerDBusProxy::UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "UnRegisterSession", - "ssi", - SessionName, SessionOwner, SeatID, - callStatus - , ErrorCode); -} -std::future ConsumerDBusProxy::UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "UnRegisterSession", - "ssi", - SessionName, SessionOwner, SeatID, - std::move(callback)); -} -void ConsumerDBusProxy::RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "RegisterSession", - "ssii", - SessionName, SessionOwner, SeatID, SessionState, - callStatus - , ErrorCode); -} -std::future ConsumerDBusProxy::RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "RegisterSession", - "ssii", - SessionName, SessionOwner, SeatID, SessionState, - std::move(callback)); -} -void ConsumerDBusProxy::UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "UnRegisterShutdownClient", - "ssu", - BusName, ObjName, ShutdownMode, - callStatus - , ErrorCode); -} -std::future ConsumerDBusProxy::UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "UnRegisterShutdownClient", - "ssu", - BusName, ObjName, ShutdownMode, - std::move(callback)); -} -void ConsumerDBusProxy::RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "RegisterShutdownClient", - "ssuu", - BusName, ObjName, ShutdownMode, TimeoutMs, - callStatus - , ErrorCode); -} -std::future ConsumerDBusProxy::RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "RegisterShutdownClient", - "ssuu", - BusName, ObjName, ShutdownMode, TimeoutMs, - std::move(callback)); -} -void ConsumerDBusProxy::GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "GetNodeState", - "", - callStatus - , ErrorCode, NodeStateId); -} -std::future ConsumerDBusProxy::GetNodeStateAsync(GetNodeStateAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "GetNodeState", - "", - std::move(callback)); -} -void ConsumerDBusProxy::GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "GetSessionState", - "si", - SessionName, SeatID, - callStatus - , SessionState, ErrorCode); -} -std::future ConsumerDBusProxy::GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "GetSessionState", - "si", - SessionName, SeatID, - std::move(callback)); -} -void ConsumerDBusProxy::SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) { - CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodWithReply( - *this, - "SetSessionState", - "ssii", - SessionName, SessionOwner, SessionState, SeatID, - callStatus - , ErrorCode); -} -std::future ConsumerDBusProxy::SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) { - return CommonAPI::DBus::DBusProxyHelper, - CommonAPI::DBus::DBusSerializableArguments >::callMethodAsync( - *this, - "SetSessionState", - "ssii", - SessionName, SessionOwner, SessionState, SeatID, - std::move(callback)); -} - - - -void ConsumerDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const { - ownVersionMajor = 1; - ownVersionMinor = 0; -} - -} // namespace NodeStateManager -} // namespace genivi -} // namespace org diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h deleted file mode 100644 index 2e08248..0000000 --- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h +++ /dev/null @@ -1,100 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 2.1.5.201312121915. -* Used org.franca.core 0.8.11.201401091023. -* -* 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/. -*/ -/** - * @author Christian Linke - */ -#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_ -#define ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_ - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -#include - -namespace org { -namespace genivi { -namespace NodeStateManager { - -class ConsumerDBusProxy: virtual public ConsumerProxyBase, virtual public CommonAPI::DBus::DBusProxy { - public: - ConsumerDBusProxy( - const std::shared_ptr& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr& dbusProxyconnection); - - virtual ~ConsumerDBusProxy() { } - - virtual BootModeAttribute& getBootModeAttribute(); - virtual RestartReasonAttribute& getRestartReasonAttribute(); - virtual ShutdownReasonAttribute& getShutdownReasonAttribute(); - virtual WakeUpReasonAttribute& getWakeUpReasonAttribute(); - - virtual NodeApplicationModeEvent& getNodeApplicationModeEvent(); - virtual SessionStateChangedEvent& getSessionStateChangedEvent(); - virtual NodeStateEvent& getNodeStateEvent(); - - virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count); - virtual std::future GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback); - virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - virtual std::future LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback); - virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version); - virtual std::future GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback); - virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId); - virtual std::future GetApplicationModeAsync(GetApplicationModeAsyncCallback callback); - virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - virtual std::future UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback); - virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - virtual std::future RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback); - virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - virtual std::future UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback); - virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - virtual std::future RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback); - virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId); - virtual std::future GetNodeStateAsync(GetNodeStateAsyncCallback callback); - virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode); - virtual std::future GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback); - virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - virtual std::future SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback); - - - virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const; - - private: - CommonAPI::DBus::DBusReadonlyAttribute bootMode_; - CommonAPI::DBus::DBusReadonlyAttribute restartReason_; - CommonAPI::DBus::DBusReadonlyAttribute shutdownReason_; - CommonAPI::DBus::DBusReadonlyAttribute wakeUpReason_; - - CommonAPI::DBus::DBusEvent nodeApplicationMode_; - CommonAPI::DBus::DBusEvent sessionStateChanged_; - CommonAPI::DBus::DBusEvent nodeState_; - -}; - - - -} // namespace NodeStateManager -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_ diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.cpp deleted file mode 100755 index 7c00c67..0000000 --- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.cpp +++ /dev/null @@ -1,299 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 2.1.5.201312121915. -* Used org.franca.core 0.8.11.201401091023. -* -* 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 "ConsumerDBusStubAdapter.h" -#include - -namespace org { -namespace genivi { -namespace NodeStateManager { - -std::shared_ptr createConsumerDBusStubAdapter( - const std::shared_ptr& factory, - const std::string& commonApiAddress, - const std::string& interfaceName, - const std::string& busName, - const std::string& objectPath, - const std::shared_ptr& dbusProxyConnection, - const std::shared_ptr& stubBase) { - return std::make_shared(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase); -} - -__attribute__((constructor)) void registerConsumerDBusStubAdapter(void) { - CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(Consumer::getInterfaceId(), - &createConsumerDBusStubAdapter); -} - - - -ConsumerDBusStubAdapterInternal::~ConsumerDBusStubAdapterInternal() { - deactivateManagedInstances(); - ConsumerDBusStubAdapterHelper::deinit(); -} - -void ConsumerDBusStubAdapterInternal::deactivateManagedInstances() { -} - -const char* ConsumerDBusStubAdapterInternal::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" - "\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" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - - ; - return introspectionData.c_str(); -} - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ConsumerStub, - CommonAPI::Version - > getConsumerInterfaceVersionStubDispatcher(&ConsumerStub::getInterfaceVersion, "uu"); - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ConsumerStub, - int32_t - > getBootModeAttributeStubDispatcher(&ConsumerStub::getBootModeAttribute, "i"); - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ConsumerStub, - int32_t - > getRestartReasonAttributeStubDispatcher(&ConsumerStub::getRestartReasonAttribute, "i"); - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ConsumerStub, - int32_t - > getShutdownReasonAttributeStubDispatcher(&ConsumerStub::getShutdownReasonAttribute, "i"); - -static CommonAPI::DBus::DBusGetAttributeStubDispatcher< - ConsumerStub, - int32_t - > getWakeUpReasonAttributeStubDispatcher(&ConsumerStub::getWakeUpReasonAttribute, "i"); - - -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple<>, - std::tuple - > getAppHealthCountStubDispatcher(&ConsumerStub::GetAppHealthCount, "u"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple, - std::tuple - > lifecycleRequestCompleteStubDispatcher(&ConsumerStub::LifecycleRequestComplete, "i"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple<>, - std::tuple - > getInterfaceVersionStubDispatcher(&ConsumerStub::GetInterfaceVersion, "u"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple<>, - std::tuple - > getApplicationModeStubDispatcher(&ConsumerStub::GetApplicationMode, "ii"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple, - std::tuple - > unRegisterSessionStubDispatcher(&ConsumerStub::UnRegisterSession, "i"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple, - std::tuple - > registerSessionStubDispatcher(&ConsumerStub::RegisterSession, "i"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple, - std::tuple - > unRegisterShutdownClientStubDispatcher(&ConsumerStub::UnRegisterShutdownClient, "i"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple, - std::tuple - > registerShutdownClientStubDispatcher(&ConsumerStub::RegisterShutdownClient, "i"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple<>, - std::tuple - > getNodeStateStubDispatcher(&ConsumerStub::GetNodeState, "ii"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple, - std::tuple - > getSessionStateStubDispatcher(&ConsumerStub::GetSessionState, "ii"); -static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< - ConsumerStub, - std::tuple, - std::tuple - > setSessionStateStubDispatcher(&ConsumerStub::SetSessionState, "i"); - - -void ConsumerDBusStubAdapterInternal::fireNodeApplicationModeEvent(const int32_t& ApplicationModeId) { - CommonAPI::DBus::DBusStubSignalHelper> - ::sendSignal( - *this, - "NodeApplicationMode", - "i", - ApplicationModeId - ); -} -void ConsumerDBusStubAdapterInternal::fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) { - CommonAPI::DBus::DBusStubSignalHelper> - ::sendSignal( - *this, - "SessionStateChanged", - "sii", - SessionStateName, SeatID, SessionState - ); -} -void ConsumerDBusStubAdapterInternal::fireNodeStateEvent(const int32_t& NodeState) { - CommonAPI::DBus::DBusStubSignalHelper> - ::sendSignal( - *this, - "NodeState", - "i", - NodeState - ); -} - -const ConsumerDBusStubAdapterHelper::StubDispatcherTable& ConsumerDBusStubAdapterInternal::getStubDispatcherTable() { - return stubDispatcherTable_; -} - - -ConsumerDBusStubAdapterInternal::ConsumerDBusStubAdapterInternal( - 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), - ConsumerDBusStubAdapterHelper( - factory, - commonApiAddress, - dbusInterfaceName, - dbusBusName, - dbusObjectPath, - dbusConnection, - std::dynamic_pointer_cast(stub), - false), - stubDispatcherTable_({ - { { "getBootModeAttribute", "" }, &org::genivi::NodeStateManager::getBootModeAttributeStubDispatcher }, - { { "getRestartReasonAttribute", "" }, &org::genivi::NodeStateManager::getRestartReasonAttributeStubDispatcher }, - { { "getShutdownReasonAttribute", "" }, &org::genivi::NodeStateManager::getShutdownReasonAttributeStubDispatcher }, - { { "getWakeUpReasonAttribute", "" }, &org::genivi::NodeStateManager::getWakeUpReasonAttributeStubDispatcher } - , - { { "GetAppHealthCount", "" }, &org::genivi::NodeStateManager::getAppHealthCountStubDispatcher }, - { { "LifecycleRequestComplete", "ui" }, &org::genivi::NodeStateManager::lifecycleRequestCompleteStubDispatcher }, - { { "GetInterfaceVersion", "" }, &org::genivi::NodeStateManager::getInterfaceVersionStubDispatcher }, - { { "GetApplicationMode", "" }, &org::genivi::NodeStateManager::getApplicationModeStubDispatcher }, - { { "UnRegisterSession", "ssi" }, &org::genivi::NodeStateManager::unRegisterSessionStubDispatcher }, - { { "RegisterSession", "ssii" }, &org::genivi::NodeStateManager::registerSessionStubDispatcher }, - { { "UnRegisterShutdownClient", "ssu" }, &org::genivi::NodeStateManager::unRegisterShutdownClientStubDispatcher }, - { { "RegisterShutdownClient", "ssuu" }, &org::genivi::NodeStateManager::registerShutdownClientStubDispatcher }, - { { "GetNodeState", "" }, &org::genivi::NodeStateManager::getNodeStateStubDispatcher }, - { { "GetSessionState", "si" }, &org::genivi::NodeStateManager::getSessionStateStubDispatcher }, - { { "SetSessionState", "ssii" }, &org::genivi::NodeStateManager::setSessionStateStubDispatcher } - }) { - - stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &org::genivi::NodeStateManager::getConsumerInterfaceVersionStubDispatcher }); -} - -} // namespace NodeStateManager -} // namespace genivi -} // namespace org diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.h deleted file mode 100755 index d8335d7..0000000 --- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusStubAdapter.h +++ /dev/null @@ -1,98 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 2.1.5.201312121915. -* Used org.franca.core 0.8.11.201401091023. -* -* 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/. -*/ -/** - * @author Christian Linke - */ -#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_STUB_ADAPTER_H_ -#define ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_STUB_ADAPTER_H_ - -#include - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace NodeStateManager { - -typedef CommonAPI::DBus::DBusStubAdapterHelper ConsumerDBusStubAdapterHelper; - -class ConsumerDBusStubAdapterInternal: public ConsumerStubAdapter, public ConsumerDBusStubAdapterHelper { - public: - ConsumerDBusStubAdapterInternal( - 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); - - ~ConsumerDBusStubAdapterInternal(); - - - void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId); - void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState); - void fireNodeStateEvent(const int32_t& NodeState); - - - const ConsumerDBusStubAdapterHelper::StubDispatcherTable& getStubDispatcherTable(); - - void deactivateManagedInstances(); - - - protected: - virtual const char* getMethodsDBusIntrospectionXmlData() const; - - private: - ConsumerDBusStubAdapterHelper::StubDispatcherTable stubDispatcherTable_; -}; - -class ConsumerDBusStubAdapter: public ConsumerDBusStubAdapterInternal, public std::enable_shared_from_this { -public: - ConsumerDBusStubAdapter( - 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), - ConsumerDBusStubAdapterInternal( - factory, - commonApiAddress, - dbusInterfaceName, - dbusBusName, - dbusObjectPath, - dbusConnection, - stub) { } -}; - -} // namespace NodeStateManager -} // namespace genivi -} // namespace org - -#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_STUB_ADAPTER_H_ diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h deleted file mode 100644 index bd473f1..0000000 --- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h +++ /dev/null @@ -1,611 +0,0 @@ -/* -* This file was generated by the CommonAPI Generators. -* Used org.genivi.commonapi.core 2.1.5.201312121915. -* Used org.franca.core 0.8.11.201401091023. -* -* 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/. -*/ -/** - * @author Christian Linke - */ -#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_ -#define ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_ - -#include "ConsumerProxyBase.h" - - -#if !defined (COMMONAPI_INTERNAL_COMPILATION) -#define COMMONAPI_INTERNAL_COMPILATION -#endif - -#include -#include - -#undef COMMONAPI_INTERNAL_COMPILATION - -namespace org { -namespace genivi { -namespace NodeStateManager { - -template -class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase -, public _AttributeExtensions... { -public: - ConsumerProxy(std::shared_ptr delegate); - ~ConsumerProxy(); - - typedef Consumer InterfaceType; - - - /** - * Returns the wrapper class that provides access to the attribute BootMode. - */ - virtual BootModeAttribute& getBootModeAttribute() { - return delegate_->getBootModeAttribute(); - } - /** - * Returns the wrapper class that provides access to the attribute RestartReason. - */ - virtual RestartReasonAttribute& getRestartReasonAttribute() { - return delegate_->getRestartReasonAttribute(); - } - /** - * Returns the wrapper class that provides access to the attribute ShutdownReason. - */ - virtual ShutdownReasonAttribute& getShutdownReasonAttribute() { - return delegate_->getShutdownReasonAttribute(); - } - /** - * Returns the wrapper class that provides access to the attribute WakeUpReason. - */ - virtual WakeUpReasonAttribute& getWakeUpReasonAttribute() { - return delegate_->getWakeUpReasonAttribute(); - } - - /** - * Returns the wrapper class that provides access to the broadcast NodeApplicationMode. - */ - virtual NodeApplicationModeEvent& getNodeApplicationModeEvent() { - return delegate_->getNodeApplicationModeEvent(); - } - /** - * Returns the wrapper class that provides access to the broadcast SessionStateChanged. - */ - virtual SessionStateChangedEvent& getSessionStateChangedEvent() { - return delegate_->getSessionStateChangedEvent(); - } - /** - * Returns the wrapper class that provides access to the broadcast NodeState. - */ - virtual NodeStateEvent& getNodeStateEvent() { - return delegate_->getNodeStateEvent(); - } - - /** - * Calls GetAppHealthCount with synchronous semantics. - * - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count); - /** - * Calls GetAppHealthCount with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback); - /** - * Calls LifecycleRequestComplete with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - /** - * Calls LifecycleRequestComplete with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback); - /** - * Calls GetInterfaceVersion with synchronous semantics. - * - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version); - /** - * Calls GetInterfaceVersion with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback); - /** - * Calls GetApplicationMode with synchronous semantics. - * - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId); - /** - * Calls GetApplicationMode with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future GetApplicationModeAsync(GetApplicationModeAsyncCallback callback); - /** - * Calls UnRegisterSession with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - /** - * Calls UnRegisterSession with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback); - /** - * Calls RegisterSession with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - /** - * Calls RegisterSession with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback); - /** - * Calls UnRegisterShutdownClient with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - /** - * Calls UnRegisterShutdownClient with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback); - /** - * Calls RegisterShutdownClient with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - /** - * Calls RegisterShutdownClient with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback); - /** - * Calls GetNodeState with synchronous semantics. - * - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId); - /** - * Calls GetNodeState with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future GetNodeStateAsync(GetNodeStateAsyncCallback callback); - /** - * Calls GetSessionState with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode); - /** - * Calls GetSessionState with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback); - /** - * Calls SetSessionState with synchronous semantics. - * - * All const parameters are input parameters to this method. - * All non-const parameters will be filled with the returned values. - * The CallStatus will be filled when the method returns and indicate either - * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus - * will be set. - */ - virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode); - /** - * Calls SetSessionState with asynchronous semantics. - * - * The provided callback will be called when the reply to this call arrives or - * an error occurs during the call. The CallStatus will indicate either "SUCCESS" - * or which type of error has occurred. In case of any error, ONLY the CallStatus - * will have a defined value. - * The std::future returned by this method will be fulfilled at arrival of the reply. - * It will provide the same value for CallStatus as will be handed to the callback. - */ - virtual std::future SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback); - - - /** - * Returns the CommonAPI address of the remote partner this proxy communicates with. - */ - virtual std::string getAddress() const; - - /** - * Returns the domain of the remote partner this proxy communicates with. - */ - virtual const std::string& getDomain() const; - - /** - * Returns the service ID of the remote partner this proxy communicates with. - */ - virtual const std::string& getServiceId() const; - - /** - * Returns the instance ID of the remote partner this proxy communicates with. - */ - virtual const std::string& getInstanceId() const; - - /** - * Returns true if the remote partner for this proxy is currently known to be available. - */ - virtual bool isAvailable() const; - - /** - * Returns true if the remote partner for this proxy is available. - */ - virtual bool isAvailableBlocking() const; - - /** - * Returns the wrapper class that is used to (de-)register for notifications about - * the availability of the remote partner of this proxy. - */ - virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent(); - - /** - * Returns the wrapper class that is used to access version information of the remote - * partner of this proxy. - */ - virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute(); - - private: - std::shared_ptr delegate_; -}; - -namespace ConsumerExtensions { - template