summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h')
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h141
1 files changed, 141 insertions, 0 deletions
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h
new file mode 100644
index 0000000..76b7f8c
--- /dev/null
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h
@@ -0,0 +1,141 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * 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/.
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_DEFAULT_H_
+#define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_DEFAULT_H_
+
+#include <org/genivi/NodeStateManager/Consumer/ConsumerStub.h>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+namespace Consumer {
+
+/**
+ * Provides a default implementation for ConsumerStubRemoteEvent and
+ * 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.
+ */
+class ConsumerStubDefault : public ConsumerStub {
+ public:
+ ConsumerStubDefault();
+
+ ConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<ConsumerStubAdapter>& stubAdapter);
+
+ virtual const int32_t& getRestartReasonAttribute();
+ virtual void setRestartReasonAttribute(int32_t value);
+
+ virtual const int32_t& getShutdownReasonAttribute();
+ virtual void setShutdownReasonAttribute(int32_t value);
+
+ virtual const int32_t& getWakeUpReasonAttribute();
+ virtual void setWakeUpReasonAttribute(int32_t value);
+
+ virtual const int32_t& getBootModeAttribute();
+ virtual void setBootModeAttribute(int32_t value);
+
+
+ virtual void GetNodeState(int32_t& NodeStateId, int32_t& ErrorCode);
+
+ virtual void SetSessionState(std::string SessionName, std::string SessionOwner, 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 GetApplicationMode(int32_t& ApplicationModeId, int32_t& ErrorCode);
+
+ virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode);
+
+ virtual void UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode);
+
+ virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode);
+
+ virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode);
+
+ virtual void GetAppHealthCount(uint32_t& Count);
+
+ virtual void GetInterfaceVersion(uint32_t& Version);
+
+ virtual void LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode);
+
+
+ virtual void fireNodeStateEvent(const int32_t& NodeState);
+ virtual void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId);
+ virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState);
+
+ protected:
+ 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);
+
+ virtual void onRemoteBootModeAttributeChanged();
+ virtual bool trySetBootModeAttribute(int32_t value);
+ virtual bool validateBootModeAttributeRequestedValue(const int32_t& value);
+
+
+ private:
+ class RemoteEventHandler: public ConsumerStubRemoteEvent {
+ public:
+ RemoteEventHandler(ConsumerStubDefault* defaultStub);
+
+ 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();
+
+ virtual bool onRemoteSetBootModeAttribute(int32_t value);
+ virtual void onRemoteBootModeAttributeChanged();
+
+
+ private:
+ ConsumerStubDefault* defaultStub_;
+ };
+
+ RemoteEventHandler remoteEventHandler_;
+ std::shared_ptr<ConsumerStubAdapter> stubAdapter_;
+
+ int32_t restartReasonAttributeValue_;
+ int32_t shutdownReasonAttributeValue_;
+ int32_t wakeUpReasonAttributeValue_;
+ int32_t bootModeAttributeValue_;
+};
+
+} // namespace Consumer
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_DEFAULT_H_