diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:07:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:07:22 +0000 |
commit | f9d480cfe50ca1d7a0f0b5a2b8bb9932962bfbe7 (patch) | |
tree | ce9e8db2d4e8799780fa72ae8f1953039373e2ee /data/dbus-interfaces/org.gnome.ShellSearchProvider.xml | |
parent | Initial commit. (diff) | |
download | gnome-shell-f9d480cfe50ca1d7a0f0b5a2b8bb9932962bfbe7.tar.xz gnome-shell-f9d480cfe50ca1d7a0f0b5a2b8bb9932962bfbe7.zip |
Adding upstream version 3.38.6.upstream/3.38.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'data/dbus-interfaces/org.gnome.ShellSearchProvider.xml')
-rw-r--r-- | data/dbus-interfaces/org.gnome.ShellSearchProvider.xml | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/data/dbus-interfaces/org.gnome.ShellSearchProvider.xml b/data/dbus-interfaces/org.gnome.ShellSearchProvider.xml new file mode 100644 index 0000000..78ad305 --- /dev/null +++ b/data/dbus-interfaces/org.gnome.ShellSearchProvider.xml @@ -0,0 +1,73 @@ +<!DOCTYPE node PUBLIC +'-//freedesktop//DTD D-BUS Object Introspection 1.0//EN' +'http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd'> +<node> + + <!-- + org.gnome.Shell.SearchProvider: + @short_description: Search provider interface + + The interface used for integrating into GNOME Shell's search + interface. This interface is deprecated, and org.gnome.Shell.SearchProvider2 should be used instead. + --> + <interface name="org.gnome.Shell.SearchProvider"> + + <!-- + GetInitialResultSet: + @terms: Array of search terms, which the provider should treat as logical AND. + @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. + + Called when the user first begins a search. + --> + <method name="GetInitialResultSet"> + <arg type="as" name="terms" direction="in" /> + <arg type="as" name="results" direction="out" /> + </method> + + <!-- + GetSubsearchResultSet: + @previous_results: Array of results previously returned by GetInitialResultSet(). + @terms: Array of updated search terms, which the provider should treat as logical AND. + @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. + + 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. + --> + <method name="GetSubsearchResultSet"> + <arg type="as" name="previous_results" direction="in" /> + <arg type="as" name="terms" direction="in" /> + <arg type="as" name="results" direction="out" /> + </method> + + <!-- + GetResultMetas: + @identifiers: An array of result identifiers as returned by GetInitialResultSet() or GetSubsearchResultSet() + @metas: A dictionary describing the given search result, containing a human-readable 'name' (string), along with the result identifier this meta is for, 'id' (string). 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. + + Return an array of meta data used to display each given result + --> + <method name="GetResultMetas"> + <arg type="as" name="identifiers" direction="in" /> + <arg type="aa{sv}" name="metas" direction="out" /> + </method> + + <!-- + ActivateResult: + @identifier: A result identifier as returned by GetInitialResultSet() or GetSubsearchResultSet() + + Called when the users chooses a given result. The result should + be displayed in the application associated with the corresponding + provider. + + This method is deprecated, and providers should implement ActivateResult2() + instead. + --> + <method name="ActivateResult"> + <arg type="s" name="identifier" direction="in" /> + </method> + </interface> +</node> |