|
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: Memory store view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_FILEMANAGERMEMORYSTOREVIEW_H |
|
21 #define C_FILEMANAGERMEMORYSTOREVIEW_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <aknview.h> |
|
26 #include "CFileManagerViewBase.h" |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * This class implements memory store view. |
|
32 * |
|
33 * @since S60 3.1 |
|
34 */ |
|
35 class CFileManagerMemoryStoreView : 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 CFileManagerMemoryStoreView* NewLC(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CFileManagerMemoryStoreView(); |
|
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 UpdateCbaL(); |
|
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 private: // New functions |
|
93 /** |
|
94 * Checks memory store available |
|
95 */ |
|
96 TBool DriveAvailableL( TBool aShowRemoteNotConnected ); |
|
97 |
|
98 /** |
|
99 * Refreshes memory store title |
|
100 */ |
|
101 void RefreshTitleL(); |
|
102 |
|
103 /** |
|
104 * Handles open memory store command |
|
105 */ |
|
106 void CmdOpenL(); |
|
107 |
|
108 /** |
|
109 * Handles back command |
|
110 */ |
|
111 void CmdBackL(); |
|
112 |
|
113 private: |
|
114 /** |
|
115 * C++ default constructor. |
|
116 */ |
|
117 CFileManagerMemoryStoreView(); |
|
118 |
|
119 private: |
|
120 |
|
121 }; |
|
122 |
|
123 #endif // C_FILEMANAGERMEMORYSTOREVIEW_H |
|
124 |
|
125 // End of File |