[Xesam] Need paged search mode for xesam

Philip Van Hoof spam at pvanhoof.be
Thu May 8 02:15:12 PDT 2008


On Wed, 2008-05-07 at 21:16 +0200, Mikkel Kamstrup Erlandsen wrote:
> 2008/5/7 Jamie McCracken <jamie.mccrack at googlemail.com>:

>         I think we would need:

>         GetPagedHits
>         GetPagedHitData

>         to cover all use cases
> 
> If there is more than one method needed for paging nirvana it begins
> to make sense to add a org.freedesktop.xesam.PagedSear
> ch interface to the spec. This can go in 1.1 (and if we can mature it
> fast enough it should not be a problem for Nokia to depend upon it
> before 1.1 is out). 

Here's a first proposal:

<?xml version="1.0" encoding="UTF-8"?>
<node name="/org/freedesktop/xesam">
  <interface name="org.freedesktop.xesam.Search">
	...
  </interface>

  <interface name="org.freedesktop.xesam.PagedSearch">
      <method name="GetRangeHits">
      <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
      <arg type="s" name="search" direction="in" />
      <arg type="u" name="a" direction="in" />
      <arg type="u" name="b" direction="in" />
      <arg type="aav" name="hits" direction="out" />
    </method>

    <method name="GetRangeHitData">
      <annotation name="org.freedesktop.DBus.GLib.Async" value="true"/>
      <arg type="s" name="search" direction="in" />
      <arg type="u" name="a" direction="in" />
      <arg type="u" name="b" direction="in" />
      <arg type="as" name="fields" direction="in" />
      <arg type="aav" name="hit_data" direction="out" />
    </method>
  </interface>
</node>


-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be






More information about the Xesam mailing list