pathinfo.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : PathInfo.h
00004 *  Part of     : Common Services / Platform Environment
00005 *  Interface   : SDK, Platform Environment API
00006 *  Description : Interface for quering system paths.
00007 *  Version     : %version: 2 %
00008 *
00009 *  Copyright © 2002-2007 Nokia. All rights reserved.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia. All rights are reserved. Copying, including 
00013 *  reproducing, storing, adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia.
00018 * ==============================================================================
00019 */
00020 
00021 
00022 #ifndef PATH_INFO_H
00023 #define PATH_INFO_H
00024 
00025 //  INCLUDES
00026 #include <e32std.h>
00027 #include <badesca.h>
00028 
00029 // CLASS DECLARATION
00063 class PathInfo
00064     {
00065     public:
00066 
00072                 enum TSystemPaths
00073                         {
00078                         ENotSystemPath = -1,
00081                         ERomRootPath = 0,
00084             EPhoneMemoryRootPath,
00087                         EMemoryCardRootPath, 
00090             EGamesPath,
00093             EInstallsPath,
00096             EOthersPath,
00099             EVideosPath,
00102             EImagesPath,
00105             EGsmPicturesPath,
00108             EMmsBackgroundImagesPath,
00111             EPresenceLogosPath,
00114             ESoundsPath,            
00117             EDigitalSoundsPath,
00120             ESimpleSoundsPath,
00126             EImagesThumbnailPath,
00131             EMemoryCardContactsPath
00132 
00133                         };
00134 
00143         IMPORT_C static const TDesC& RomRootPath();
00152         IMPORT_C static const TDesC& PhoneMemoryRootPath();
00161         IMPORT_C static const TDesC& MemoryCardRootPath();
00162 
00163 
00172         IMPORT_C static const TDesC& GamesPath();
00181         IMPORT_C static const TDesC& InstallsPath();
00190         IMPORT_C static const TDesC& OthersPath();
00199         IMPORT_C static const TDesC& VideosPath();
00208         IMPORT_C static const TDesC& ImagesPath();  
00219         IMPORT_C static const TDesC& PicturesPath();       
00229         IMPORT_C static const TDesC& GmsPicturesPath();
00239         IMPORT_C static const TDesC& MmsBackgroundImagesPath();
00249         IMPORT_C static const TDesC& PresenceLogosPath();
00258         IMPORT_C static const TDesC& SoundsPath();
00268         IMPORT_C static const TDesC& DigitalSoundsPath();
00278         IMPORT_C static const TDesC& SimpleSoundsPath();
00279 
00280         // ---------------------------------------------------------------------
00281         // Paths that are not necessarily under root directories
00282         // ---------------------------------------------------------------------
00283 
00294         IMPORT_C static const TDesC& ImagesThumbnailPath();
00295 
00306         IMPORT_C static const TDesC& MemoryCardContactsPath();
00307 
00329         IMPORT_C static const TDesC& GetPath( TInt aPath );
00330 
00359         IMPORT_C static TInt GetRootPath( TDes& aRootPath, TInt aDrive );
00360 
00394         IMPORT_C static TInt GetFullPath( TDes& aFullPath, TInt aDrive, TInt aPath );
00395 
00420         IMPORT_C static TInt PathType( const TDesC& aFullPath );
00421 
00452         IMPORT_C static CDesCArray* GetListOfPathsLC( TInt aDrive );
00453 
00463         IMPORT_C static CDesCArray* GetListOfPathsL( TInt aDrive );
00464 
00465     private:
00466 
00470         PathInfo();
00471     };
00472 
00473 // PATH_INFO_H   
00474 #endif
00475             
00476 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top