SearchSettings.java revision 73a375928e0b8f0b2bfa09e4b252cfcbdad4ef84
1/* 2 * Copyright (C) 2009 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.quicksearchbox; 18 19import android.content.Intent; 20import android.view.Menu; 21 22/** 23 * Interface for search settings. 24 */ 25public interface SearchSettings { 26 27 public void upgradeSettingsIfNeeded(); 28 29 public Intent getSearchableItemsIntent(); 30 31 public boolean isCorpusEnabled(Corpus corpus); 32 33 /** 34 * Informs our listeners about the updated settings data. 35 */ 36 public void broadcastSettingsChanged(); 37 38 public void addMenuItems(Menu menu, boolean showDisabled); 39 40 public int getNextVoiceSearchHintIndex(int size); 41 42 public void resetVoiceSearchHintFirstSeenTime(); 43 44 public boolean haveVoiceSearchHintsExpired(int currentVoiceSearchVersion); 45 46 public Intent getSearchSettingsIntent(); 47 48 public boolean allowWebSearchShortcuts(); 49 50} 51