64
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2009 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: Color manager for MRGUI usage.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "nmrglobalfeaturesettings.h"
|
|
19 |
|
|
20 |
#include <AvkonInternalCRKeys.h>
|
|
21 |
#include <centralrepository.h>
|
|
22 |
|
|
23 |
using namespace NMRGlobalFeatureSettings;
|
|
24 |
|
|
25 |
// ---------------------------------------------------------------------------
|
|
26 |
// NMRGlobalFeatureSettings::KeyboardType
|
|
27 |
// ---------------------------------------------------------------------------
|
|
28 |
//
|
|
29 |
EXPORT_C TKeyboardLayout NMRGlobalFeatureSettings::KeyboardType()
|
|
30 |
{
|
|
31 |
CRepository* settings = NULL;
|
|
32 |
TRAPD( err, settings = CRepository::NewL( KCRUidAvkon ) );
|
|
33 |
TInt keyboardLayout( EUninitialized );
|
|
34 |
|
|
35 |
if ( err == KErrNone )
|
|
36 |
{
|
|
37 |
settings->Get( KAknKeyBoardLayout, keyboardLayout );
|
|
38 |
delete settings;
|
|
39 |
}
|
|
40 |
|
|
41 |
return static_cast<NMRGlobalFeatureSettings::TKeyboardLayout>
|
|
42 |
( keyboardLayout );
|
|
43 |
}
|
|
44 |
// End of file
|