[Tracker] [Fwd: Re: [Xesam] Need paged search mode for xesam]



Hey Jamie,

About the Xesam discussion for range-searches, here's a patch that would
add the remote API to the indexer-split branch. If there's some sort of
OK from Mikkel I plan to commit this to the branch (or else adapt it to
the proposed API).


-- 
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



--- Begin Message ---

On Wed, 2008-05-07 at 21:16 +0200, Mikkel Kamstrup Erlandsen wrote:
2008/5/7 Jamie McCracken <jamie mccrack 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




--- End Message ---

Attachment: RangeSearch.diff
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]