omaprovisioning/provisioning/WAPAdapter/Inc/WPWAPUtil.h
branchRCL_3
changeset 26 19bba8228ff0
parent 0 b497e44ab2fc
equal deleted inserted replaced
25:b183ec05bd8c 26:19bba8228ff0
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Utility class for reading resource strings.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef WPWAPUTIL_H
       
    21 #define WPWAPUTIL_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class RResourceFile;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * WPWAPUtil is a utility class for reading resource strings.
       
    33  *
       
    34  * @lib WPWAPAdapter
       
    35  * @since 2.0
       
    36  */ 
       
    37 class WPWAPUtil
       
    38     {
       
    39     public: // New functions
       
    40         /**
       
    41         * Loads a specified resource string from resource file.
       
    42         * @param aResourceId is of a resource string.
       
    43         * @return pointer to loaded descriptor.
       
    44         */
       
    45         static HBufC* ReadHBufCL( TInt aResourceId );
       
    46 
       
    47         /**
       
    48         * Searches for the resource file with the correct language extension 
       
    49         * for the language of the current locale, or failing this, the best 
       
    50         * matching file.
       
    51         * @param aFs reference to file server.
       
    52         * @param aResFileName resource file name.
       
    53         * @param aResFile reference to resource file.
       
    54         */
       
    55         static void FindAndOpenResourceFileLC(RFs& aFs, 
       
    56             const TDesC& aResFileName, 
       
    57             RResourceFile& aResFile);
       
    58 
       
    59         /**
       
    60         * Checks if a URL is valid.
       
    61         * @param aURL the URL to check
       
    62         * @return ETrue if the URL is valid
       
    63         */
       
    64         static TBool CheckURI( const TDesC& aUrl );
       
    65 
       
    66     };
       
    67 
       
    68 #endif  // WPWAPUTIL_H
       
    69             
       
    70 // End of File