javaextensions/pim/javapimloc/src.s60/pimlocalizationutils.cpp
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Utility class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // CLASS HEADER
       
    20 #include "pimlocalizationutils.h"
       
    21 #include "s60commonutils.h"
       
    22 
       
    23 // EXTERNAL INCLUDES
       
    24 #include <barsc.h>
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // PIMLocalizationUtils::OpenResourceFileLC
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 void PIMLocalizationUtils::OpenResourceFileLC(
       
    33     RFs& aRfs,
       
    34     RResourceFile& aResourceFile,
       
    35     const TDesC& aFileName)
       
    36 {
       
    37     // Get nearest language file
       
    38     TFileName langFile =
       
    39         java::util::S60CommonUtils::ResourceLanguageFileNameL(aFileName);
       
    40 
       
    41     // Open the requested resource file
       
    42     aResourceFile.OpenL(aRfs, langFile),
       
    43     CleanupClosePushL(aResourceFile);
       
    44 
       
    45     // Confirm signature
       
    46     aResourceFile.ConfirmSignatureL();
       
    47 }
       
    48 
       
    49 // End of file