codhandler/codui/inc/CodUiResource.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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 the License "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:  Declaration of class CCodUiResource.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef COD_UI_RESOURCE_H
       
    20 #define COD_UI_RESOURCE_H
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 class CEikonEnv;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 * Instantiate this class to have CodUi resources loaded.
       
    34 */
       
    35 NONSHARABLE_CLASS( CCodUiResource ): public CBase
       
    36     {
       
    37 
       
    38     public:     // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * Two-phased constructor. Leaves on failure.
       
    42         * @param aEikEnv Eikon environment.
       
    43         * @return The constructed object.
       
    44         */
       
    45         static CCodUiResource* NewL( CEikonEnv& aEikEnv );
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CCodUiResource();
       
    51 
       
    52     protected:  // Constructors
       
    53 
       
    54         /**
       
    55         * Constructor.
       
    56         * @param aEikEnv Eikon environment.
       
    57         */
       
    58         CCodUiResource( CEikonEnv& aEikEnv );
       
    59 
       
    60         /**
       
    61         * Second-phase constructor.
       
    62         */
       
    63         void ConstructL();
       
    64 
       
    65     private:    // Data 
       
    66 
       
    67         CEikonEnv* iEikEnv;     ///< Eikon environment. Not owned.
       
    68         TInt iResourceOffset;   ///< Resource file offset.
       
    69 
       
    70     };
       
    71 
       
    72 #endif