2 * This file was generated by the CommonAPI Generators.
4 * Copyright (C) 2013, BMW AG
6 * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
8 #ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
9 #define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
11 #include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
15 namespace NodeStateManager {
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.
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
27 class LifeCycleConsumerStubDefault : public LifeCycleConsumerStub {
29 LifeCycleConsumerStubDefault();
31 LifeCycleConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter);
34 virtual void LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode);
41 class RemoteEventHandler: public LifeCycleConsumerStubRemoteEvent {
43 RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub);
47 LifeCycleConsumerStubDefault* defaultStub_;
50 RemoteEventHandler remoteEventHandler_;
51 std::shared_ptr<LifeCycleConsumerStubAdapter> stubAdapter_;
55 } // namespace NodeStateManager
59 #endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_