[Telepathy-commits] [telepathy-spec/master] Add types to the interface
Davyd Madeley
davyd at madeley.id.au
Mon Mar 23 12:29:20 PDT 2009
---
doc/templates/interface.html | 20 ++++++++++++++++----
tools/specparser.py | 4 +++-
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/doc/templates/interface.html b/doc/templates/interface.html
index a3e2ccf..7155cad 100644
--- a/doc/templates/interface.html
+++ b/doc/templates/interface.html
@@ -26,7 +26,9 @@
<div class="indent">
<h3>Parameters</h3>
#for $arg in $method.in_args
- $arg.short_name<br/>
+ $arg.short_name — $arg.dbus_type
+ #if $arg.type: (<a href="$arg.type.get_url()" title="$arg.type.get_title()">$arg.type.short_name</a>)
+ <br/>
#end for
</div>
#end if
@@ -34,7 +36,9 @@
<div class="indent">
<h3>Returns</h3>
#for $arg in $method.out_args
- $arg.short_name<br/>
+ $arg.short_name — $arg.dbus_type
+ #if $arg.type: (<a href="$arg.type.get_url()" title="$arg.type.get_title()">$arg.type.short_name</a>)
+ <br/>
#end for
</div>
$method.get_docstring()
@@ -55,7 +59,9 @@
<div class="indent">
<h3>Parameters</h3>
#for $arg in $signal.args
- $arg.short_name<br/>
+ $arg.short_name — $arg.dbus_type
+ #if $arg.type: (<a href="$arg.type.get_url()" title="$arg.type.get_title()">$arg.type.short_name</a>)
+ <br/>
#end for
</div>
#end if
@@ -68,10 +74,16 @@
#if $interface.properties
<div id="properties" class="outset property">
<h1>Properties</h1>
+ <div>
+ Accessed using the org.freedesktop.DBus.Properties interface.
+ </div>
#for $property in $interface.properties
<div id="$property.name" class="inset property">
<span class="permalink">(<a href="$property.get_url()">Permalink</a>)</span>
- <h2>$property.short_name</h2>
+ <h2>
+ $property.short_name — $property.dbus_type
+ #if $property.type: (<a href="$property.type.get_url()" title="$property.type.get_title()">$property.type.short_name</a>)
+ </h2>
$property.get_docstring()
</div>
#end for
diff --git a/tools/specparser.py b/tools/specparser.py
index 81f7f09..2bca016 100644
--- a/tools/specparser.py
+++ b/tools/specparser.py
@@ -233,7 +233,9 @@ class DBusType (base):
Don't instantiate this class directly.
"""
- pass
+
+ def get_url (self):
+ return '#FIXME'
class SimpleType (DBusType): pass
--
1.5.6.5
More information about the telepathy-commits
mailing list