diff options
Diffstat (limited to 'AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h')
-rw-r--r-- | AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h | 66 |
1 files changed, 38 insertions, 28 deletions
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h index 7cc92f9..bc7ee8a 100644 --- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h +++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h @@ -1,14 +1,29 @@ /* -* This file was generated by the CommonAPI Generators. +* This file was generated by the CommonAPI Generators. +* Used org.genivi.commonapi.core 2.1.1.201309251246. +* Used org.franca.core 0.8.9.201308271211. * - * Copyright (C) 2013, BMW AG - * - * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013 +* 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 +* \author Christian Linke christian.linke@bmw.de BMW 2013 +* For further information see http://www.genivi.org/. */ +/** + * @author Christian Linke + */ #ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_ #define ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_ #include <org/genivi/NodeStateManager/ConsumerStub.h> +#include <sstream> namespace org { namespace genivi { @@ -19,7 +34,7 @@ namespace NodeStateManager { * ConsumerStub. Method callbacks have an empty implementation, * remote set calls on attributes will always change the value of the attribute * to the one received. - * + * * Override this stub if you only want to provide a subset of the functionality * that would be defined for this service, and/or if you do not need any non-default * behaviour. @@ -31,79 +46,75 @@ class ConsumerStubDefault : public ConsumerStub { ConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<ConsumerStubAdapter>& stubAdapter); virtual const int32_t& getBootModeAttribute(); + virtual const int32_t& getBootModeAttribute(const std::shared_ptr<CommonAPI::ClientId> clientId); virtual void setBootModeAttribute(int32_t value); - virtual const int32_t& getRestartReasonAttribute(); + virtual const int32_t& getRestartReasonAttribute(const std::shared_ptr<CommonAPI::ClientId> clientId); virtual void setRestartReasonAttribute(int32_t value); - virtual const int32_t& getShutdownReasonAttribute(); + virtual const int32_t& getShutdownReasonAttribute(const std::shared_ptr<CommonAPI::ClientId> clientId); virtual void setShutdownReasonAttribute(int32_t value); - virtual const int32_t& getWakeUpReasonAttribute(); + virtual const int32_t& getWakeUpReasonAttribute(const std::shared_ptr<CommonAPI::ClientId> clientId); virtual void setWakeUpReasonAttribute(int32_t value); - + virtual void GetAppHealthCount(const std::shared_ptr<CommonAPI::ClientId> clientId, uint32_t& Count); virtual void GetAppHealthCount(uint32_t& Count); + virtual void LifecycleRequestComplete(const std::shared_ptr<CommonAPI::ClientId> clientId, uint32_t RequestId, int32_t Status, int32_t& ErrorCode); virtual void LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode); + virtual void GetInterfaceVersion(const std::shared_ptr<CommonAPI::ClientId> clientId, uint32_t& Version); virtual void GetInterfaceVersion(uint32_t& Version); + virtual void GetApplicationMode(const std::shared_ptr<CommonAPI::ClientId> clientId, int32_t& ErrorCode, int32_t& ApplicationModeId); virtual void GetApplicationMode(int32_t& ErrorCode, int32_t& ApplicationModeId); + virtual void UnRegisterSession(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode); virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode); + virtual void RegisterSession(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode); virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode); + virtual void UnRegisterShutdownClient(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode); virtual void UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode); + virtual void RegisterShutdownClient(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode); virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode); + virtual void GetNodeState(const std::shared_ptr<CommonAPI::ClientId> clientId, int32_t& ErrorCode, int32_t& NodeStateId); virtual void GetNodeState(int32_t& ErrorCode, int32_t& NodeStateId); + virtual void GetSessionState(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode); virtual void GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode); + virtual void SetSessionState(const std::shared_ptr<CommonAPI::ClientId> clientId, std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode); virtual void SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode); - + virtual void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId); virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState); virtual void fireNodeStateEvent(const int32_t& NodeState); + protected: - virtual void onRemoteBootModeAttributeChanged(); virtual bool trySetBootModeAttribute(int32_t value); virtual bool validateBootModeAttributeRequestedValue(const int32_t& value); - - virtual void onRemoteRestartReasonAttributeChanged(); virtual bool trySetRestartReasonAttribute(int32_t value); virtual bool validateRestartReasonAttributeRequestedValue(const int32_t& value); - - virtual void onRemoteShutdownReasonAttributeChanged(); virtual bool trySetShutdownReasonAttribute(int32_t value); virtual bool validateShutdownReasonAttributeRequestedValue(const int32_t& value); - - virtual void onRemoteWakeUpReasonAttributeChanged(); virtual bool trySetWakeUpReasonAttribute(int32_t value); virtual bool validateWakeUpReasonAttributeRequestedValue(const int32_t& value); - - + std::shared_ptr<ConsumerStubAdapter> stubAdapter_; private: class RemoteEventHandler: public ConsumerStubRemoteEvent { public: RemoteEventHandler(ConsumerStubDefault* defaultStub); - virtual bool onRemoteSetBootModeAttribute(int32_t value); - virtual void onRemoteBootModeAttributeChanged(); - virtual bool onRemoteSetRestartReasonAttribute(int32_t value); - virtual void onRemoteRestartReasonAttributeChanged(); - virtual bool onRemoteSetShutdownReasonAttribute(int32_t value); - virtual void onRemoteShutdownReasonAttributeChanged(); - virtual bool onRemoteSetWakeUpReasonAttribute(int32_t value); - virtual void onRemoteWakeUpReasonAttributeChanged(); private: @@ -111,7 +122,6 @@ class ConsumerStubDefault : public ConsumerStub { }; RemoteEventHandler remoteEventHandler_; - std::shared_ptr<ConsumerStubAdapter> stubAdapter_; int32_t bootModeAttributeValue_; int32_t restartReasonAttributeValue_; |