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 {
getHandler()35     public Handler getHandler();
getWebViewClient()36     public AbstractConversationWebViewClient getWebViewClient();
getFragment()37     public Fragment getFragment();
setupConversationHeaderView(ConversationViewHeader headerView)38     public void setupConversationHeaderView(ConversationViewHeader headerView);
isViewVisibleToUser()39     public boolean isViewVisibleToUser();
getContactInfoSource()40     public ContactInfoSource getContactInfoSource();
getConversationAccountController()41     public ConversationAccountController getConversationAccountController();
getAddressCache()42     public Map<String, Address> getAddressCache();
setupMessageHeaderVeiledMatcher(MessageHeaderView messageHeaderView)43     public void setupMessageHeaderVeiledMatcher(MessageHeaderView messageHeaderView);
startMessageLoader()44     public void startMessageLoader();
getBaseUri()45     public String getBaseUri();
isViewOnlyMode()46     public boolean isViewOnlyMode();
shouldAlwaysShowImages()47     public boolean shouldAlwaysShowImages();
48 }
49