22e86ab0650e33680735da5172993311606d4472
[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 *
4  * Copyright (C) 2013, BMW AG
5  *
6  * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
7 */
8 #ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
9 #define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
10
11 #include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
12
13 namespace org {
14 namespace genivi {
15 namespace NodeStateManager {
16
17 /**
18  * Provides a default implementation for LifeCycleConsumerStubRemoteEvent and
19  * LifeCycleConsumerStub. Method callbacks have an empty implementation,
20  * remote set calls on attributes will always change the value of the attribute
21  * to the one received.
22  * 
23  * Override this stub if you only want to provide a subset of the functionality
24  * that would be defined for this service, and/or if you do not need any non-default
25  * behaviour.
26  */
27 class LifeCycleConsumerStubDefault : public LifeCycleConsumerStub {
28  public:
29     LifeCycleConsumerStubDefault();
30
31     LifeCycleConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter);
32
33
34     virtual void LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode);
35
36     
37
38  protected:
39     
40  private:
41     class RemoteEventHandler: public LifeCycleConsumerStubRemoteEvent {
42      public:
43         RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub);
44
45
46      private:
47         LifeCycleConsumerStubDefault* defaultStub_;
48     };
49
50     RemoteEventHandler remoteEventHandler_;
51     std::shared_ptr<LifeCycleConsumerStubAdapter> stubAdapter_;
52
53 };
54
55 } // namespace NodeStateManager
56 } // namespace genivi
57 } // namespace org
58
59 #endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_