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