using Gee;
using Valadoc.Content;
+
+/**
+ * Represents an signal.
+ */
public class Valadoc.Api.Signal : Member {
public Signal (Vala.Signal symbol, Node parent) {
base (symbol, parent);
return_type = new TypeReference (symbol.return_type, this);
}
+ /**
+ * Returns the name of this signal as it is used in C.
+ */
public string? get_cname () {
return ((Vala.Signal) symbol).get_cname();
}
+ /**
+ * Returns the dbus-name.
+ */
public string get_dbus_name () {
return Vala.DBusModule.get_dbus_name_for_member (symbol);
}
+ /**
+ * The return type of this signal.
+ *
+ * @return The return type of this signal or null for void
+ */
public TypeReference? return_type { protected set; get; }
+ /**
+ * {@inheritDoc}
+ */
internal override void resolve_type_references (Tree root) {
return_type.resolve_type_references (root);
base.resolve_type_references (root);
}
+ /**
+ * Specifies whether this signal is virtual
+ */
public bool is_virtual {
get {
return ((Vala.Signal) symbol).is_virtual;
}
}
+ /**
+ * Specifies whether this signal is visible for dbus
+ */
public bool is_dbus_visible {
get {
return Vala.DBusServerModule.is_dbus_visible (symbol);
}
}
+ /**
+ * {@inheritDoc}
+ */
protected override Inline build_signature () {
var signature = new SignatureBuilder ();
return signature.get ();
}
+ /**
+ * {@inheritDoc}
+ */
public override NodeType node_type { get { return NodeType.SIGNAL; } }
+ /**
+ * {@inheritDoc}
+ */
public override void accept (Visitor visitor) {
visitor.visit_signal (this);
}