|
1 /* |
|
2 * Copyright (c) 2002-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: View for backup settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_FILEMANAGERBACKUPVIEW_H |
|
21 #define C_FILEMANAGERBACKUPVIEW_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <aknview.h> |
|
26 #include "CFileManagerViewBase.h" |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * This class is used for backup settings view |
|
32 * |
|
33 * @since S60 3.1 |
|
34 */ |
|
35 class CFileManagerBackupView : public CFileManagerViewBase |
|
36 { |
|
37 |
|
38 public: // Constructors and destructor |
|
39 /** |
|
40 * Two-phased constructor.Leaves created view |
|
41 * to cleanup stack. |
|
42 * |
|
43 * @return Newly constructed view |
|
44 */ |
|
45 static CFileManagerBackupView* NewLC(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CFileManagerBackupView(); |
|
51 |
|
52 public: // From CFileManagerViewBase |
|
53 /** |
|
54 * @see CFileManagerViewBase |
|
55 */ |
|
56 void DirectoryChangedL(); |
|
57 |
|
58 /** |
|
59 * @see CFileManagerViewBase |
|
60 */ |
|
61 CFileManagerContainerBase* CreateContainerL(); |
|
62 |
|
63 /** |
|
64 * @see CFileManagerViewBase |
|
65 */ |
|
66 void NotifyForegroundStatusChange( TBool aForeground ); |
|
67 |
|
68 private: // From CAknView |
|
69 /** |
|
70 * @see CAknView |
|
71 */ |
|
72 void DoActivateL( |
|
73 const TVwsViewId& aPrevViewId, |
|
74 TUid aCustomMessageId, |
|
75 const TDesC8& aCustomMessage ); |
|
76 |
|
77 /** |
|
78 * @see CAknView |
|
79 */ |
|
80 void DoDeactivate(); |
|
81 |
|
82 /** |
|
83 * @see CAknView |
|
84 */ |
|
85 TUid Id() const; |
|
86 |
|
87 /** |
|
88 * @see CAknView |
|
89 */ |
|
90 void HandleCommandL( TInt aCommand ); |
|
91 |
|
92 /** |
|
93 * @see CAknView |
|
94 */ |
|
95 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
96 |
|
97 private: // New functions |
|
98 /** |
|
99 * Handles change command |
|
100 */ |
|
101 void CmdChangeL(); |
|
102 |
|
103 /** |
|
104 * Handles backup command |
|
105 */ |
|
106 void CmdBackupL(); |
|
107 |
|
108 /** |
|
109 * Handles restore command |
|
110 */ |
|
111 void CmdRestoreL(); |
|
112 |
|
113 /** |
|
114 * Changes backup contents |
|
115 */ |
|
116 void ChangeContentsL(); |
|
117 |
|
118 /** |
|
119 * Changes backup scheduling |
|
120 */ |
|
121 void ChangeSchedulingL(); |
|
122 |
|
123 /** |
|
124 * Changes backup weekday |
|
125 */ |
|
126 void ChangeWeekdayL(); |
|
127 |
|
128 /** |
|
129 * Changes backup time |
|
130 */ |
|
131 void ChangeTimeL(); |
|
132 |
|
133 /** |
|
134 * Changes backup target drive |
|
135 */ |
|
136 void ChangeTargetDriveL(); |
|
137 |
|
138 /** |
|
139 * Handles command back |
|
140 */ |
|
141 void CmdBackL(); |
|
142 |
|
143 /** |
|
144 * Updates schedule state |
|
145 */ |
|
146 void UpdateScheduleL(); |
|
147 |
|
148 /** |
|
149 * Refreshes all settings |
|
150 */ |
|
151 void RefreshSettingsL(); |
|
152 |
|
153 /** |
|
154 * Handles delete backup command |
|
155 */ |
|
156 void CmdDeleteBackupL(); |
|
157 |
|
158 /** |
|
159 * Filters backup menu items. |
|
160 * |
|
161 * @param aMenuPane Menu instance to be filtered. |
|
162 */ |
|
163 void BackupMenuFilteringL( CEikMenuPane& aMenuPane ); |
|
164 |
|
165 private: |
|
166 /** |
|
167 * C++ default constructor. |
|
168 */ |
|
169 CFileManagerBackupView(); |
|
170 |
|
171 private: // Data |
|
172 |
|
173 }; |
|
174 |
|
175 #endif // C_FILEMANAGERBACKUPVIEW_H |
|
176 |
|
177 // End of File |