]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Api: Add methods to support dbus interfaces documentation
authorLuca Bruno <lethalman88@gmail.com>
Tue, 4 May 2010 20:12:00 +0000 (22:12 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 4 May 2010 20:12:00 +0000 (22:12 +0200)
src/libvaladoc/api/class.vala
src/libvaladoc/api/errorcode.vala
src/libvaladoc/api/errordomain.vala
src/libvaladoc/api/interface.vala
src/libvaladoc/api/method.vala
src/libvaladoc/api/property.vala
src/libvaladoc/api/signal.vala
src/libvaladoc/api/typereference.vala

index 5cd03a0fb31cd92b645fe321eb73d96e66ada3cd..7ee2c6af34900dd9182ab4ed99e5bba56355c2f9 100644 (file)
@@ -73,6 +73,10 @@ public class Valadoc.Api.Class : TypeSymbol {
                return this.vclass.get_take_value_function ();
        }
 
+       public string? get_dbus_name () {
+               return Vala.DBusModule.get_dbus_name ((Vala.TypeSymbol) symbol);
+       }
+
        public Collection<TypeReference> get_implemented_interface_list () {
                return this.interfaces;
        }
index f6a4a79eb22f08c6ef98c6555ab749f36e05ac4e..ded2078f735fd5ad0744e08f7b74ee39a809ee97 100644 (file)
@@ -56,6 +56,10 @@ public class Valadoc.Api.ErrorCode : TypeSymbol {
                return ((Vala.ErrorCode) symbol).get_cname ();
        }
 
+       public string get_dbus_name () {
+               return Vala.DBusModule.get_dbus_name_for_member (symbol);
+       }
+
        public override NodeType node_type { get { return NodeType.ERROR_CODE; } }
 
        public override void accept (Visitor visitor) {
index ddb85642c3a352bf28b0098f79a8483637afa11e..03d956a13aa904de39de2db303edf8a8d9532753 100644 (file)
@@ -33,6 +33,10 @@ public class Valadoc.Api.ErrorDomain : TypeSymbol {
                return ((Vala.ErrorDomain) symbol).get_cname();
        }
 
+       public string? get_dbus_name () {
+               return Vala.DBusModule.get_dbus_name ((Vala.TypeSymbol) symbol);
+       }
+
        public override NodeType node_type { get { return NodeType.ERROR_DOMAIN; } }
 
        public override void accept (Visitor visitor) {
index c6b68af60150d683be0b3386b4e5ac03276bd4de..d3177298f12efa5aab36f53ea325d60b7bb54ece 100644 (file)
@@ -54,6 +54,10 @@ public class Valadoc.Api.Interface : TypeSymbol {
                return ((Vala.Interface) symbol).get_cname ();
        }
 
+       public string? get_dbus_name () {
+               return Vala.DBusModule.get_dbus_name ((Vala.TypeSymbol) symbol);
+       }
+
        public TypeReference? base_type { private set; get; }
 
        public override NodeType node_type { get { return NodeType.INTERFACE; } }
index 96087b86422f93fc6d465112063b16fc5d9b6b66..91de383ca92044c64cd2d5fe2ed5ec7bdf6740db 100644 (file)
@@ -37,6 +37,14 @@ public class Valadoc.Api.Method : Member {
                return ((Vala.Method) symbol).get_finish_cname ();
        }
 
+       public string get_dbus_name () {
+               return Vala.DBusModule.get_dbus_name_for_member (symbol);
+       }
+
+       public string get_dbus_result_name () {
+               return Vala.DBusServerModule.dbus_result_name ((Vala.Method) symbol);
+       }
+
        public Method? base_method { private set; get; }
 
        public TypeReference? return_type { private set; get; }
@@ -86,6 +94,12 @@ public class Valadoc.Api.Method : Member {
                }
        }
 
+       public bool is_dbus_visible {
+               get {
+                       return Vala.DBusServerModule.is_dbus_visible (symbol);
+               }
+       }
+
        public override string? name {
                owned get {
                        if (this.is_constructor) {
index af7e25b9ad347b6ffc43000c54b713592d6b4464..b702ee54fdfcf556a230ad07d6beec285e3f870e 100644 (file)
@@ -42,6 +42,10 @@ public class Valadoc.Api.Property : Member {
                return ((Vala.Property) symbol).nick;
        }
 
+       public string get_dbus_name () {
+               return Vala.DBusModule.get_dbus_name_for_member (symbol);
+       }
+
        public TypeReference? property_type { private set; get;}
 
        public bool is_virtual {
@@ -62,6 +66,12 @@ public class Valadoc.Api.Property : Member {
                }
        }
 
+       public bool is_dbus_visible {
+               get {
+                       return Vala.DBusServerModule.is_dbus_visible (symbol);
+               }
+       }
+
        public PropertyAccessor setter { private set; get; }
 
        public PropertyAccessor getter { private set; get; }
index 30b5a36e2bdcac9b78ee8db2492862959b18df3a..ffecf94ae91dbdb56e775caccab5bd1ea81e41a0 100644 (file)
@@ -33,6 +33,10 @@ public class Valadoc.Api.Signal : Member {
                return ((Vala.Signal) symbol).get_cname();
        }
 
+       public string get_dbus_name () {
+               return Vala.DBusModule.get_dbus_name_for_member (symbol);
+       }
+
        public TypeReference? return_type { protected set; get; }
 
        internal override void resolve_type_references (Tree root) {
@@ -47,6 +51,12 @@ public class Valadoc.Api.Signal : Member {
                }
        }
 
+       public bool is_dbus_visible {
+               get {
+                       return Vala.DBusServerModule.is_dbus_visible (symbol);
+               }
+       }
+
        protected override Inline build_signature () {
                var signature = new SignatureBuilder ();
 
index 64b5ac6bcad3dd6796d96d30f846e383abd81700..e62071c137e67fd39a9f2e50c272b62982ec6827 100644 (file)
@@ -174,6 +174,10 @@ public class Valadoc.Api.TypeReference : Item {
                }
        }
 
+       public string? get_dbus_type_signature () {
+               return Vala.DBusModule.get_type_signature (vtyperef);
+       }
+
        internal override void resolve_type_references (Tree root) {
                if ( this.vtyperef is Vala.PointerType) {
                        this.data_type = new Pointer ((Vala.PointerType) this.vtyperef, this);