chxavnamedisplaytrait.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:1k
源码类别:
Symbian
开发平台:
Visual C++
- /*****************************************************************************
- * chxavnamedisplaytrait.h
- * -----------------------
- *
- * Synopsis:
- * Encapsulates state and logic for deciding how to display filenames
- * to users based on whether or not you want to hide file extensions
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *****************************************************************************/
- #ifndef _chxavnamedisplaytrait_h_
- #define _chxavnamedisplaytrait_h_
- // Includes from this project...
- #include "chxavutil.h"
- typedef CHXAvUtil::Pair<TPtrC> NameExt;
- class CHXAvNameDisplayTrait
- {
- public:
- CHXAvNameDisplayTrait(bool bHide);
- void SetHideExtensions(bool bHide);
- NameExt GetDisplayText(const TDesC& fullName, bool bAssumeFolder = false) const;
- private:
- bool m_bHideExtensions;
- };
- inline
- CHXAvNameDisplayTrait::CHXAvNameDisplayTrait(bool bHide)
- : m_bHideExtensions(bHide)
- {
- }
- inline
- void CHXAvNameDisplayTrait::SetHideExtensions(bool bHide)
- {
- m_bHideExtensions = bHide;
- }
- #endif // _chxavnamedisplaytrait_h_