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 <testsdkcfd.rsg> |
|
21 #include "testsdkcfdsettingitemmultidrive.h" |
|
22 #include "testsdkcfd.hrh" |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CTestSettingItemMultiDrive::CTestSettingItemMultiDrive |
|
28 // Constructor. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CTestSettingItemMultiDrive::CTestSettingItemMultiDrive( |
|
32 TInt aIdentifier, TDriveNumber& aSelectedDrive ) : |
|
33 CAknMemorySelectionSettingItemMultiDrive( aIdentifier, aSelectedDrive ) |
|
34 { |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CAknMemorySelectionSettingItemExtension* CTestSettingItemMultiDrive::GetExtensionPointer |
|
39 // Get setting page pointer. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 CAknMemorySelectionSettingItemExtension* CTestSettingItemMultiDrive::GetExtensionPointer() const |
|
43 { |
|
44 return iExtension; |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CAknSettingItem* CTestSettingItemListMultiDrive::CreateSettingItemL |
|
49 // Constructor. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CAknSettingItem* CTestSettingItemListMultiDrive::CreateSettingItemL( TInt aIdentifier ) |
|
53 { |
|
54 TDriveNumber selectedDrive = EDriveC; |
|
55 iItem = NULL; |
|
56 switch ( aIdentifier ) |
|
57 { |
|
58 case ETestSettingItem: |
|
59 iItem = new( ELeave )CTestSettingItemMultiDrive( aIdentifier, selectedDrive ); |
|
60 break; |
|
61 } |
|
62 return iItem; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // CTestSettingItemListMultiDrive::ConstructL |
|
67 // By default Symbian 2nd phase constructor is private. |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 void CTestSettingItemListMultiDrive::ConstructL() |
|
71 { |
|
72 CAknSettingItemList::ConstructFromResourceL( R_SETTINGS_ITEM_LIST ); |
|
73 } |
|
74 |
|
75 // End of file |
|