* Typo: Dbus address fixed.
[profile/ivi/genivi/genivi-audio-manager.git] / AudioManagerDaemon / src-gen / org / genivi / NodeStateManager / LifeCycleConsumerProxyBase.h
1 /*
2 * This file was generated by the CommonAPI Generators. 
3 * Used org.genivi.commonapi.core 2.1.2.201309301424.
4 * Used org.franca.core 0.8.9.201308271211.
5 *
6 * Copyright (C) 2012, BMW AG
7
8 * This file is part of GENIVI Project AudioManager.
9
10 * Contributions are licensed to the GENIVI Alliance under one or more
11 * Contribution License Agreements.
12
13 * \copyright
14 *  This Source Code Form is subject to the terms of the
15 * Mozilla Public License, v. 2.0. If a  copy of the MPL was not distributed with
16 *  this file, You can obtain one at http://mozilla.org/MPL/2.0/.
17
18
19 * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
20
21 * For further information see http://www.genivi.org/.
22 */
23 /**
24  * @author Christian Linke
25  */
26 #ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
27 #define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
28
29 #include "LifeCycleConsumer.h"
30
31
32
33 #if !defined (COMMONAPI_INTERNAL_COMPILATION)
34 #define COMMONAPI_INTERNAL_COMPILATION
35 #endif
36
37
38 #include <CommonAPI/Proxy.h>
39 #include <functional>
40 #include <future>
41
42 #undef COMMONAPI_INTERNAL_COMPILATION
43
44 namespace org {
45 namespace genivi {
46 namespace NodeStateManager {
47
48 class LifeCycleConsumerProxyBase: virtual public CommonAPI::Proxy {
49  public:
50
51     typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> LifecycleRequestAsyncCallback;
52
53
54
55     virtual void LifecycleRequest(const uint32_t& Request, const uint32_t& RequestId, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
56     virtual std::future<CommonAPI::CallStatus> LifecycleRequestAsync(const uint32_t& Request, const uint32_t& RequestId, LifecycleRequestAsyncCallback callback) = 0;
57 };
58
59 } // namespace NodeStateManager
60 } // namespace genivi
61 } // namespace org
62
63 #endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_