AuboStudio SDK 0.6.3

installation_node_contribution.h
浏览该文件的文档.
1 #ifndef AUBO_SCOPE_INSTALLATION_NODE_CONTRIBUTION_H
2 #define AUBO_SCOPE_INSTALLATION_NODE_CONTRIBUTION_H
3
4 #include <aubo_caps/domain/script/script_writer.h>
5
6 namespace arcs {
7 namespace aubo_scope {
8 ARCS_CLASS_FORWARD(InstallationNodeContribution);
9
10 /**
11 * API for installation node contributions.
12 */
13 class InstallationNodeContribution
14 {
15 public:
16 virtual ~InstallationNodeContribution() = default;
17
18 /**
19 * Called each time the end user opens this AuboCap contribution in the
20 * Installation Tab.
21 */
22 virtual void openView() = 0;
23
24 /**
25 * Called each time the end user exits this AuboCap contribution in the
26 * Installation Tab.
27 */
28 virtual void closeView() = 0;
29
30 /**
31 * Defines script code that is added to the beginning of the script code
32 * executed when a program is launched.
33 *
34 * @param writer serves to add script commands to program script code
35 * preamble.
36 */
37 virtual void generateScript(ScriptWriterPtr script_writer) = 0;
38 };
39
40 } // namespace aubo_scope
41 } // namespace arcs
42
43 #endif // AUBO_SCOPE_INSTALLATIONNODECONTRIBUTION_H
arcs::aubo_scope::InstallationNodeContribution
API for installation node contributions.
Definition: installation_node_contribution.h:14
arcs::aubo_scope::InstallationNodeContribution::generateScript
virtual void generateScript(ScriptWriterPtr script_writer)=0
Defines script code that is added to the beginning of the script code executed when a program is laun...
arcs::aubo_scope::InstallationNodeContribution::openView
virtual void openView()=0
Called each time the end user opens this AuboCap contribution in the Installation Tab.
arcs::aubo_scope::InstallationNodeContribution::closeView
virtual void closeView()=0
Called each time the end user exits this AuboCap contribution in the Installation Tab.
arcs::aubo_scope::InstallationNodeContribution::~InstallationNodeContribution
virtual ~InstallationNodeContribution()=default
arcs::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs
Definition: contribution_provider.h:7
script_writer.h