Home | History | Annotate | Download | only in ui
      1 /*
      2  * Copyright (C) 2013 Google Inc.
      3  * Licensed to The Android Open Source Project.
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *      http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  */
     17 
     18 package com.android.mail.ui;
     19 
     20 import android.app.Fragment;
     21 import android.os.Handler;
     22 
     23 import com.android.emailcommon.mail.Address;
     24 import com.android.mail.ContactInfoSource;
     25 import com.android.mail.browse.ConversationAccountController;
     26 import com.android.mail.browse.ConversationViewHeader;
     27 import com.android.mail.browse.MessageHeaderView;
     28 
     29 import java.util.Map;
     30 
     31 /**
     32  * Callbacks for fragments that use the {@link SecureConversationViewController}.
     33  */
     34 public interface SecureConversationViewControllerCallbacks {
     35     public Handler getHandler();
     36     public AbstractConversationWebViewClient getWebViewClient();
     37     public Fragment getFragment();
     38     public void setupConversationHeaderView(ConversationViewHeader headerView);
     39     public boolean isViewVisibleToUser();
     40     public ContactInfoSource getContactInfoSource();
     41     public ConversationAccountController getConversationAccountController();
     42     public Map<String, Address> getAddressCache();
     43     public void setupMessageHeaderVeiledMatcher(MessageHeaderView messageHeaderView);
     44     public void startMessageLoader();
     45     public String getBaseUri();
     46     public boolean isViewOnlyMode();
     47     public boolean shouldAlwaysShowImages();
     48 }
     49