/* * This file was generated by the CommonAPI Generators. * * Copyright (C) 2013, BMW AG * * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013 */ #ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_ #define ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_ #include "Consumer.h" #define COMMONAPI_INTERNAL_COMPILATION #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_