author | Brendan Donegan <brendand@symbian.org> |
Fri, 12 Mar 2010 09:53:46 +0000 | |
branch | Symbian3 |
changeset 51 | 3a22449b5c73 |
parent 37 | 1644b7cd063e |
parent 50 | e7b10d6d7ba3 |
child 65 | bcd88ba95046 |
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"); |
|
37
1644b7cd063e
Create Symbian3 branch with updates for SBSv2
Brendan Donegan <brendand@symbian.org>
parents:
35
diff
changeset
|
46 |
#ifndef SYMBIAN1_UI |
2 | 47 |
BaseConstructL(CAknAppUi::EAknEnableSkin); |
37
1644b7cd063e
Create Symbian3 branch with updates for SBSv2
Brendan Donegan <brendand@symbian.org>
parents:
35
diff
changeset
|
48 |
#else |
1644b7cd063e
Create Symbian3 branch with updates for SBSv2
Brendan Donegan <brendand@symbian.org>
parents:
35
diff
changeset
|
49 |
BaseConstructL(CAknAppUi::EAknEnableSkin | EAknSingleClickCompatible); |
1644b7cd063e
Create Symbian3 branch with updates for SBSv2
Brendan Donegan <brendand@symbian.org>
parents:
35
diff
changeset
|
50 |
#endif |
2 | 51 |
|
13 | 52 |
iPodcastModel->ConnectionEngine().AddObserver(this); |
53 |
||
2 | 54 |
DP("Constructing FeedView"); |
55 |
iFeedView = CPodcastFeedView::NewL(*iPodcastModel); |
|
56 |
this->AddViewL(iFeedView); |
|
57 |
||
58 |
DP("Constructing ShowsView"); |
|
59 |
iShowsView = CPodcastShowsView::NewL(*iPodcastModel); |
|
60 |
this->AddViewL(iShowsView); |
|
61 |
||
62 |
DP("Constructing QueueView"); |
|
63 |
iQueueView = CPodcastQueueView::NewL(*iPodcastModel); |
|
64 |
this->AddViewL(iQueueView); |
|
65 |
||
66 |
DP("Constructing SearchView"); |
|
67 |
iSearchView = CPodcastSearchView::NewL(*iPodcastModel); |
|
68 |
this->AddViewL(iSearchView); |
|
69 |
||
70 |
DP("Constructing SettingsView"); |
|
71 |
iSettingsView = CPodcastSettingsView::NewL(*iPodcastModel); |
|
72 |
this->AddViewL(iSettingsView); |
|
73 |
||
74 |
iNaviPane =( CAknNavigationControlContainer * ) StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ); |
|
75 |
NaviShowTabGroupL(); |
|
76 |
||
77 |
// start a timer to let ConstructL finish before we display any dialogs or start downloading |
|
78 |
// this provides another entry point in HandleTimeout below |
|
79 |
iStartTimer = CTimeout::NewL(*this); |
|
80 |
iStartTimer->After(KDelayLaunch); |
|
81 |
DP("CPodcastAppUi::ConstructL() END"); |
|
82 |
} |
|
83 |
||
84 |
CPodcastAppUi::~CPodcastAppUi() |
|
85 |
{ |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
86 |
if (iNaviStyle != ENaviEmpty) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
87 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
88 |
iNaviPane->Pop(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
89 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
90 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
91 |
if(iNaviTabGroup) |
2 | 92 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
93 |
delete iNaviTabGroup; |
2 | 94 |
} |
24
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 |
if (iNaviText) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
97 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
98 |
delete iNaviText; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
99 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
100 |
|
2 | 101 |
delete iStartTimer; |
102 |
} |
|
103 |
||
104 |
// ----------------------------------------------------------------------------- |
|
105 |
// CPodcastAppUi::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) |
|
106 |
// This function is called by the EIKON framework just before it displays |
|
107 |
// a menu pane. Its default implementation is empty, and by overriding it, |
|
108 |
// the application can set the state of menu items dynamically according |
|
109 |
// to the state of application data. |
|
110 |
// ------------------------------------------------------------------------------ |
|
111 |
// |
|
112 |
void CPodcastAppUi::DynInitMenuPaneL( |
|
113 |
TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/) |
|
114 |
{ |
|
115 |
// no implementation required |
|
116 |
} |
|
117 |
||
118 |
// ----------------------------------------------------------------------------- |
|
119 |
// CPodcastAppUi::HandleCommandL(TInt aCommand) |
|
120 |
// takes care of command handling |
|
121 |
// ----------------------------------------------------------------------------- |
|
122 |
// |
|
123 |
void CPodcastAppUi::HandleCommandL( TInt aCommand ) |
|
124 |
{ |
|
125 |
switch ( aCommand ) |
|
126 |
{ |
|
127 |
case EAknSoftkeyExit: |
|
128 |
{ |
|
129 |
Exit(); |
|
130 |
break; |
|
131 |
} |
|
132 |
case EEikCmdExit: |
|
133 |
{ |
|
134 |
TApaTask task(CEikonEnv::Static()->WsSession()); |
|
135 |
task.SetWgId(CEikonEnv::Static()->RootWin().Identifier()); |
|
136 |
task.SendToBackground(); |
|
137 |
break; |
|
138 |
} |
|
139 |
case EPodcastHelp: |
|
48 | 140 |
{ |
141 |
HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), HelpContextL()); |
|
2 | 142 |
} |
143 |
break; |
|
144 |
default: |
|
145 |
break; |
|
146 |
} |
|
147 |
} |
|
148 |
||
149 |
CArrayFix<TCoeHelpContext>* CPodcastAppUi::HelpContextL() const |
|
150 |
{ |
|
151 |
CArrayFixFlat<TCoeHelpContext>* array = |
|
152 |
new(ELeave)CArrayFixFlat<TCoeHelpContext>(1); |
|
153 |
CleanupStack::PushL(array); |
|
48 | 154 |
|
155 |
if (iFeedView->IsVisible()) { |
|
156 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextFeedsView)); |
|
157 |
} else if (iShowsView->IsVisible()) { |
|
158 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextShowsView)); |
|
159 |
} else if (iQueueView->IsVisible()) { |
|
160 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextDownloadQueue)); |
|
161 |
} else { |
|
2 | 162 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextSettings)); |
163 |
} |
|
164 |
||
165 |
CleanupStack::Pop(array); |
|
166 |
return array; |
|
167 |
} |
|
168 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
169 |
void CPodcastAppUi::NaviSetTextL(TInt aResourceId) |
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 |
if (iNaviStyle != ENaviEmpty) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
173 |
iNaviPane->Pop(); |
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 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
176 |
HBufC* naviText = iEikonEnv->AllocReadResourceLC(aResourceId); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
177 |
iNaviText = iNaviPane->CreateNavigationLabelL(*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 |
iNaviPane->PushL(*iNaviText); |
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 |
CleanupStack::PopAndDestroy(naviText); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
182 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
183 |
iNaviStyle = ENaviText; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
184 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
185 |
|
2 | 186 |
void CPodcastAppUi::NaviShowTabGroupL() |
187 |
{ |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
188 |
if (iNaviStyle != ENaviEmpty) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
189 |
iNaviPane->Pop(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
190 |
} |
2 | 191 |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
192 |
iNaviTabGroup = iNaviPane->CreateTabGroupL(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
193 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
194 |
iTabGroup = STATIC_CAST(CAknTabGroup*, iNaviTabGroup->DecoratedControl()); |
2 | 195 |
iTabGroup->SetTabFixedWidthL(EAknTabWidthWithTwoTabs); |
196 |
||
197 |
HBufC *label1 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_FEEDS); |
|
198 |
iTabGroup->AddTabL(KTabIdFeeds,*label1); |
|
199 |
||
200 |
HBufC *label3 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE); |
|
201 |
iTabGroup->AddTabL(KTabIdQueue,*label3); |
|
16 | 202 |
|
2 | 203 |
CleanupStack::PopAndDestroy(label3); |
204 |
CleanupStack::PopAndDestroy(label1); |
|
205 |
||
206 |
iTabGroup->SetActiveTabByIndex(0); |
|
207 |
iTabGroup->SetObserver(this); |
|
208 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
209 |
iNaviPane->PushL(*iNaviTabGroup); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
210 |
iNaviStyle = ENaviTabGroup; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
211 |
|
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
212 |
UpdateQueueTabL(iPodcastModel->ShowEngine().GetNumDownloadingShows()); |
2 | 213 |
} |
214 |
||
215 |
void CPodcastAppUi::TabChangedL (TInt aIndex) |
|
216 |
{ |
|
217 |
DP("CPodcastListView::TabChangedL "); |
|
218 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
219 |
if (iNaviStyle == ENaviTabGroup) |
11 | 220 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
221 |
TUid newview = TUid::Uid(0); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
222 |
TUid messageUid = TUid::Uid(0); |
49
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
223 |
if (aIndex == KTabIdFeeds) |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
224 |
{ |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
225 |
if (iFeedView->ViewingShows()) |
45
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 = KUidPodcastShowsViewID; |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
228 |
} |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
229 |
else |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
230 |
{ |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
231 |
newview = KUidPodcastFeedViewID; |
56d4e0784e5d
Nicer way to handle back from queue view to feed/show view
teknolog
parents:
35
diff
changeset
|
232 |
} |
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 if (aIndex == KTabIdQueue) |
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 |
newview = KUidPodcastQueueViewID; |
49
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
237 |
} |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
238 |
else |
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
239 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
240 |
User::Leave(KErrTooBig); |
49
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
teknolog
parents:
48
diff
changeset
|
241 |
} |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
242 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
243 |
if(newview.iUid != 0) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
244 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
245 |
ActivateLocalViewL(newview, messageUid, KNullDesC8()); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
246 |
} |
2 | 247 |
} |
248 |
} |
|
249 |
||
250 |
void CPodcastAppUi::SetActiveTab(TInt aIndex) { |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
251 |
if (iNaviStyle == ENaviTabGroup) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
252 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
253 |
iTabGroup->SetActiveTabByIndex(aIndex); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
254 |
} |
2 | 255 |
} |
256 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
257 |
void CPodcastAppUi::HandleTimeoutL(const CTimeout& /*aId*/, TInt /*aError*/) |
2 | 258 |
{ |
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
259 |
iFeedView->CheckResumeDownloadL(); |
2 | 260 |
} |
261 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
262 |
void CPodcastAppUi::UpdateQueueTabL(TInt aQueueLength) |
2 | 263 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
264 |
if (iNaviStyle == ENaviTabGroup) |
2 | 265 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
266 |
if (aQueueLength == 0) |
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 |
HBufC *queue = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
269 |
iTabGroup->ReplaceTabL(KTabIdQueue, *queue); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
270 |
CleanupStack::PopAndDestroy(queue); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
271 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
272 |
else |
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 |
HBufC *queueTemplate = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE_COUNTER); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
275 |
HBufC *queueCounter = HBufC::NewLC(queueTemplate->Length()+2); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
276 |
queueCounter->Des().Format(*queueTemplate, aQueueLength); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
277 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
278 |
iTabGroup->ReplaceTabL(KTabIdQueue, *queueCounter); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
279 |
CleanupStack::PopAndDestroy(queueCounter); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
280 |
CleanupStack::PopAndDestroy(queueTemplate); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
281 |
} |
2 | 282 |
} |
283 |
} |
|
284 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
285 |
void CPodcastAppUi::TabLeftL() |
2 | 286 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
287 |
if (iNaviStyle == ENaviTabGroup) |
11 | 288 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
289 |
TInt ati = iTabGroup->ActiveTabIndex(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
290 |
if(ati > 0) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
291 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
292 |
SetActiveTab(ati-1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
293 |
TabChangedL(ati-1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
294 |
} |
11 | 295 |
} |
2 | 296 |
} |
297 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
298 |
void CPodcastAppUi::TabRightL() |
2 | 299 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
300 |
if (iNaviStyle == ENaviTabGroup) |
11 | 301 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
302 |
TInt ati = iTabGroup->ActiveTabIndex(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
303 |
if(ati < iTabGroup->TabCount()-1) |
11 | 304 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
305 |
SetActiveTab(ati+1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
306 |
TabChangedL(ati+1); |
11 | 307 |
} |
308 |
} |
|
309 |
} |
|
13 | 310 |
|
311 |
void CPodcastAppUi::ConnectionSelectionStart() |
|
312 |
{ |
|
313 |
DP("CPodcastAppUi::ConnectionSelectionStart()"); |
|
314 |
iFeedView->UpdateToolbar(EFalse); |
|
315 |
iShowsView->UpdateToolbar(EFalse); |
|
316 |
iQueueView->UpdateToolbar(EFalse); |
|
317 |
iSearchView->UpdateToolbar(EFalse); |
|
318 |
} |
|
319 |
||
320 |
void CPodcastAppUi::ConnectionSelectionEnd() |
|
321 |
{ |
|
322 |
DP("CPodcastAppUi::ConnectionSelectionEnd()"); |
|
323 |
iFeedView->UpdateToolbar(ETrue); |
|
324 |
iFeedView->UpdateToolbar(ETrue); |
|
325 |
iShowsView->UpdateToolbar(ETrue); |
|
326 |
iQueueView->UpdateToolbar(ETrue); |
|
327 |
iSearchView->UpdateToolbar(ETrue); |
|
328 |
} |