1 /* |
|
2 * Copyright (c) 2006 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 list container in file manager |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CFILEMANAGERSETTINGLISTCONTAINER_H |
|
21 #define CFILEMANAGERSETTINGLISTCONTAINER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CFileManagerContainerBase.h" |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * Container for backup view. |
|
30 */ |
|
31 class CFileManagerSettingListContainer : public CFileManagerContainerBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 enum TListType |
|
35 { |
|
36 EListBackup = 0, // Backup settings layout |
|
37 EListRestore // Restore selection layout |
|
38 }; |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CFileManagerSettingListContainer* NewL( |
|
44 const TRect& aRect, |
|
45 const TInt aFocusedIndex, |
|
46 const TListType aType, |
|
47 MDesCArray* aArray, |
|
48 const TDesC& aHelpContext = KNullDesC ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CFileManagerSettingListContainer(); |
|
54 |
|
55 private: // From CFileManagerContainerBase |
|
56 CEikTextListBox* CreateListBoxL(); |
|
57 |
|
58 TKeyResponse OfferKeyEventL( |
|
59 const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
60 |
|
61 void HandleControlEventL( |
|
62 CCoeControl* aControl, TCoeEvent aEventType ); |
|
63 |
|
64 private: |
|
65 /** |
|
66 * C++ default constructor. |
|
67 */ |
|
68 CFileManagerSettingListContainer( const TListType aType ); |
|
69 |
|
70 void ConstructL( |
|
71 const TRect& aRect, |
|
72 const TInt aFocusedIndex, |
|
73 MDesCArray* aArray, |
|
74 const TDesC& aHelpContext ); |
|
75 |
|
76 CEikTextListBox* CreateBackupListBoxL(); |
|
77 |
|
78 CEikTextListBox* CreateRestoreListBoxL(); |
|
79 |
|
80 private: // Data |
|
81 // Setting list type |
|
82 TListType iType; |
|
83 |
|
84 }; |
|
85 |
|
86 #endif // CFILEMANAGERSETTINGLISTCONTAINER_H |
|
87 |
|
88 // End of File |
|