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
18package com.android.mail.ui;
19
20import android.app.Fragment;
21import android.os.Handler;
22
23import com.android.emailcommon.mail.Address;
24import com.android.mail.ContactInfoSource;
25import com.android.mail.browse.ConversationAccountController;
26import com.android.mail.browse.ConversationViewHeader;
27import com.android.mail.browse.MessageHeaderView;
28
29import java.util.Map;
30
31/**
32 * Callbacks for fragments that use the {@link SecureConversationViewController}.
33 */
34public 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