chxavfileviewpageinfo.cpp
来自「symbian 下的helix player源代码」· C++ 代码 · 共 80 行
CPP
80 行
/************************************************************************
* 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;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?