chxavfileviewpageinfo.cpp
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
源码类别:
Symbian
开发平台:
C/C++
- /************************************************************************
- * chxavfileviewpageinfo.cpp
- * -------------------------
- *
- * Synopsis:
- * Class used to maintain info on the page for the file view. There are
- * two pages, the regular disk and MMc page.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- // Symbian includes...
- // Helix includes...
- // Includes from this project...
- #include "hxsym_leaveutil.h"
- #include "chxavfileviewpageinfo.h"
- /*
- * CHXAvFileViewPageInfo
- * ---------------------
- * Constructor.
- *
- */
- CHXAvFileViewPageInfo::CHXAvFileViewPageInfo()
- : m_idxSelectedItem(0), m_bIsAutoCreateRoot(false)
- {
- }
- /*
- * ~CHXAvFileViewPageInfo
- * ----------------------
- * Destructor.
- *
- */
- CHXAvFileViewPageInfo::~CHXAvFileViewPageInfo()
- {
- }
- /*
- * ConstructL
- * ----------
- *
- */
- void
- CHXAvFileViewPageInfo::ConstructL(const TDesC& rootPath, bool bIsAutoCreateRoot, TInt idxTabImage, TInt idxTabMask)
- {
- HX_ASSERT(rootPath.Length() > 0);
- //XXXLCM param?
- TFileName* pImageFilePath = CHXAvFile::AllocAppFolderPathL(CHXAvUtil::KImagesMBMName);
- AUTO_PUSH_POP_DEL(pImageFilePath);
- m_spTabImageFilePath = pImageFilePath->AllocL();
- m_bIsAutoCreateRoot = bIsAutoCreateRoot;
- m_spFolderInfo = new (ELeave) CHXAvMediaFolderInfo();
- CHXAvMediaFolderInfo::PathCreateType pathType = bIsAutoCreateRoot ? CHXAvMediaFolderInfo::PATH_ENSURE : CHXAvMediaFolderInfo::PATH_OPTIONAL;
- m_spFolderInfo->InitL(rootPath, pathType);
- m_tabImageInfo.idxImg = idxTabImage;
- m_tabImageInfo.idxImgMask = idxTabMask;
- }