wvuing/IMPSConnectionUI/UISrc/CnUiResourceFileName.inl
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Inline methods for CnUiResourceFileName
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // ================= HELPER CLASS =======================
       
    21 /**
       
    22  * Helper inline class
       
    23  *
       
    24  * @since 2.8
       
    25  */
       
    26 inline void CnUiResourceFileName::NearestForCurrentLanguage( const RFs& aFs, TFileName& aName )
       
    27 	{
       
    28 	aName.Zero();
       
    29 		{
       
    30 		//artificial variable scope to ease the stack usage
       
    31 		TFileName drivePath;
       
    32 		Dll::FileName( drivePath );
       
    33 		aName.Append( TParsePtrC( drivePath ).Drive() );
       
    34 		aName.Append( KDC_RESOURCE_FILES_DIR() );
       
    35 		aName.Append( KCnUiResourceFileNameAndPath );
       
    36 		}
       
    37 
       
    38     if ( aName.Length() > 0 )
       
    39         {
       
    40         // when baflutils gets an empty string, it returns "C:",
       
    41         // which breaks things
       
    42         BaflUtils::NearestLanguageFile( aFs, aName );
       
    43         }
       
    44     }
       
    45 
       
    46 /**
       
    47  * Helper inline class
       
    48  *
       
    49  * @since 3.2
       
    50  */
       
    51 
       
    52 inline void CnUiResourceFileName::NearestVariationForCurrentLanguage( const RFs& aFs, TFileName& aName )
       
    53 	{
       
    54 	aName.Zero();
       
    55 		{
       
    56 		//artificial variable scope to ease the stack usage
       
    57 		TFileName drivePath;
       
    58 		Dll::FileName( drivePath );
       
    59 		aName.Append( TParsePtrC( drivePath ).Drive() );
       
    60 		aName.Append( KDC_RESOURCE_FILES_DIR() );
       
    61 		aName.Append( KCnUiVarResourceFileNameAndPath );
       
    62 		}
       
    63 
       
    64     if ( aName.Length() > 0 )
       
    65         {
       
    66         // when baflutils gets an empty string, it returns "C:",
       
    67         // which breaks things
       
    68         BaflUtils::NearestLanguageFile( aFs, aName );
       
    69         }
       
    70     }
       
    71 
       
    72 
       
    73 
       
    74 //  End of File
       
    75