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
chxavdirectoryreader.h
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++
- /*****************************************************************************
- * chxavdirectoryreader.h
- * ----------------------
- *
- * Synopsis:
- * Epoc specific helper class to extract files and folders from a directory.
- *
- * _LIT(KDocuments, ("\documents\");
- * epDirectoryReader reader(iEikonEnv->FsSession());
- * reader.SetToPath(KDocuments);
- * const CDir* pFiles = reader.GetFiles();
- * // now use CDir to get file info
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *****************************************************************************/
- #ifndef _chxavdirectoryreader_h_
- #define _chxavdirectoryreader_h_
- // Symbian includes...
- #include <coemain.h>
- // forward decl
- class RFs;
- class CDir;
- // class CHXAvDirectoryReader
- class CHXAvDirectoryReader
- {
- public:
- CHXAvDirectoryReader(RFs& rfs = CCoeEnv::Static()->FsSession());
- virtual ~CHXAvDirectoryReader();
- bool SetToPath(const TDesC& path);
- bool SetToChild(const TDesC& dir);
- bool SetToParent();
- const CDir* GetFiles() const;
- const CDir* GetDirs() const;
- TInt GetLastError() const;
- void SetSortFlags(TInt sortFlags);
- void SetAttrFilter(TInt attr);
- TInt GetSortFlags() const;
- TInt GetAttrFilter() const;
- private:
- CDir* m_pFileEntries;
- CDir* m_pDirEntries;
- TInt m_lastError;
- TFileName m_path;
- TInt m_sortFlags;
- TInt m_attributes;
- RFs& m_rfs;
- };
- inline
- TInt CHXAvDirectoryReader::GetLastError() const
- {
- return m_lastError;
- }
- inline
- const CDir* CHXAvDirectoryReader::GetFiles() const
- {
- return m_pFileEntries;
- }
- inline
- const CDir* CHXAvDirectoryReader::GetDirs() const
- {
- return m_pDirEntries;
- }
- inline
- void CHXAvDirectoryReader::SetSortFlags(TInt sortFlags)
- {
- m_sortFlags = sortFlags;
- }
- inline
- void CHXAvDirectoryReader::SetAttrFilter(TInt attr)
- {
- m_attributes = attr;
- }
- inline
- TInt CHXAvDirectoryReader::GetSortFlags() const
- {
- return m_sortFlags;
- }
- inline
- TInt CHXAvDirectoryReader::GetAttrFilter() const
- {
- return m_attributes;
- }
- #endif // _chxavdirectoryreader_h_