package com.pencilbox.netknight.presentor;


/**
 * Created by pencil-box on 16/6/29.
 * applist展示界面
 */
public interface IAppInfoPresenter {


    //加载app列表数据
    void loadAppList();

    /**
     * 改变应用的Id
     *
     * @param typeId   参考Constants的access type
     * @param isWIFI   true为是wifi类型,false为移动数据网络
     * @param position 点击的item 的position
     */
    void changeAppAccessPermission(int position, int typeId, boolean isWIFI);

    int ORDER_BY_NAME = 1;
    int ORDER_BY_NET = 2;
    int ORDER_BY_NET_PERMISSION = 3;
    int ORDER_BY_WIFI = 4;
    int ORDER_BY_WIFI_PERMISSION = 5;

    /**
     * 根据排序类型对列表进行排序
     *
     * @param orderType
     */
    void orderAppList(int orderType);

    //修改app是否经过vpn信息
    void changeAppIsVpnAccess(int position);

}
