|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 #ifndef IRMAINVIEW_H |
|
18 #define IRMAINVIEW_H |
|
19 |
|
20 #include "irabstractlistviewbase.h" |
|
21 #include "irqevent.h" |
|
22 |
|
23 class IRMainModel; |
|
24 |
|
25 class IRMainView : public IrAbstractListViewBase |
|
26 { |
|
27 Q_OBJECT |
|
28 public: |
|
29 ~IRMainView(); |
|
30 |
|
31 protected: |
|
32 //only friend class IRViewManager can create this view |
|
33 IRMainView(IRApplication *aApplication, TIRViewId aViewId); |
|
34 |
|
35 //from base class IRBaseView |
|
36 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
|
37 |
|
38 private slots: |
|
39 /* |
|
40 * Description : slot function for active network event |
|
41 * Parameters : aEvent, see the definition of IRQNetworkEvent |
|
42 */ |
|
43 void networkRequestNotified(IRQNetworkEvent aEvent); |
|
44 |
|
45 private: |
|
46 //from base class IrAbstractListViewBase |
|
47 void handleItemSelected(); |
|
48 |
|
49 void itemAboutToBeSelected(bool& aNeedNetwork); |
|
50 |
|
51 void setCheckedAction(); |
|
52 |
|
53 //from base class IRBaseView |
|
54 void updateView(); |
|
55 |
|
56 private: |
|
57 IRMainModel *iMainModel; |
|
58 |
|
59 enum TUserSelection |
|
60 { |
|
61 ERecentlyPlayedStations, |
|
62 EBrowseByCountry, |
|
63 EBrowseByLanguage, |
|
64 ESongsPlayed, |
|
65 EPlayList |
|
66 }; |
|
67 |
|
68 friend class IRViewManager; |
|
69 }; |
|
70 |
|
71 #endif // IRMAINVIEW_H |
|
72 |