~ubuntu-branches/debian/sid/bijiben/sid

« back to all changes in this revision

Viewing changes to data/shell-search-provider-dbus-interfaces.xml

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2013-03-26 21:19:36 UTC
  • Revision ID: package-import@ubuntu.com-20130326211936-tu8mpy82juohw8m2
Tags: upstream-3.8.0
ImportĀ upstreamĀ versionĀ 3.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE node PUBLIC
 
2
'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN'
 
3
'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'>
 
4
<node>
 
5
 
 
6
  <!--
 
7
      org.gnome.Shell.SearchProvider2:
 
8
      @short_description: Search provider interface
 
9
 
 
10
      The interface used for integrating into GNOME Shell's search
 
11
      interface (version 2).
 
12
  -->
 
13
  <interface name="org.gnome.Shell.SearchProvider2">
 
14
 
 
15
    <!--
 
16
        GetInitialResultSet:
 
17
        @terms: Array of search terms, which the provider should treat as logical AND.
 
18
        @results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
 
19
 
 
20
        Called when the user first begins a search.
 
21
    -->
 
22
    <method name="GetInitialResultSet">
 
23
      <arg type="as" name="terms" direction="in" />
 
24
      <arg type="as" name="results" direction="out" />
 
25
    </method>
 
26
 
 
27
    <!--
 
28
        GetSubsearchResultSet:
 
29
        @previous_results: Array of results previously returned by GetInitialResultSet().
 
30
        @terms: Array of updated search terms, which the provider should treat as logical AND.
 
31
        @results: An array of result identifier strings representing items which match the given search terms. Identifiers must be unique within the provider's domain, but other than that may be chosen freely by the provider.
 
32
 
 
33
        Called when a search is performed which is a "subsearch" of
 
34
        the previous search, e.g. the method may return less results, but
 
35
        not more or different results.
 
36
 
 
37
        This allows search providers to only search through the previous
 
38
        result set, rather than possibly performing a full re-query.
 
39
    -->
 
40
    <method name="GetSubsearchResultSet">
 
41
      <arg type="as" name="previous_results" direction="in" />
 
42
      <arg type="as" name="terms" direction="in" />
 
43
      <arg type="as" name="results" direction="out" />
 
44
    </method>
 
45
 
 
46
    <!--
 
47
        GetResultMetas:
 
48
        @identifiers: An array of result identifiers as returned by GetInitialResultSet() or GetSubsearchResultSet()
 
49
        @metas: A dictionary describing the given search result, containing 'id' and 'name' (both strings). Optionally, either 'gicon' (a serialized GIcon) or 'icon-data' (raw image data as (iiibiiay) - width, height, rowstride, has-alpha, bits per sample, channels, data) can be specified if the result can be better served with a thumbnail of the content (such as with images). A 'description' field (string) may also be specified if more context would help the user find the desired result.
 
50
 
 
51
        Return an array of meta data used to display each given result
 
52
    -->
 
53
    <method name="GetResultMetas">
 
54
      <arg type="as" name="identifiers" direction="in" />
 
55
      <arg type="aa{sv}" name="metas" direction="out" />
 
56
    </method>
 
57
 
 
58
    <!--
 
59
        ActivateResult:
 
60
        @identifier: A result identifier as returned by GetInitialResultSet() or GetSubsearchResultSet()
 
61
        @terms: Array of search terms, which the provider should treat as logical AND.
 
62
        @timestamp: A timestamp of the user interaction that triggered this call
 
63
 
 
64
        Called when the users chooses a given result. The result should
 
65
        be displayed in the application associated with the corresponding
 
66
        provider. The provided search terms can be used to allow launching a full search in
 
67
        the application.
 
68
    -->
 
69
    <method name="ActivateResult">
 
70
      <arg type="s" name="identifier" direction="in" />
 
71
      <arg type="as" name="terms" direction="in" />
 
72
      <arg type="u" name="timestamp" direction="in" />
 
73
    </method>
 
74
 
 
75
    <!--
 
76
        LaunchSearch:
 
77
        @terms: Array of search terms, which the provider should treat as logical AND.
 
78
        @timestamp: A timestamp of the user interaction that triggered this call
 
79
 
 
80
        Asks the search provider to launch a full search in the application for the provided terms.
 
81
    -->
 
82
    <method name="LaunchSearch">
 
83
      <arg type="as" name="terms" direction="in" />
 
84
      <arg type="u" name="timestamp" direction="in" />
 
85
    </method>
 
86
  </interface>
 
87
</node>