chxavnamedisplaytrait.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:1k
- /*****************************************************************************
- * 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_