]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc/api: Add API documentation for Signal
authorFlorian Brosch <flo.brosch@gmail.com>
Mon, 28 Feb 2011 00:52:24 +0000 (01:52 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Mon, 28 Feb 2011 00:52:24 +0000 (01:52 +0100)
src/libvaladoc/api/signal.vala

index ffecf94ae91dbdb56e775caccab5bd1ea81e41a0..ed16ba87d9c8c503480122b2da0ea8d140fce1b5 100644 (file)
 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 ();
 
@@ -83,8 +110,14 @@ public class Valadoc.Api.Signal : Member {
                return signature.get ();
        }
 
+       /**
+        * {@inheritDoc}
+        */
        public override NodeType node_type { get { return NodeType.SIGNAL; } }
 
+       /**
+        * {@inheritDoc}
+        */
        public override void accept (Visitor visitor) {
                visitor.visit_signal (this);
        }