Sources.java revision 21bff9bbf4286907b01d3153bff2fbd6b5ec5df8
1
2package com.android.quicksearchbox;
3
4import java.util.Collection;
5
6/**
7 * Search source set.
8 */
9public interface Sources {
10
11    /**
12     * Gets all sources.
13     */
14    Collection<Source> getSources();
15
16    /**
17     * Gets a source by name.
18     *
19     * @return A source, or {@code null} if no source with the given name exists.
20     */
21    Source getSource(String name);
22
23    /**
24     * Gets the web search source.
25     */
26    Source getWebSearchSource();
27
28    /**
29     * Updates the list of sources.
30     */
31    void update();
32
33}
34