/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 2.1.2.201309301424. * Used org.franca.core 0.8.9.201308271211. * * Copyright (C) 2012, BMW AG * * This file is part of GENIVI Project AudioManager. * * Contributions are licensed to the GENIVI Alliance under one or more * Contribution License Agreements. * * \copyright * 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 Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013 * * For further information see http://www.genivi.org/. */ /** * @author Christian Linke */ #ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_ #define ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_ #include "Consumer.h" #if !defined (COMMONAPI_INTERNAL_COMPILATION) #define COMMONAPI_INTERNAL_COMPILATION #endif #include #include #include #include #include #undef COMMONAPI_INTERNAL_COMPILATION namespace org { namespace genivi { namespace NodeStateManager { class ConsumerProxyBase: virtual public CommonAPI::Proxy { public: typedef CommonAPI::ReadonlyAttribute BootModeAttribute; typedef CommonAPI::ReadonlyAttribute RestartReasonAttribute; typedef CommonAPI::ReadonlyAttribute ShutdownReasonAttribute; typedef CommonAPI::ReadonlyAttribute WakeUpReasonAttribute; typedef CommonAPI::Event NodeApplicationModeEvent; typedef CommonAPI::Event SessionStateChangedEvent; typedef CommonAPI::Event NodeStateEvent; typedef std::function GetAppHealthCountAsyncCallback; typedef std::function LifecycleRequestCompleteAsyncCallback; typedef std::function GetInterfaceVersionAsyncCallback; typedef std::function GetApplicationModeAsyncCallback; typedef std::function UnRegisterSessionAsyncCallback; typedef std::function RegisterSessionAsyncCallback; typedef std::function UnRegisterShutdownClientAsyncCallback; typedef std::function RegisterShutdownClientAsyncCallback; typedef std::function GetNodeStateAsyncCallback; typedef std::function GetSessionStateAsyncCallback; typedef std::function SetSessionStateAsyncCallback; virtual BootModeAttribute& getBootModeAttribute() = 0; virtual RestartReasonAttribute& getRestartReasonAttribute() = 0; virtual ShutdownReasonAttribute& getShutdownReasonAttribute() = 0; virtual WakeUpReasonAttribute& getWakeUpReasonAttribute() = 0; virtual NodeApplicationModeEvent& getNodeApplicationModeEvent() = 0; virtual SessionStateChangedEvent& getSessionStateChangedEvent() = 0; virtual NodeStateEvent& getNodeStateEvent() = 0; virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) = 0; virtual std::future GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) = 0; virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0; virtual std::future LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) = 0; virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) = 0; virtual std::future GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) = 0; virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) = 0; virtual std::future GetApplicationModeAsync(GetApplicationModeAsyncCallback callback) = 0; virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0; virtual std::future UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) = 0; 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) = 0; virtual std::future RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) = 0; virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0; virtual std::future UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) = 0; 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) = 0; virtual std::future RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) = 0; virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) = 0; virtual std::future GetNodeStateAsync(GetNodeStateAsyncCallback callback) = 0; virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) = 0; virtual std::future GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) = 0; 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) = 0; virtual std::future SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) = 0; }; } // namespace NodeStateManager } // namespace genivi } // namespace org #endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_