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
4 #include <aubo_caps/class_forward.h>
5 #include <aubo_caps/contribution/installation/installation_node_contribution.h>
6
7 typedef long WidgetHandle;
8
9 namespace arcs {
10 namespace aubo_scope {
11 ARCS_CLASS_FORWARD(InstallationNodeView);
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 */
22 class InstallationNodeView
23 {
24 public:
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
class_forward.h
arcs::aubo_scope::InstallationNodeView
API for an installation node View which defines the UI for the corresponding InstallationNodeContribu...
Definition: installation_node_view.h:23
arcs::aubo_scope::InstallationNodeView::buildUi
virtual void buildUi(WidgetHandle panel, InstallationNodeContributionPtr contribution)=0
Build the UI for the corresponding InstallationNodeContribution on the provided panel.
arcs::aubo_scope::InstallationNodeView::~InstallationNodeView
virtual ~InstallationNodeView()=default
installation_node_contribution.h
WidgetHandle
long WidgetHandle
Definition: installation_node_view.h:7
arcs::aubo_scope::WidgetHandle
long WidgetHandle
Definition: program_node_view.h:9
arcs::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs
Definition: contribution_provider.h:7