/*
   * 列表刷新
   */
  @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;
  }
  private void showPage(ViewPage p) {
    if (curViewPage == p) return;

    curViewPage = p;

    showView(R.id.file_path_list, false);
    mFavoriteList.show(false);
    showEmptyView(false);

    switch (p) {
      case Favorite:
        mFavoriteList.show(true);
        showEmptyView(mFavoriteList.getCount() == 0);
        break;
      case Category:
        showView(R.id.file_path_list, true);
        showEmptyView(mAdapter.getCount() == 0);
        break;
    }
  }
 @Override
 public Collection<FileInfo> getAllFiles() {
   // TODO Auto-generated method stub
   return mAdapter.getAllFiles();
 }
 @Override
 public FileInfo getItem(int pos) {
   // TODO Auto-generated method stub
   return mAdapter.getFileItem(pos);
 }