1326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira/* 2326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira * Copyright (C) 2012 Google Inc. 3326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira * Licensed to The Android Open Source Project. 47b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * 57b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * Licensed under the Apache License, Version 2.0 (the "License"); 67b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * you may not use this file except in compliance with the License. 77b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * You may obtain a copy of the License at 87b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * 9326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira * http://www.apache.org/licenses/LICENSE-2.0 107b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * 117b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * Unless required by applicable law or agreed to in writing, software 127b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * distributed under the License is distributed on an "AS IS" BASIS, 137b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 147b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * See the License for the specific language governing permissions and 157b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira * limitations under the License. 167b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira */ 177b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira 1830e2c24b056542f3b1b438aeb798305d1226d0c8Andy Huangpackage com.android.mail; 197b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira 20b8331b4565566ca733997398e8c07a26cd2bee98Andy Huangimport android.database.DataSetObserver; 21326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira/** 22326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira * Views that are interested in looking up ContactInfo objects should bind themselves to a 23326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira * ContactInfoSource. 24326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira * 25326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira */ 26326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereirapublic interface ContactInfoSource { 277b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira 28326c660df0a0a36a52ae74d8bafaa22d6f253561Mindy Pereira ContactInfo getContactInfo(String email); 297b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira 30b8331b4565566ca733997398e8c07a26cd2bee98Andy Huang void registerObserver(DataSetObserver observer); 31b8331b4565566ca733997398e8c07a26cd2bee98Andy Huang void unregisterObserver(DataSetObserver observer); 32b8331b4565566ca733997398e8c07a26cd2bee98Andy Huang 337b56a61174eeb202eea468b7f68b79729737ded2Mindy Pereira} 34