/*
   * 列表刷新
   */
  @Override
  public boolean onRefreshFileList(String path, FileSortHelper sort) {
    // TODO Auto-generated method stub
    FileCategoryType curCategoryType = mFileCagetoryHelper.getCurCategoryType();
    if (curCategoryType == FileCategoryType.Favorite || curCategoryType == FileCategoryType.All)
      return false;

    Cursor c = mFileCagetoryHelper.query(curCategoryType, sort.getSortMethod());
    showEmptyView(c == null || c.getCount() == 0);
    mAdapter.changeCursor(c);

    return true;
  }
  /*
   * 选中某分类文件
   */
  public void onCategorySelected(FileCategoryType f) {
    if (mFileCagetoryHelper.getCurCategoryType() != f) {
      mFileCagetoryHelper.setCurCategoryType(f);
      ;
      mFileInteractionHub.setCurrentPath(
          mFileInteractionHub.getRootPath()
              + getString(mFileCagetoryHelper.getCurCategoryNameResId()));
      mFileInteractionHub.refreshFileList();
    }

    if (f == FileCategoryType.Favorite) {
      showPage(ViewPage.Favorite);
    } else {
      showPage(ViewPage.Category);
    }
  }