|
1 /* |
|
2 * Copyright (c) 2002 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 the License "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: MPSettingsMainView.h* |
|
15 */ |
|
16 |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef MPSETTINGSMAINVIEW_H |
|
24 #define MPSETTINGSMAINVIEW_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <eikclb.h> //MEikListBoxObserver |
|
28 #include "MPSettingsBaseView.h" //CMPSettingsBaseView |
|
29 #include "MPSettingsModelForROP.h" |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * CMPSettingsMainView view class. |
|
35 * |
|
36 * @lib MediaSettings.app |
|
37 * @since 2.0 |
|
38 */ |
|
39 class CMPSettingsMainView : public CMPSettingsBaseView, |
|
40 public MEikListBoxObserver |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CMPSettingsMainView* NewLC(CArrayFix<TUid>* aViewIds, CMPSettingsModelForROP* aModel, TBool iConstructAsGsPlugin); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CMPSettingsMainView(); |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * From CAknView |
|
58 */ |
|
59 TUid Id() const; |
|
60 |
|
61 /** |
|
62 * From MEikMenuObserver |
|
63 */ |
|
64 void HandleCommandL(TInt aCommand); |
|
65 |
|
66 public: // New |
|
67 |
|
68 /** |
|
69 * Returns the index of the active folder. |
|
70 * @return 0: video |
|
71 * 1: streaming |
|
72 */ |
|
73 TInt ActiveFolder(); |
|
74 |
|
75 /** |
|
76 * Sets the index of the active folder. |
|
77 * @param aCurrentItem Index of current item. |
|
78 */ |
|
79 void SetActiveFolder(TInt aCurrentItem); |
|
80 |
|
81 protected: // Functions from base classes |
|
82 |
|
83 /** |
|
84 * From MEikListBoxObserver |
|
85 */ |
|
86 void HandleListBoxEventL(CEikListBox* aListBox, |
|
87 TListBoxEvent aEventType); |
|
88 |
|
89 /** |
|
90 * From CMPSettingsBaseView |
|
91 */ |
|
92 void DynInitContainerL(); |
|
93 |
|
94 /** |
|
95 * From CMPSettingsBaseView |
|
96 */ |
|
97 CMPSettingsBaseContainer* NewContainerL(); |
|
98 |
|
99 private: |
|
100 |
|
101 /** |
|
102 * C++ default constructor. |
|
103 */ |
|
104 CMPSettingsMainView(CArrayFix<TUid>* aViewIds, CMPSettingsModelForROP* aModel, TBool iConstructAsGsPlugin); |
|
105 |
|
106 /** |
|
107 * Symbian 2nd phase constructor. |
|
108 */ |
|
109 void ConstructL(); |
|
110 |
|
111 private: // New |
|
112 |
|
113 /** |
|
114 * Handles listbox selection. |
|
115 */ |
|
116 virtual void HandleListBoxSelectionL(); |
|
117 |
|
118 private: // Data |
|
119 CArrayFix<TUid>* iViewIds; |
|
120 |
|
121 CMPSettingsModelForROP* iModel; |
|
122 TBool iGsPlugin; |
|
123 |
|
124 }; |
|
125 |
|
126 #endif // MPSETTINGSMAINVIEW_H |
|
127 |
|
128 // End of File |