1 /* |
|
2 * Copyright (c) 2008 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: CMSStoreListView class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef C_MSSTORELISTVIEW_H |
|
23 #define C_MSSTORELISTVIEW_H |
|
24 |
|
25 // INCLUDES |
|
26 #include "msengineobserver.h" |
|
27 #include "msbaseview.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMSAppUi; |
|
31 class CMSStoreListContainer; |
|
32 //class CMSEngine; |
|
33 |
|
34 /** |
|
35 * CMSStoreListView view class. |
|
36 * |
|
37 * @since S60 5.1 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CMSStoreListView ): public CMSBaseView, |
|
40 public MMSEngineObserver |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Constructor. |
|
47 * |
|
48 * @since S60 5.1 |
|
49 * @param aAppUi, application UI |
|
50 * @return None |
|
51 */ |
|
52 CMSStoreListView( CMSAppUi& aAppUi ); |
|
53 |
|
54 /** |
|
55 * Symbian default constructor. |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CMSStoreListView(); |
|
63 |
|
64 /** |
|
65 * ListBox focus index |
|
66 * @since S60 v3.1 |
|
67 * @return TInt, focus index |
|
68 */ |
|
69 TInt FocusIndex() const; |
|
70 |
|
71 /** |
|
72 * Creates and sets navi pane text |
|
73 * @since S60 3.2 |
|
74 */ |
|
75 void CreateAndSetNaviTextL(); |
|
76 |
|
77 /** |
|
78 * Returns store list preprocessing state |
|
79 * @since S60 5.1 |
|
80 * @return TBool, ETrue if preprocessing, otherwise EFalse |
|
81 */ |
|
82 TBool PreProcessing(); |
|
83 |
|
84 protected: |
|
85 |
|
86 // From base class CAknView |
|
87 |
|
88 /** |
|
89 * From CAknView |
|
90 * See base class definition |
|
91 */ |
|
92 TUid Id() const; |
|
93 |
|
94 /** |
|
95 * From CAknView activate the view |
|
96 * See base class definition |
|
97 */ |
|
98 void DoActivateL( |
|
99 const TVwsViewId& aPrevViewId, |
|
100 TUid aCustomMessageId, |
|
101 const TDesC8& aCustomMessage ); |
|
102 |
|
103 /** |
|
104 * From CAknView activate the view |
|
105 * See base class definition |
|
106 */ |
|
107 void DoDeactivate(); |
|
108 |
|
109 // From base class MEikMenuObserver |
|
110 |
|
111 /** |
|
112 * From MEikMenuObserver |
|
113 * See base class definition |
|
114 */ |
|
115 void HandleCommandL( TInt aCommand ); |
|
116 |
|
117 /** |
|
118 * From MEikMenuObserver |
|
119 * See base class definition |
|
120 */ |
|
121 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
122 |
|
123 // From base class MMSEngineObserver |
|
124 |
|
125 /** |
|
126 * From MMSEngineObserver |
|
127 * See base class definition |
|
128 */ |
|
129 void ReadyL( TCmService aService, TInt aError ); |
|
130 |
|
131 private: |
|
132 |
|
133 /** |
|
134 * pointer to AppUi object |
|
135 */ |
|
136 CMSAppUi& iAppUi; // not owned |
|
137 /** |
|
138 * view's container |
|
139 */ |
|
140 CMSStoreListContainer* iContainer; // owned |
|
141 /** |
|
142 * Focus index |
|
143 */ |
|
144 TInt iFocusIndex; |
|
145 /** |
|
146 * preprocessing state |
|
147 */ |
|
148 TBool iPreprocessingState; |
|
149 }; |
|
150 |
|
151 #endif // C_MSSTORELISTVIEW_H |
|
152 |
|
153 |
|
154 // End of File |
|