Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
chxavnamedisplaytrait.cpp
Package: 142_61_thumb_advanced.rar [view]
Upload User: dangjiwu
Upload Date: 2013-07-19
Package Size: 42019k
Code Size: 2k
Category:
Symbian
Development Platform:
Visual C++
- /*****************************************************************************
- * chxavnamedisplaytrait.cpp
- * -------------------------
- *
- * 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.
- *
- *****************************************************************************/
- // Include from this project...
- #include "chxavfileutil.h"
- #include "chxavnamedisplaytrait.h"
- #include "chxavutil.h"
- ////////////////////////////////////////////
- // return name split into two components:
- //
- // first : as it should be displayed to user
- // second : what should be appended to user input, i.e., dotted extension
- // (for file) or path suffix (for folder)
- //
- NameExt CHXAvNameDisplayTrait::GetDisplayText(const TDesC& fullName, bool bAssumeFolder) const
- {
- NameExt pair;
- if( bAssumeFolder || CHXAvFile::HasFolderSuffix(fullName) )
- {
- // return 'foldername' , '/'
- pair.first.Set(CHXAvFile::GetNakedPathNode(fullName));
- pair.second.Set(CHXAvUtil::KPathSep);
- }
- else
- {
- if(m_bHideExtensions )
- {
- // hide extensions for filenames only
- pair.first.Set(CHXAvFile::GetNakedName(fullName));
- pair.second.Set(CHXAvFile::GetExtension(fullName));
- }
- else
- {
- pair.first.Set(CHXAvFile::GetNakedPathNode(fullName));
- }
- }
- return pair;
- }