API published in: S60 3rd Ed FP 2
Link against: directorylocalizer.lib
Required Capabilities
None
#include <cdirectorylocalizer.h>
Public Member Functions |
|
virtual IMPORT_C | ~CDirectoryLocalizer () |
Destructor. |
|
IMPORT_C void | AddFromResourceL (TResourceReader &aReader) |
Adds entries to the localizer from resource pointed by aReader. |
|
IMPORT_C void | AddFromResourceL (TInt aResourceId) |
Adds entries to the localizer from resource pointed by aResourceId. |
|
IMPORT_C void | SetFullPath (const TDesC &aFullPath) |
This method is used to set the absolute path to be localized. |
|
IMPORT_C TBool | IsLocalized () const |
Tells if the last given path is recognized as a localized directory. |
|
IMPORT_C const TDesC & | LocalizedName () const |
Returns a reference to a TDesC that contains the last given path's localized name. |
|
IMPORT_C const TDesC & | ExtraData () const |
Returns a reference to a TDesC that contains the last given path's extra data. |
|
IMPORT_C TInt | Icon () const |
Returns the icon index of the last given path. |
|
Static Public Member Functions |
|
static IMPORT_C CDirectoryLocalizer * | NewL () |
Two-phased constructor. |
|
static IMPORT_C CDirectoryLocalizer * | NewL (TResourceReader &aReader) |
Two-phased constructor. |
|
static IMPORT_C CDirectoryLocalizer * | NewL (TInt aResourceId) |
Two-phased constructor. |
|
Protected Member Functions |
|
CDirectoryLocalizer () | |
C++ default constructor. |
|
void | ConstructL () |
Symbian 2nd phase constructor. |
|
Destructor. |
|
C++ default constructor. |
|
Adds entries to the localizer from resource pointed by aResourceId.
|
|
Adds entries to the localizer from resource pointed by aReader.
|
|
Symbian 2nd phase constructor. |
|
Returns a reference to a TDesC that contains the last given path's extra data. If the path is not a localized directory or no extra data is defined, then a pointer to KNullDesc is returned.
|
|
Returns the icon index of the last given path. If the path is not a localized directory KErrGeneral is returned.
CDirectoryLocalizer loc = CDirectoryLocalizer::NewL(); loc-> SetFullPath( aDir ); if ( loc->Icon() != KErrGeneral ) { //... } |
|
Tells if the last given path is recognized as a localized directory.
|
|
Returns a reference to a TDesC that contains the last given path's localized name. If the path is not a localized directory, then a pointer to KNullDesc is returned.
|
|
Two-phased constructor. Construct a CDirectoryLocalizer and initialize it from a resource ID.
|
|
Two-phased constructor. Construct a CDirectoryLocalizer and initialize it from resource pointed by aReader.
|
|
Two-phased constructor. Construct a CDirectoryLocalizer and initialize it with platform specific default localization data.
|
|
This method is used to set the absolute path to be localized. For example "c:\\nokia\\images\\pictures". Take care that the path is given with or without the trailing backslash depending on how the paths are defined in the resource. localizer can utilize pathinfo to retrieve predefined folder paths.
#include <PathInfo.h> // Get the the full path of the contacts folder in the memory card. TFileName path = PathInfo::GetPath( PathInfo::EImagesPath ); // 'path' contains now the images path to be appended to a root path. CDirectoryLocalizer loc = CDirectoryLocalizer::NewL(); loc->SetFullPath ( path );
|