Skip to content
com.emacsos.zero.ZeroPinyinService1.ZeroPinyinServiceInterface.xml 1.34 KiB
Newer Older
<!DOCTYPE node PUBLIC
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" >
<node>
  <interface name="com.emacsos.zero.ZeroPinyinService1.ZeroPinyinServiceInterface">
    <!--
	GetCandidates:
	@preedit_str: the preedit string
	@fetch_size: how many candidates to fetch
	@candidates: the candidates
	@matched_preedit_str_lengths: the matched str length in preedit str for
	                              each candidate

	Get candidates for a preedit string. This method will fetch at least
	fetch_size candidates if they exists. However, this method is allowed to
	return more candidates than fetch_size.

    -->
    <method name="GetCandidates">
      <arg type="s" name="preedit_str"/>
      <arg type="u" name="fetch_size"/>
      <arg type="as" name="candidates" direction="out"/>
      <arg type="au" name="matched_preedit_str_lengths" direction="out"/>
    </method>

    <!-- DeleteCandidate

	 @candidate: the candidate to delete.

	 This will make given candidate disappear for current user in future
	 typing. delete single character is not allowed. it will be a no-op.
    -->
    <method name="DeleteCandidate">
      <arg type="s" name="candidate"/>
    </method>

    <method name="Quit"/>

    <annotation name="org.gtk.GDBus.C.Name" value="ZeroPinyinService"/>
  </interface>
</node>