AuboStudio SDK  0.6.3
installation_node_view.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_INSTALLATION_NODE_VIEW_H
2#define AUBO_SCOPE_INSTALLATION_NODE_VIEW_H
3
6
7typedef long WidgetHandle;
8
9namespace arcs {
10namespace aubo_scope {
12
13/**
14 * API for an installation node View which defines the UI for the corresponding
15 * {@link InstallationNodeContribution}
16 *
17 * @param <C> the (generic) type parameter for the interface representing the
18 * type of the
19 * {@link InstallationNodeContribution} for which this view
20 * implements the UI
21 */
23{
24public:
25 virtual ~InstallationNodeView() = default;
26
27 /**
28 * Build the UI for the corresponding {@link InstallationNodeContribution}
29 * on the provided panel. Use the contribution for your logic and data model
30 * manipulations.
31 *
32 * @param panel the panel to build the UI on
33 * @param contribution the corresponding installation node contribution/
34 */
35 virtual void buildUi(WidgetHandle panel,
36 InstallationNodeContributionPtr contribution) = 0;
37};
38
39} // namespace aubo_scope
40} // namespace arcs
41
42#endif // AUBO_SCOPE_INSTALLATION_NODE_VIEW_H
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
API for an installation node View which defines the UI for the corresponding InstallationNodeContribu...
virtual void buildUi(WidgetHandle panel, InstallationNodeContributionPtr contribution)=0
Build the UI for the corresponding InstallationNodeContribution on the provided panel.