1f84b1a90cf76e7eff76affa17834377194caba8cSara Ting/* 2f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * Copyright (C) 2012 The Android Open Source Project 3f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * 4f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * Licensed under the Apache License, Version 2.0 (the "License"); 5f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * you may not use this file except in compliance with the License. 6f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * You may obtain a copy of the License at 7f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * 8f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * http://www.apache.org/licenses/LICENSE-2.0 9f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * 10f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * Unless required by applicable law or agreed to in writing, software 11f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * distributed under the License is distributed on an "AS IS" BASIS, 12f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * See the License for the specific language governing permissions and 14f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * limitations under the License. 15f84b1a90cf76e7eff76affa17834377194caba8cSara Ting */ 16f84b1a90cf76e7eff76affa17834377194caba8cSara Ting 17f84b1a90cf76e7eff76affa17834377194caba8cSara Tingpackage com.android.calendar; 18f84b1a90cf76e7eff76affa17834377194caba8cSara Ting 19f84b1a90cf76e7eff76affa17834377194caba8cSara Tingimport android.content.Context; 20f84b1a90cf76e7eff76affa17834377194caba8cSara Tingimport android.view.Menu; 21f84b1a90cf76e7eff76affa17834377194caba8cSara Tingimport android.view.MenuItem; 22f84b1a90cf76e7eff76affa17834377194caba8cSara Ting 23f84b1a90cf76e7eff76affa17834377194caba8cSara Ting/* 24f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * Interface for additional options in the AllInOne menu. 25f84b1a90cf76e7eff76affa17834377194caba8cSara Ting */ 26f84b1a90cf76e7eff76affa17834377194caba8cSara Tingpublic interface AllInOneMenuExtensionsInterface { 27f84b1a90cf76e7eff76affa17834377194caba8cSara Ting /** 28f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * Returns additional options. 29f84b1a90cf76e7eff76affa17834377194caba8cSara Ting */ 30f84b1a90cf76e7eff76affa17834377194caba8cSara Ting Integer getExtensionMenuResource(Menu menu); 31f84b1a90cf76e7eff76affa17834377194caba8cSara Ting 32f84b1a90cf76e7eff76affa17834377194caba8cSara Ting /** 33f84b1a90cf76e7eff76affa17834377194caba8cSara Ting * Handle selection of the additional options. 34f84b1a90cf76e7eff76affa17834377194caba8cSara Ting */ 35f84b1a90cf76e7eff76affa17834377194caba8cSara Ting boolean handleItemSelected(MenuItem item, Context context); 36f84b1a90cf76e7eff76affa17834377194caba8cSara Ting} 37