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 <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 "phoneresourceids.h"
|
|
33 |
|
|
34 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
35 |
|
|
36 |
// -----------------------------------------------------------------------------
|
|
37 |
// CPhoneResourceResolverGSM::CPhoneResourceResolverGSM
|
|
38 |
// C++ default constructor can NOT contain any code, that
|
|
39 |
// might leave.
|
|
40 |
// -----------------------------------------------------------------------------
|
|
41 |
//
|
|
42 |
EXPORT_C CPhoneResourceResolverGSM::CPhoneResourceResolverGSM(): iEnv( *CEikonEnv::Static() )
|
|
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
|