|
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: Setting item class for keypad volume setting. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 #include <AknUtils.h> |
|
22 |
|
23 #include "CProfileKeypadVolumeSettingItem.h" |
|
24 #include "CProfileKeypadVolumeSettingPage.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CProfileKeypadVolumeSettingItem::CProfileKeypadVolumeSettingItem |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CProfileKeypadVolumeSettingItem::CProfileKeypadVolumeSettingItem( |
|
35 TInt aIdentifier, |
|
36 TInt& aValue, |
|
37 CAknKeySoundSystem* aSoundSystem ) |
|
38 : CAknEnumeratedTextPopupSettingItem( aIdentifier, aValue ), |
|
39 iSoundSystem( aSoundSystem ) |
|
40 { |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CProfileKeypadVolumeSettingItem::CompleteConstructionL |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void CProfileKeypadVolumeSettingItem::CompleteConstructionL() |
|
48 { |
|
49 CAknEnumeratedTextPopupSettingItem::CompleteConstructionL(); |
|
50 CArrayPtr<CAknEnumeratedText>* array = EnumeratedTextArray(); |
|
51 TInt count( array->Count() ); |
|
52 HBufC* text = NULL; |
|
53 while( count-- ) |
|
54 { |
|
55 text = array->At( count )->Value(); |
|
56 TPtr modifiable( text->Des() ); |
|
57 AknTextUtils::LanguageSpecificNumberConversion( modifiable ); |
|
58 } |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CProfileKeypadVolumeSettingItem::CreateSettingPageL |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 CAknSettingPage* CProfileKeypadVolumeSettingItem::CreateSettingPageL() |
|
66 { |
|
67 return new( ELeave ) CProfileKeypadVolumeSettingPage( |
|
68 SettingPageResourceId(), |
|
69 *QueryValue(), |
|
70 iSoundSystem ); |
|
71 } |
|
72 |
|
73 // End of File |