phoneapp/phoneuistates/src/cphoneresourceresolvergsm.cpp
changeset 0 5f000ab63145
child 23 40a3f856b14d
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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: Implementation of CPhoneResourceResolverGSM class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <bautils.h>
       
    21 #include <eikenv.h>
       
    22 #include <avkon.rsg>
       
    23 #include <AknUtils.h>
       
    24 #include <featmgr.h>
       
    25 
       
    26 #include "cphoneresourceresolvergsm.h"
       
    27 #include "cphonemainresourceresolver.h"
       
    28 #include "phoneconstants.h"
       
    29 #include "phonerssgsm.h"
       
    30 #include "phonerssbase.h"
       
    31 #include "phonelogger.h"
       
    32 #include <phoneui.rsg>
       
    33 
       
    34 
       
    35 // ============================ MEMBER FUNCTIONS ===============================
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CPhoneResourceResolverGSM::CPhoneResourceResolverGSM
       
    39 // C++ default constructor can NOT contain any code, that
       
    40 // might leave.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 EXPORT_C CPhoneResourceResolverGSM::CPhoneResourceResolverGSM(): iEnv( *CEikonEnv::Static() )
       
    44     {
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // ourceResolverGSM::ConstructL
       
    49 // Symbian 2nd phase constructor can leave.
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 EXPORT_C void CPhoneResourceResolverGSM::ConstructL()
       
    53     {
       
    54     
       
    55     __LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneResourceResolverGSM::ConstructL");
       
    56       
       
    57     BaseConstructL();
       
    58     
       
    59     // Register resolver
       
    60     CPhoneMainResourceResolver::Instance()->RegisterResolver( this );
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CPhoneResourceResolverGSM::NewL
       
    65 // Two-phased constructor.
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 CPhoneResourceResolverGSM* CPhoneResourceResolverGSM::NewL()
       
    69     {
       
    70     CPhoneResourceResolverGSM* self = 
       
    71         new( ELeave ) CPhoneResourceResolverGSM();
       
    72     CleanupStack::PushL( self );    
       
    73     self->ConstructL();
       
    74     CleanupStack::Pop( self );    
       
    75     return self;
       
    76     }
       
    77 
       
    78 // Destructor
       
    79 EXPORT_C CPhoneResourceResolverGSM::~CPhoneResourceResolverGSM()
       
    80     {   
       
    81     }
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // CPhoneResourceResolverGSM::ResolveResourceID
       
    85 // Resolve resource id of given resource.
       
    86 // (other items were commented in a header).
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 EXPORT_C TInt CPhoneResourceResolverGSM::ResolveResourceID( 
       
    90     const TInt& aResource ) const
       
    91     {    
       
    92     return CPhoneResourceResolverBase::ResolveResourceID( aResource );
       
    93     }
       
    94 
       
    95 //  End of File