author | Lars Persson <lars.persson@embeddev.se> |
Thu, 01 Apr 2010 11:41:33 +0200 | |
changeset 99 | 41d00e97e2f7 |
parent 97 | b52f6033af15 |
parent 50 | e7b10d6d7ba3 |
child 104 | 4d1286f7f982 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
2 |
* Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB |
|
3 |
* |
|
4 |
* All rights reserved. |
|
5 |
* This component and the accompanying materials are made available |
|
6 |
* under the terms of the License "Eclipse Public License v1.0" |
|
7 |
* which accompanies this distribution, and is available |
|
8 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 |
* |
|
10 |
* Initial Contributors: |
|
11 |
* EmbedDev AB - initial contribution. |
|
12 |
* |
|
13 |
* Contributors: |
|
14 |
* |
|
15 |
* Description: |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
#include "PodcastAppui.h" |
|
20 |
#include <Podcast.rsg> |
|
21 |
#include "Podcast.hrh" |
|
22 |
#include "PodcastFeedView.h" |
|
23 |
#include "PodcastShowsView.h" |
|
24 |
#include "PodcastQueueView.h" |
|
25 |
#include "PodcastSettingsView.h" |
|
26 |
#include "PodcastSearchView.h" |
|
27 |
#include "ShowEngine.h" |
|
28 |
#include "PodcastModel.h" |
|
29 |
#include "debug.h" |
|
30 |
#include "..\help\podcatcher.hlp.hrh" |
|
31 |
#include "PodcastApp.h" |
|
32 |
||
33 |
#include <HLPLCH.H> |
|
34 |
#include <avkon.hrh> |
|
35 |
||
36 |
const TUint KDelayLaunch = 1000; |
|
37 |
||
38 |
CPodcastAppUi::CPodcastAppUi(CPodcastModel* aPodcastModel):iPodcastModel(aPodcastModel) |
|
39 |
{ |
|
40 |
||
41 |
} |
|
42 |
||
43 |
void CPodcastAppUi::ConstructL() |
|
44 |
{ |
|
45 |
DP("CPodcastAppUi::ConstructL() BEGIN"); |
|
46 |
BaseConstructL(CAknAppUi::EAknEnableSkin); |
|
47 |
||
13 | 48 |
iPodcastModel->ConnectionEngine().AddObserver(this); |
49 |
||
2 | 50 |
DP("Constructing FeedView"); |
51 |
iFeedView = CPodcastFeedView::NewL(*iPodcastModel); |
|
52 |
this->AddViewL(iFeedView); |
|
53 |
||
54 |
DP("Constructing ShowsView"); |
|
55 |
iShowsView = CPodcastShowsView::NewL(*iPodcastModel); |
|
56 |
this->AddViewL(iShowsView); |
|
57 |
||
58 |
DP("Constructing QueueView"); |
|
59 |
iQueueView = CPodcastQueueView::NewL(*iPodcastModel); |
|
60 |
this->AddViewL(iQueueView); |
|
61 |
||
62 |
DP("Constructing SearchView"); |
|
63 |
iSearchView = CPodcastSearchView::NewL(*iPodcastModel); |
|
64 |
this->AddViewL(iSearchView); |
|
65 |
||
66 |
DP("Constructing SettingsView"); |
|
67 |
iSettingsView = CPodcastSettingsView::NewL(*iPodcastModel); |
|
68 |
this->AddViewL(iSettingsView); |
|
69 |
||
70 |
iNaviPane =( CAknNavigationControlContainer * ) StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ); |
|
71 |
NaviShowTabGroupL(); |
|
72 |
||
73 |
// start a timer to let ConstructL finish before we display any dialogs or start downloading |
|
74 |
// this provides another entry point in HandleTimeout below |
|
75 |
iStartTimer = CTimeout::NewL(*this); |
|
76 |
iStartTimer->After(KDelayLaunch); |
|
77 |
DP("CPodcastAppUi::ConstructL() END"); |
|
78 |
} |
|
79 |
||
80 |
CPodcastAppUi::~CPodcastAppUi() |
|
81 |
{ |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
82 |
if (iNaviStyle != ENaviEmpty) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
83 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
84 |
iNaviPane->Pop(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
85 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
86 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
87 |
if(iNaviTabGroup) |
2 | 88 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
89 |
delete iNaviTabGroup; |
2 | 90 |
} |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
91 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
92 |
if (iNaviText) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
93 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
94 |
delete iNaviText; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
95 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
96 |
|
2 | 97 |
delete iStartTimer; |
98 |
} |
|
99 |
||
100 |
// ----------------------------------------------------------------------------- |
|
101 |
// CPodcastAppUi::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) |
|
102 |
// This function is called by the EIKON framework just before it displays |
|
103 |
// a menu pane. Its default implementation is empty, and by overriding it, |
|
104 |
// the application can set the state of menu items dynamically according |
|
105 |
// to the state of application data. |
|
106 |
// ------------------------------------------------------------------------------ |
|
107 |
// |
|
108 |
void CPodcastAppUi::DynInitMenuPaneL( |
|
109 |
TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/) |
|
110 |
{ |
|
111 |
// no implementation required |
|
112 |
} |
|
113 |
||
114 |
// ----------------------------------------------------------------------------- |
|
115 |
// CPodcastAppUi::HandleCommandL(TInt aCommand) |
|
116 |
// takes care of command handling |
|
117 |
// ----------------------------------------------------------------------------- |
|
118 |
// |
|
119 |
void CPodcastAppUi::HandleCommandL( TInt aCommand ) |
|
120 |
{ |
|
121 |
switch ( aCommand ) |
|
122 |
{ |
|
123 |
case EAknSoftkeyExit: |
|
124 |
{ |
|
125 |
Exit(); |
|
126 |
break; |
|
127 |
} |
|
128 |
case EEikCmdExit: |
|
129 |
{ |
|
97
b52f6033af15
Add so image conversion is done in feedinfo if image already exist.
Lars Persson <lars.persson@embeddev.se>
parents:
24
diff
changeset
|
130 |
TApaTask task(iEikonEnv->WsSession()); |
b52f6033af15
Add so image conversion is done in feedinfo if image already exist.
Lars Persson <lars.persson@embeddev.se>
parents:
24
diff
changeset
|
131 |
task.SetWgId(iEikonEnv->RootWin().Identifier()); |
2 | 132 |
task.SendToBackground(); |
133 |
break; |
|
134 |
} |
|
135 |
case EPodcastHelp: |
|
48 | 136 |
{ |
137 |
HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), HelpContextL()); |
|
2 | 138 |
} |
139 |
break; |
|
140 |
default: |
|
141 |
break; |
|
142 |
} |
|
143 |
} |
|
144 |
||
145 |
CArrayFix<TCoeHelpContext>* CPodcastAppUi::HelpContextL() const |
|
146 |
{ |
|
147 |
CArrayFixFlat<TCoeHelpContext>* array = |
|
148 |
new(ELeave)CArrayFixFlat<TCoeHelpContext>(1); |
|
149 |
CleanupStack::PushL(array); |
|
48 | 150 |
|
151 |
if (iFeedView->IsVisible()) { |
|
152 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextFeedsView)); |
|
153 |
} else if (iShowsView->IsVisible()) { |
|
154 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextShowsView)); |
|
155 |
} else if (iQueueView->IsVisible()) { |
|
156 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextDownloadQueue)); |
|
157 |
} else { |
|
2 | 158 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextSettings)); |
159 |
} |
|
160 |
||
161 |
CleanupStack::Pop(array); |
|
162 |
return array; |
|
163 |
} |
|
164 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
165 |
void CPodcastAppUi::NaviSetTextL(TInt aResourceId) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
166 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
167 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
168 |
if (iNaviStyle != ENaviEmpty) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
169 |
iNaviPane->Pop(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
170 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
171 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
172 |
HBufC* naviText = iEikonEnv->AllocReadResourceLC(aResourceId); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
173 |
iNaviText = iNaviPane->CreateNavigationLabelL(*naviText); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
174 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
175 |
iNaviPane->PushL(*iNaviText); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
176 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
177 |
CleanupStack::PopAndDestroy(naviText); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
178 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
179 |
iNaviStyle = ENaviText; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
180 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
181 |
|
2 | 182 |
void CPodcastAppUi::NaviShowTabGroupL() |
183 |
{ |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
184 |
if (iNaviStyle != ENaviEmpty) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
185 |
iNaviPane->Pop(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
186 |
} |
2 | 187 |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
188 |
iNaviTabGroup = iNaviPane->CreateTabGroupL(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
189 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
190 |
iTabGroup = STATIC_CAST(CAknTabGroup*, iNaviTabGroup->DecoratedControl()); |
2 | 191 |
iTabGroup->SetTabFixedWidthL(EAknTabWidthWithTwoTabs); |
192 |
||
193 |
HBufC *label1 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_FEEDS); |
|
194 |
iTabGroup->AddTabL(KTabIdFeeds,*label1); |
|
195 |
||
196 |
HBufC *label3 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE); |
|
197 |
iTabGroup->AddTabL(KTabIdQueue,*label3); |
|
16 | 198 |
|
2 | 199 |
CleanupStack::PopAndDestroy(label3); |
200 |
CleanupStack::PopAndDestroy(label1); |
|
201 |
||
202 |
iTabGroup->SetActiveTabByIndex(0); |
|
203 |
iTabGroup->SetObserver(this); |
|
204 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
205 |
iNaviPane->PushL(*iNaviTabGroup); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
206 |
iNaviStyle = ENaviTabGroup; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
207 |
|
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
208 |
UpdateQueueTabL(iPodcastModel->ShowEngine().GetNumDownloadingShows()); |
2 | 209 |
} |
210 |
||
211 |
void CPodcastAppUi::TabChangedL (TInt aIndex) |
|
212 |
{ |
|
213 |
DP("CPodcastListView::TabChangedL "); |
|
214 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
215 |
if (iNaviStyle == ENaviTabGroup) |
11 | 216 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
217 |
TUid newview = TUid::Uid(0); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
218 |
TUid messageUid = TUid::Uid(0); |
49
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
219 |
if (aIndex == KTabIdFeeds) |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
220 |
{ |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
221 |
if (iFeedView->ViewingShows()) |
45
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
222 |
{ |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
223 |
newview = KUidPodcastShowsViewID; |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
224 |
} |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
225 |
else |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
226 |
{ |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
227 |
newview = KUidPodcastFeedViewID; |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
228 |
} |
49
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
229 |
} |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
230 |
else if (aIndex == KTabIdQueue) |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
231 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
232 |
newview = KUidPodcastQueueViewID; |
49
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
233 |
} |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
234 |
else |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
235 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
236 |
User::Leave(KErrTooBig); |
49
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
237 |
} |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
238 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
239 |
if(newview.iUid != 0) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
240 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
241 |
ActivateLocalViewL(newview, messageUid, KNullDesC8()); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
242 |
} |
2 | 243 |
} |
244 |
} |
|
245 |
||
246 |
void CPodcastAppUi::SetActiveTab(TInt aIndex) { |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
247 |
if (iNaviStyle == ENaviTabGroup) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
248 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
249 |
iTabGroup->SetActiveTabByIndex(aIndex); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
250 |
} |
2 | 251 |
} |
252 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
253 |
void CPodcastAppUi::HandleTimeoutL(const CTimeout& /*aId*/, TInt /*aError*/) |
2 | 254 |
{ |
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
255 |
iFeedView->CheckResumeDownloadL(); |
2 | 256 |
} |
257 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
258 |
void CPodcastAppUi::UpdateQueueTabL(TInt aQueueLength) |
2 | 259 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
260 |
if (iNaviStyle == ENaviTabGroup) |
2 | 261 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
262 |
if (aQueueLength == 0) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
263 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
264 |
HBufC *queue = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
265 |
iTabGroup->ReplaceTabL(KTabIdQueue, *queue); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
266 |
CleanupStack::PopAndDestroy(queue); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
267 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
268 |
else |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
269 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
270 |
HBufC *queueTemplate = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE_COUNTER); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
271 |
HBufC *queueCounter = HBufC::NewLC(queueTemplate->Length()+2); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
272 |
queueCounter->Des().Format(*queueTemplate, aQueueLength); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
273 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
274 |
iTabGroup->ReplaceTabL(KTabIdQueue, *queueCounter); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
275 |
CleanupStack::PopAndDestroy(queueCounter); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
276 |
CleanupStack::PopAndDestroy(queueTemplate); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
277 |
} |
2 | 278 |
} |
279 |
} |
|
280 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
281 |
void CPodcastAppUi::TabLeftL() |
2 | 282 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
283 |
if (iNaviStyle == ENaviTabGroup) |
11 | 284 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
285 |
TInt ati = iTabGroup->ActiveTabIndex(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
286 |
if(ati > 0) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
287 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
288 |
SetActiveTab(ati-1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
289 |
TabChangedL(ati-1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
290 |
} |
11 | 291 |
} |
2 | 292 |
} |
293 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
294 |
void CPodcastAppUi::TabRightL() |
2 | 295 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
296 |
if (iNaviStyle == ENaviTabGroup) |
11 | 297 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
298 |
TInt ati = iTabGroup->ActiveTabIndex(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
299 |
if(ati < iTabGroup->TabCount()-1) |
11 | 300 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
301 |
SetActiveTab(ati+1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
302 |
TabChangedL(ati+1); |
11 | 303 |
} |
304 |
} |
|
305 |
} |
|
13 | 306 |
|
307 |
void CPodcastAppUi::ConnectionSelectionStart() |
|
308 |
{ |
|
309 |
DP("CPodcastAppUi::ConnectionSelectionStart()"); |
|
310 |
iFeedView->UpdateToolbar(EFalse); |
|
311 |
iShowsView->UpdateToolbar(EFalse); |
|
312 |
iQueueView->UpdateToolbar(EFalse); |
|
313 |
iSearchView->UpdateToolbar(EFalse); |
|
314 |
} |
|
315 |
||
316 |
void CPodcastAppUi::ConnectionSelectionEnd() |
|
317 |
{ |
|
318 |
DP("CPodcastAppUi::ConnectionSelectionEnd()"); |
|
319 |
iFeedView->UpdateToolbar(ETrue); |
|
320 |
iFeedView->UpdateToolbar(ETrue); |
|
321 |
iShowsView->UpdateToolbar(ETrue); |
|
322 |
iQueueView->UpdateToolbar(ETrue); |
|
323 |
iSearchView->UpdateToolbar(ETrue); |
|
324 |
} |