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/.
19 #include <org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h>
23 namespace NodeStateManager {
25 LifeCycleConsumerStubDefault::LifeCycleConsumerStubDefault():
26 remoteEventHandler_(this) {
29 LifeCycleConsumerStubRemoteEvent* LifeCycleConsumerStubDefault::initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter) {
30 stubAdapter_ = stubAdapter;
31 return &remoteEventHandler_;
35 void LifeCycleConsumerStubDefault::LifecycleRequest(const std::shared_ptr<CommonAPI::ClientId> clientId, uint32_t Request, uint32_t RequestId, int32_t& ErrorCode) {
36 // Call old style methods in default
37 LifecycleRequest(Request, RequestId, ErrorCode);
39 void LifeCycleConsumerStubDefault::LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode) {
40 // No operation in default
46 LifeCycleConsumerStubDefault::RemoteEventHandler::RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub):
47 defaultStub_(defaultStub) {
50 } // namespace NodeStateManager