1 /* |
|
2 * Copyright (c) 2005-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: Header for CIRStationInfoView |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /* --------------------------------------------------------------------------- |
|
20 * Version history: |
|
21 * Template version: |
|
22 * <ccm_history> |
|
23 * |
|
24 * Version: 2, Thu Jul 3 16:30:00 2008 by Rohit |
|
25 * Ref: |
|
26 * Codescanner fixes |
|
27 * |
|
28 * Version: 1, Wed Apr 30 16:15:00 2008 by Rohit |
|
29 * Ref: |
|
30 * Created. Implemented StationInfo potrait view |
|
31 * |
|
32 * </ccm_history> |
|
33 * ============================================================================ |
|
34 */ |
|
35 |
|
36 #ifndef CIRSTATIONINFOVIEW_H |
|
37 #define CIRSTATIONINFOVIEW_H |
|
38 |
|
39 #include <AknProgressDialog.h> |
|
40 #include <aknview.h> |
|
41 |
|
42 #include "irbaseview.h" |
|
43 #include "MLogoDownloadObserver.h" |
|
44 |
|
45 class CIRStationInfoContainer; |
|
46 class CIRIsdsPreset; |
|
47 class CIRPreset; |
|
48 class CAknWaitDialog; |
|
49 |
|
50 /** |
|
51 * Channel List View, displays a list of preset FM / visual radio channels. |
|
52 */ |
|
53 class CIRStationInfoView : public CIRBaseView, |
|
54 public MLogoDownloadObserver |
|
55 { |
|
56 |
|
57 public: |
|
58 |
|
59 /** |
|
60 * Static constructor. |
|
61 */ |
|
62 static CIRStationInfoView* NewLC(const TRect& aRect); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 ~CIRStationInfoView(); |
|
68 |
|
69 static CIRStationInfoView* NewL(const TRect& aRect); |
|
70 |
|
71 /** |
|
72 * From CAknView |
|
73 * |
|
74 * @see CAknView::Id() const |
|
75 */ |
|
76 TUid Id() const; |
|
77 |
|
78 /** |
|
79 * From CAknView |
|
80 * |
|
81 * @see CAknView::HandleCommandL( TInt aCommand ) |
|
82 */ |
|
83 void HandleCommandL( TInt aCommand ); |
|
84 |
|
85 |
|
86 /** |
|
87 * From MLogoDownloadObserver |
|
88 * |
|
89 * Invoked after requested logo is downloaded |
|
90 */ |
|
91 void PresetLogoDownloadedL(CIRIsdsPreset* aPreset); |
|
92 |
|
93 /** |
|
94 * From MLogoDownloadObserver |
|
95 * |
|
96 * Invoked if an error has occured while logo is downloading or no logo data available |
|
97 */ |
|
98 void PresetLogoDownloadError(CIRIsdsPreset* aPreset); |
|
99 |
|
100 /** |
|
101 * SetStationPresetL |
|
102 * Copies the given preset to member iStationPreset for display |
|
103 * @param aPreset Station Preset given by invoking view |
|
104 */ |
|
105 void SetStationPresetL( CIRIsdsPreset* aPreset ); |
|
106 |
|
107 /** |
|
108 * SetStationPresetL |
|
109 * Copies the given preset to member iStationPreset for display |
|
110 * @param aPreset Station Preset given by invoking view |
|
111 */ |
|
112 void SetStationPresetL( CIRPreset* aPreset ); |
|
113 |
|
114 /** |
|
115 * GetStationPresetL |
|
116 * |
|
117 * |
|
118 */ |
|
119 CIRIsdsPreset* GetStationPresetL( ); |
|
120 |
|
121 protected: |
|
122 |
|
123 // from base class CAknView |
|
124 /** |
|
125 * From CAknView |
|
126 * |
|
127 * @see CAknView::DoActivateL(const TVwsViewId& aPrevViewId, |
|
128 * TUid aCustomMessageId, |
|
129 * const TDesC8& aCustomMessage) |
|
130 */ |
|
131 void DoActivateL( const TVwsViewId& /*aPrevViewId*/, |
|
132 TUid /*aCustomMessageId*/, |
|
133 const TDesC8& /*aCustomMessage */); |
|
134 |
|
135 /** |
|
136 * From CAknView |
|
137 * |
|
138 * @see CAknView::DoDeactivate() |
|
139 */ |
|
140 void DoDeactivate(); |
|
141 |
|
142 /** |
|
143 * From CAknView |
|
144 * |
|
145 * @see CAknView::HandleStatusPaneSizeChange() |
|
146 */ |
|
147 void HandleStatusPaneSizeChange(); |
|
148 |
|
149 private: |
|
150 |
|
151 /** |
|
152 * 2nd phase constructor |
|
153 */ |
|
154 void ConstructL(const TRect& /*aRect*/); |
|
155 |
|
156 /** |
|
157 * C++ default constructor. |
|
158 */ |
|
159 CIRStationInfoView(); |
|
160 |
|
161 private: // Data |
|
162 |
|
163 /** |
|
164 * Container for this view. |
|
165 */ |
|
166 CIRStationInfoContainer* iContainer; |
|
167 |
|
168 public: |
|
169 /** |
|
170 * Station Preset to display Station Info |
|
171 */ |
|
172 CIRIsdsPreset* iStationPreset; |
|
173 |
|
174 }; |
|
175 |
|
176 #endif // CIRStationInfoView_H |
|
177 |
|
178 |
|