AuboStudio SDK  0.6.3
view_api_provider.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_VIEW_API_PROVIDER_H
2#define AUBO_SCOPE_VIEW_API_PROVIDER_H
3
6
7namespace arcs {
8namespace aubo_scope {
10
11/**
12 * \chinese
13 * 视图 API 提供者
14 * 提供与安装或程序节点贡献的视图(UI)相关的功能访问。
15 *
16 * <b>注意:</b>此接口不适用于具有基于 HTML 用户界面的 AuboCap 程序和安装节点。
17 * \endchinese
18 * \english
19 * ViewApiProvider
20 * Provides access to functionality relevant for the View (UI) of an
21 * installation or a program node contribution.
22 *
23 * <b>NOTE:</b> This interface is not relevant for AuboCap program and
24 * installation nodes with a HTML-based user interface.
25 * \endenglish
26 */
28{
29public:
34
35 /**
36 * \chinese
37 * 提供对系统相关功能的访问。
38 *
39 * @return SystemAPI 实例
40 * \endchinese
41 * \english
42 * Provides access to system related functionality.
43 *
44 * @return an instance of SystemAPI.
45 * \endenglish
46 */
47 SystemApiPtr getSystemApi();
48
49 /**
50 * \chinese
51 * 提供对用户界面和用户交互相关功能的访问。
52 *
53 * @return UserInterfaceAPI 实例
54 * \endchinese
55 * \english
56 * Provides access to functionality related to user interface and user
57 * interaction.
58 *
59 * @return an instance of UserInterfaceAPI.
60 * \endenglish
61 */
62 UserInterfaceApiPtr getUserInterfaceApi();
63
64private:
65 friend class DataSwitch;
66 void *d_{ nullptr };
67};
68
69} // namespace aubo_scope
70} // namespace arcs
71
72#endif // AUBO_SCOPE_VIEW_API_PROVIDER_H
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 视图 API 提供者 提供与安装或程序节点贡献的视图(UI)相关的功能访问。
UserInterfaceApiPtr getUserInterfaceApi()
\chinese 提供对用户界面和用户交互相关功能的访问。
ViewApiProvider(ViewApiProvider &&f)
ViewApiProvider(ViewApiProvider &f)
SystemApiPtr getSystemApi()
\chinese 提供对系统相关功能的访问。