AuboCaps  0.6.0
popup_node.h
Go to the documentation of this file.
1 #ifndef AUBO_SCOPE_POPUP_NODE_H
2 #define AUBO_SCOPE_POPUP_NODE_H
3 
4 #include <string>
6 
7 namespace arcs {
8 namespace aubo_scope {
9 ARCS_CLASS_FORWARD(PopupNode);
10 
12 {
13 public:
14  enum Type
15  {
18  ERROR
19  };
20 
21  PopupNode(PopupNode &f);
22  PopupNode(PopupNode &&f);
23  virtual ~PopupNode();
24 
25  /**
26  *
27  * @param message the message in the pop up for the end user
28  * @return this node
29  * @throws IllegalStateException if called from a Swing-based AuboCap
30  * outside of an {@link UndoableChanges} scope (see also {@link
31  * UndoRedoManager})
32  */
33 
34  void setMessage(std::string message);
35  std::string getMessage();
36  /**
37  *
38  * @param type the type of pop up
39  * @return this node
40  * @throws IllegalStateException if called from a Swing-based AuboCap
41  * outside of an {@link UndoableChanges} scope (see also {@link
42  * UndoRedoManager})
43  */
44  void setType(Type type);
45  Type getType() const;
46 
47 private:
48  friend class DataSwitch;
49  PopupNode();
50  void *d_{ nullptr };
51 };
52 
53 } // namespace aubo_scope
54 } // namespace arcs
55 #endif // AUBO_SCOPE_POPUP_NODE_H
ARCS_CLASS_FORWARD(GripForceCapability)
#define ARCS_ABI_EXPORT
Definition: class_forward.h:16