* made sure that CommonAPI stuff compiles with release 2.1
[profile/ivi/genivi/genivi-audio-manager.git] / AudioManagerDaemon / src-gen / org / genivi / NodeStateManager / LifeCycleConsumerStubDefault.h
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 /**
20  * @author Christian Linke
21  */
22 #ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
23 #define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
24
25 #include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
26 #include <sstream>
27
28 namespace org {
29 namespace genivi {
30 namespace NodeStateManager {
31
32 /**
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.
37  *
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
40  * behaviour.
41  */
42 class LifeCycleConsumerStubDefault : public LifeCycleConsumerStub {
43  public:
44     LifeCycleConsumerStubDefault();
45
46     LifeCycleConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter);
47
48
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);
51
52
53     
54
55  protected:
56     std::shared_ptr<LifeCycleConsumerStubAdapter> stubAdapter_;
57  private:
58     class RemoteEventHandler: public LifeCycleConsumerStubRemoteEvent {
59      public:
60         RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub);
61
62
63      private:
64         LifeCycleConsumerStubDefault* defaultStub_;
65     };
66
67     RemoteEventHandler remoteEventHandler_;
68
69 };
70
71 } // namespace NodeStateManager
72 } // namespace genivi
73 } // namespace org
74
75 #endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_