843f310653cefc175bf7d39c7562c8fe8bac8b6a
[profile/ivi/genivi/genivi-audio-manager.git] / AudioManagerDaemon / src-gen / org / genivi / NodeStateManager / LifeCycleConsumerStubDefault.cpp
1 /*
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.
5 *
6 * Copyright (C) 2012, BMW AG
7 * This file is part of GENIVI Project AudioManager.
8
9 * Contributions are licensed to the GENIVI Alliance under one or more
10 * Contribution License Agreements.
11
12 * \copyright
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/.
14
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/.
18 */
19 #include <org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h>
20
21 namespace org {
22 namespace genivi {
23 namespace NodeStateManager {
24
25 LifeCycleConsumerStubDefault::LifeCycleConsumerStubDefault():
26         remoteEventHandler_(this) {
27 }
28
29 LifeCycleConsumerStubRemoteEvent* LifeCycleConsumerStubDefault::initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter) {
30     stubAdapter_ = stubAdapter;
31     return &remoteEventHandler_;
32 }
33
34
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);
38 }
39 void LifeCycleConsumerStubDefault::LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode) {
40     // No operation in default
41 }
42
43
44
45
46 LifeCycleConsumerStubDefault::RemoteEventHandler::RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub):
47         defaultStub_(defaultStub) {
48 }
49
50 } // namespace NodeStateManager
51 } // namespace genivi
52 } // namespace org