1 /* |
|
2 * Copyright (c) 2002 - 2007 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: Test Common File Dialogs |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // [INCLUDE FILES] |
|
20 #include "testsdkcfdsettingitem.h" |
|
21 #include "testsdkcfd.hrh" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CTestSettingItem::GetText |
|
28 // Get text value. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 void CTestSettingItem::GetText( TDes& aDes ) |
|
32 { |
|
33 TInt memoryIndex( CAknMemorySelectionDialog::EPhoneMemory ); |
|
34 iSettingPage->GetItem( memoryIndex, aDes ); |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CTestSettingItem::CTestSettingItem |
|
39 // Constructor. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 CTestSettingItem::CTestSettingItem( TInt aIdentifier, |
|
43 CAknMemorySelectionSettingPage::TMemory& aSelectedMemory ) : |
|
44 CAknMemorySelectionSettingItem( aIdentifier, aSelectedMemory ) |
|
45 { |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CAknMemorySelectionDialog::TMemory CTestSettingItem::GetExternalData |
|
50 // Get iExternale value. |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CAknMemorySelectionDialog::TMemory CTestSettingItem::GetExternalData() const |
|
54 { |
|
55 return iExternalData; |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CAknMemorySelectionDialog::TMemory CTestSettingItem::GetInternalData |
|
60 // Get iInternale value. |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 CAknMemorySelectionDialog::TMemory CTestSettingItem::GetInternalData() const |
|
64 { |
|
65 return iInternalData; |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // CAknMemorySelectionSettingPage* CTestSettingItem::GetSettingPagePointer |
|
70 // Get setting page pointer. |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 CAknMemorySelectionSettingPage* CTestSettingItem::GetSettingPagePointer() const |
|
74 { |
|
75 return iSettingPage; |
|
76 } |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // CTestSettingItem::GetSettingText |
|
80 // Get text value. |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 TDes CTestSettingItem::GetSettingText() const |
|
84 { |
|
85 return iSettingText; |
|
86 } |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // CAknSettingItem* CTestSettingItemList::CreateSettingItemL |
|
90 // Constructor. |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 CAknSettingItem* CTestSettingItemList::CreateSettingItemL( TInt aIdentifier ) |
|
94 { |
|
95 CAknMemorySelectionDialog::TMemory memorytpye = |
|
96 CAknMemorySelectionDialog::EPhoneMemory; |
|
97 iItem = NULL; |
|
98 switch (aIdentifier) |
|
99 { |
|
100 case ETestSettingItem: |
|
101 iItem = new( ELeave )CTestSettingItem( aIdentifier, memorytpye ); |
|
102 break; |
|
103 } |
|
104 return iItem; |
|
105 } |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // CTestSettingItemList::ConstructL |
|
109 // By default Symbian 2nd phase constructor is private. |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 void CTestSettingItemList::ConstructL() |
|
113 { |
|
114 CAknSettingItemList::ConstructFromResourceL( R_SETTINGS_ITEM_LIST ); |
|
115 } |
|
116 |
|
117 // End of file |
|