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.net.Uri;
     22 import android.os.Handler;
     23 
     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 import com.android.mail.providers.Address;
     29 
     30 import java.util.Map;
     31 
     32 /**
     33  * Callbacks for fragments that use the {@link SecureConversationViewController}.
     34  */
     35 public interface SecureConversationViewControllerCallbacks {
     36     public Handler getHandler();
     37     public AbstractConversationWebViewClient getWebViewClient();
     38     public Fragment getFragment();
     39     public void setupConversationHeaderView(ConversationViewHeader headerView);
     40     public boolean isViewVisibleToUser();
     41     public ContactInfoSource getContactInfoSource();
     42     public ConversationAccountController getConversationAccountController();
     43     public Map<String, Address> getAddressCache();
     44     public void setupMessageHeaderVeiledMatcher(MessageHeaderView messageHeaderView);
     45     public void startMessageLoader();
     46     public String getBaseUri();
     47     public boolean isViewOnlyMode();
     48     public Uri getAccountUri();
     49 }
     50