File: org.gnome.ShellSearchProvider.xml

package info (click to toggle)
gnome-shell 3.4.2-7%2Bdeb7u2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 16,316 kB
  • sloc: ansic: 43,092; sh: 11,950; makefile: 595; xml: 191; python: 13
file content (147 lines) | stat: -rw-r--r-- 4,591 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!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="org.gnome.Shell.SearchProvider">
    <doc:doc>
      <doc:description>
        <doc:para>
          The interface used for integrating into GNOME Shell's search
          interface.
        </doc:para>
      </doc:description>
    </doc:doc>

    <method name="GetInitialResultSet">
      <doc:doc>
        <doc:description>
          <doc:para>
            Called when the user first begins a search.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type="as" direction="in">
        <doc:doc>
          <doc:summary>
            <doc:para>
              Array of search terms, which the provider should treat as
              logical AND.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type="as" direction="out">
        <doc:doc>
          <doc:summary>
            <doc:para>
              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.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </method>

    <method name="GetSubsearchResultSet">
      <doc:doc>
        <doc:description>
          <doc:para>
            Called when a search is performed which is a "subsearch" of
            the previous search, e.g. the method may return less results, but
            not more or different results.

            This allows search providers to only search through the previous
            result set, rather than possibly performing a full re-query.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type="as" direction="in">
        <doc:doc>
          <doc:summary>
            <doc:para>
              Array of item identifiers
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type="as" direction="in">
        <doc:doc>
          <doc:summary>
            <doc:para>
              Array of updated search terms, which the provider should treat as
              logical AND.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type="as" direction="out">
        <doc:doc>
          <doc:summary>
            <doc:para>
              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.
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </method>

    <method name="GetResultMetas">
      <doc:doc>
        <doc:description>
          <doc:para>
            Return an array of meta data used to display each given result
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type="as" direction="in">
        <doc:doc>
          <doc:summary>
            <doc:para>
              An array of result identifiers as returned by
              GetInitialResultSet() or GetSubsearchResultSet()
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
      <arg type="a{sv}" direction="out">
        <doc:doc>
          <doc:summary>
            <doc:para>
              A dictionary describing the given search result, containing
              'id', 'name' (both strings) and either 'icon' (a serialized
              GIcon) or 'icon-data' (raw image data as (iiibiiay) - width,
              height, rowstride, has-alpha, bits per sample, channels, data)
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </method>

    <method name="ActivateResult">
      <doc:doc>
        <doc:description>
          <doc:para>
            Called when the users chooses a given result. The result should
            be displayed in the application associated with the corresponding
            provider.
          </doc:para>
        </doc:description>
      </doc:doc>
      <arg type="s" direction="in">
        <doc:doc>
          <doc:summary>
            <doc:para>
              A result identifier as returned by GetInitialResultSet() or
              GetSubsearchResultSet()
            </doc:para>
          </doc:summary>
        </doc:doc>
      </arg>
    </method>
  </interface>
</node>