|
1 /* |
|
2 ========================================================================================== |
|
3 Name : NPRStoryListBoxView.h |
|
4 Author : Symsource |
|
5 |
|
6 Copyright (c) 2009 Symbian Foundation Ltd |
|
7 This component and the accompanying materials are made available |
|
8 under the terms of the License "Eclipse Public License v1.0" |
|
9 which accompanies this distribution, and is available |
|
10 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
11 |
|
12 Initial Contributors: |
|
13 - Symsource |
|
14 |
|
15 Contributors: |
|
16 - Symsource |
|
17 |
|
18 Description : AknView for wrapping the container to show the NPR's story list |
|
19 ========================================================================================== |
|
20 */ |
|
21 |
|
22 #ifndef __NPR_STORY_LIST_BOX_VIEW_H__ |
|
23 #define __NPR_STORY_LIST_BOX_VIEW_H__ |
|
24 |
|
25 #include <aknview.h> |
|
26 |
|
27 class CNPRStoryListBox; |
|
28 |
|
29 /** |
|
30 * Avkon view class for NPRStoryListBoxView. It is register with the view server |
|
31 * by the AppUi. It owns the container control. |
|
32 * @class CNPRStoryListBoxView NPRStoryListBoxView.h |
|
33 */ |
|
34 class CNPRStoryListBoxView : public CAknView |
|
35 { |
|
36 public: |
|
37 static CNPRStoryListBoxView* NewL(); |
|
38 static CNPRStoryListBoxView* NewLC(); |
|
39 virtual ~CNPRStoryListBoxView(); |
|
40 |
|
41 public: |
|
42 // from base class CAknView |
|
43 TUid Id() const; |
|
44 void HandleCommandL(TInt aCommand); |
|
45 CNPRStoryListBox* CreateContainerL(); |
|
46 |
|
47 protected: |
|
48 // from base class CAknView |
|
49 void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage); |
|
50 void DoDeactivate(); |
|
51 void HandleStatusPaneSizeChange(); |
|
52 |
|
53 private: |
|
54 void SetupStatusPaneL(); |
|
55 void CleanupStatusPane(); |
|
56 |
|
57 private: |
|
58 // constructors |
|
59 CNPRStoryListBoxView(); |
|
60 void ConstructL(); |
|
61 |
|
62 private: |
|
63 CNPRStoryListBox* iNPRStoryListBox; |
|
64 }; |
|
65 |
|
66 #endif // __NPR_STORY_LIST_BOX_VIEW_H__ |