2 * This file was generated by the CommonAPI Generators.
3 * Used org.genivi.commonapi.core 2.1.1.201309251246.
4 * Used org.franca.core 0.8.9.201308271211.
6 * Copyright (C) 2012, BMW AG
7 * This file is part of GENIVI Project AudioManager.
9 * Contributions are licensed to the GENIVI Alliance under one or more
10 * Contribution License Agreements.
13 * 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/.
15 * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
16 * \author Christian Linke christian.linke@bmw.de BMW 2013
17 * For further information see http://www.genivi.org/.
20 * @author Christian Linke
22 #ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
23 #define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
25 #include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
30 namespace NodeStateManager {
33 * Provides a default implementation for LifeCycleConsumerStubRemoteEvent and
34 * LifeCycleConsumerStub. Method callbacks have an empty implementation,
35 * remote set calls on attributes will always change the value of the attribute
36 * to the one received.
38 * Override this stub if you only want to provide a subset of the functionality
39 * that would be defined for this service, and/or if you do not need any non-default
42 class LifeCycleConsumerStubDefault : public LifeCycleConsumerStub {
44 LifeCycleConsumerStubDefault();
46 LifeCycleConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter);
49 virtual void LifecycleRequest(const std::shared_ptr<CommonAPI::ClientId> clientId, uint32_t Request, uint32_t RequestId, int32_t& ErrorCode);
50 virtual void LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode);
56 std::shared_ptr<LifeCycleConsumerStubAdapter> stubAdapter_;
58 class RemoteEventHandler: public LifeCycleConsumerStubRemoteEvent {
60 RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub);
64 LifeCycleConsumerStubDefault* defaultStub_;
67 RemoteEventHandler remoteEventHandler_;
71 } // namespace NodeStateManager
75 #endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_