chxavfileviewpageinfo.cpp
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
源码类别:

Symbian

开发平台:

C/C++

  1. /************************************************************************
  2.  * chxavfileviewpageinfo.cpp
  3.  * -------------------------
  4.  *
  5.  * Synopsis:
  6.  * Class used to maintain info on the page for the file view.  There are
  7.  * two pages, the regular disk and MMc page.
  8.  *
  9.  * Target:
  10.  * Symbian OS
  11.  *
  12.  *
  13.  * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
  14.  *
  15.  ************************************************************************/
  16. // Symbian includes...
  17. // Helix includes...
  18. // Includes from this project...
  19. #include "hxsym_leaveutil.h"
  20. #include "chxavfileviewpageinfo.h"
  21. /*
  22.  * CHXAvFileViewPageInfo
  23.  * ---------------------
  24.  * Constructor.
  25.  *
  26.  */
  27. CHXAvFileViewPageInfo::CHXAvFileViewPageInfo() 
  28. : m_idxSelectedItem(0), m_bIsAutoCreateRoot(false)
  29. {
  30. }
  31. /*
  32.  * ~CHXAvFileViewPageInfo
  33.  * ----------------------
  34.  * Destructor.
  35.  *
  36.  */
  37. CHXAvFileViewPageInfo::~CHXAvFileViewPageInfo()
  38. {
  39. }
  40. /*
  41.  * ConstructL
  42.  * ----------
  43.  *
  44.  */
  45. void
  46. CHXAvFileViewPageInfo::ConstructL(const TDesC& rootPath, bool bIsAutoCreateRoot, TInt idxTabImage, TInt idxTabMask)
  47. {
  48.     HX_ASSERT(rootPath.Length() > 0);
  49.     //XXXLCM param?
  50.     TFileName* pImageFilePath = CHXAvFile::AllocAppFolderPathL(CHXAvUtil::KImagesMBMName);
  51.     AUTO_PUSH_POP_DEL(pImageFilePath);
  52.     m_spTabImageFilePath = pImageFilePath->AllocL();
  53.     m_bIsAutoCreateRoot = bIsAutoCreateRoot;
  54.     m_spFolderInfo = new (ELeave) CHXAvMediaFolderInfo();
  55.     CHXAvMediaFolderInfo::PathCreateType pathType = bIsAutoCreateRoot ? CHXAvMediaFolderInfo::PATH_ENSURE : CHXAvMediaFolderInfo::PATH_OPTIONAL;
  56.     m_spFolderInfo->InitL(rootPath, pathType);
  57.     m_tabImageInfo.idxImg = idxTabImage;
  58.     m_tabImageInfo.idxImgMask = idxTabMask;
  59. }