phoneclientserver/phoneserver/Inc/Standard/CPhSrvResourceManager.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     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:  Resource Manager.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPHSRVRESOURCEMANAGER_H
       
    19 #define CPHSRVRESOURCEMANAGER_H
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <barsc.h>
       
    24 #include <f32file.h>
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  The resource manager.
       
    31 *
       
    32 *  @since 1.0
       
    33 */
       
    34 class CPhSrvResourceManager : 
       
    35     public CBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         /**
       
    40         * C++ constructor.
       
    41         *
       
    42         * @param aFsSession The file session.
       
    43         */
       
    44         CPhSrvResourceManager( RFs& aFsSession );
       
    45 
       
    46         /**
       
    47         * C++ destructor.
       
    48         */
       
    49         ~CPhSrvResourceManager();
       
    50 
       
    51         /**
       
    52         * Symbian OS second phase constructor
       
    53         */
       
    54         void ConstructL();
       
    55 
       
    56 
       
    57     public: // New functions
       
    58 
       
    59         /**
       
    60         * Read some text from the resource file.
       
    61         *
       
    62         * @param aResourceId The resource identifier to read
       
    63         * @return The resource text on the cleanup stack
       
    64         */
       
    65         HBufC* ReadResourceLC( TUint aResourceId );
       
    66 
       
    67 
       
    68     private:  // Data
       
    69 
       
    70         // The file session.
       
    71         RFs&            iFsSession;
       
    72 
       
    73         // The resource file.
       
    74         RResourceFile   iResourceFile;
       
    75     };
       
    76 
       
    77 #endif // CPHSRVRESOURCEMANAGER_H
       
    78 
       
    79 
       
    80 // End of File