37
|
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 <featmgr.h>
|
|
24 |
|
|
25 |
#include "cphoneresourceresolvergsm.h"
|
|
26 |
#include "cphonemainresourceresolver.h"
|
|
27 |
#include "phoneconstants.h"
|
|
28 |
#include "phonerssgsm.h"
|
|
29 |
#include "phonerssbase.h"
|
|
30 |
#include "phonelogger.h"
|
|
31 |
#include "phoneresourceids.h"
|
|
32 |
|
|
33 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
34 |
|
|
35 |
// -----------------------------------------------------------------------------
|
|
36 |
// CPhoneResourceResolverGSM::CPhoneResourceResolverGSM
|
|
37 |
// C++ default constructor can NOT contain any code, that
|
|
38 |
// might leave.
|
|
39 |
// -----------------------------------------------------------------------------
|
|
40 |
//
|
74
|
41 |
EXPORT_C CPhoneResourceResolverGSM::CPhoneResourceResolverGSM():
|
|
42 |
iEnv( *CEikonEnv::Static() ) // codescanner::performance::eikonenvstatic
|
37
|
43 |
{
|
|
44 |
}
|
|
45 |
|
|
46 |
// -----------------------------------------------------------------------------
|
|
47 |
// ourceResolverGSM::ConstructL
|
|
48 |
// Symbian 2nd phase constructor can leave.
|
|
49 |
// -----------------------------------------------------------------------------
|
|
50 |
//
|
|
51 |
EXPORT_C void CPhoneResourceResolverGSM::ConstructL()
|
|
52 |
{
|
|
53 |
__LOGMETHODSTARTEND(EPhoneUIStates, "CPhoneResourceResolverGSM::ConstructL");
|
|
54 |
|
|
55 |
// Register resolver
|
|
56 |
CPhoneMainResourceResolver::Instance()->RegisterResolver( this );
|
|
57 |
}
|
|
58 |
|
|
59 |
// -----------------------------------------------------------------------------
|
|
60 |
// CPhoneResourceResolverGSM::NewL
|
|
61 |
// Two-phased constructor.
|
|
62 |
// -----------------------------------------------------------------------------
|
|
63 |
//
|
|
64 |
CPhoneResourceResolverGSM* CPhoneResourceResolverGSM::NewL()
|
|
65 |
{
|
|
66 |
CPhoneResourceResolverGSM* self =
|
|
67 |
new( ELeave ) CPhoneResourceResolverGSM();
|
|
68 |
CleanupStack::PushL( self );
|
|
69 |
self->ConstructL();
|
|
70 |
CleanupStack::Pop( self );
|
|
71 |
return self;
|
|
72 |
}
|
|
73 |
|
|
74 |
// Destructor
|
|
75 |
EXPORT_C CPhoneResourceResolverGSM::~CPhoneResourceResolverGSM()
|
|
76 |
{
|
|
77 |
}
|
|
78 |
|
|
79 |
// -----------------------------------------------------------------------------
|
|
80 |
// CPhoneResourceResolverGSM::ResolveResourceID
|
|
81 |
// Resolve resource id of given resource.
|
|
82 |
// (other items were commented in a header).
|
|
83 |
// -----------------------------------------------------------------------------
|
|
84 |
//
|
|
85 |
EXPORT_C TInt CPhoneResourceResolverGSM::ResolveResourceID(
|
|
86 |
const TInt& aResource ) const
|
|
87 |
{
|
|
88 |
return CPhoneResourceResolverBase::ResolveResourceID( aResource );
|
|
89 |
}
|
|
90 |
|
|
91 |
// End of File
|