author | Brendan Donegan <brendand@symbian.org> |
Wed, 10 Mar 2010 10:50:53 +0000 | |
branch | Symbian3 |
changeset 43 | 3c0683f9f72c |
parent 37 | 1644b7cd063e |
child 51 | 3a22449b5c73 |
child 125 | 70749e2f572d |
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: |
|
140 |
{ |
|
141 |
CArrayFix<TCoeHelpContext>* buf = CPodcastAppUi::AppHelpContextL(); |
|
142 |
HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), buf); |
|
143 |
} |
|
144 |
break; |
|
145 |
default: |
|
146 |
break; |
|
147 |
} |
|
148 |
} |
|
149 |
||
150 |
CArrayFix<TCoeHelpContext>* CPodcastAppUi::HelpContextL() const |
|
151 |
{ |
|
152 |
CArrayFixFlat<TCoeHelpContext>* array = |
|
153 |
new(ELeave)CArrayFixFlat<TCoeHelpContext>(1); |
|
154 |
CleanupStack::PushL(array); |
|
155 |
// todo: view detection doesn't seem to work |
|
156 |
if (ViewShown(KUidPodcastSearchViewID)) { |
|
157 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextSettings)); |
|
158 |
} else { |
|
159 |
array->AppendL(TCoeHelpContext(KUidPodcast,KContextApplication)); |
|
160 |
} |
|
161 |
||
162 |
CleanupStack::Pop(array); |
|
163 |
return array; |
|
164 |
} |
|
165 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
166 |
void CPodcastAppUi::NaviSetTextL(TInt aResourceId) |
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 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
169 |
if (iNaviStyle != ENaviEmpty) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
170 |
iNaviPane->Pop(); |
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 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
173 |
HBufC* naviText = iEikonEnv->AllocReadResourceLC(aResourceId); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
174 |
iNaviText = iNaviPane->CreateNavigationLabelL(*naviText); |
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 |
iNaviPane->PushL(*iNaviText); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
177 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
178 |
CleanupStack::PopAndDestroy(naviText); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
179 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
180 |
iNaviStyle = ENaviText; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
181 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
182 |
|
2 | 183 |
void CPodcastAppUi::NaviShowTabGroupL() |
184 |
{ |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
185 |
if (iNaviStyle != ENaviEmpty) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
186 |
iNaviPane->Pop(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
187 |
} |
2 | 188 |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
189 |
iNaviTabGroup = iNaviPane->CreateTabGroupL(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
190 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
191 |
iTabGroup = STATIC_CAST(CAknTabGroup*, iNaviTabGroup->DecoratedControl()); |
2 | 192 |
iTabGroup->SetTabFixedWidthL(EAknTabWidthWithTwoTabs); |
193 |
||
194 |
HBufC *label1 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_FEEDS); |
|
195 |
iTabGroup->AddTabL(KTabIdFeeds,*label1); |
|
196 |
||
197 |
HBufC *label3 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE); |
|
198 |
iTabGroup->AddTabL(KTabIdQueue,*label3); |
|
16 | 199 |
|
2 | 200 |
CleanupStack::PopAndDestroy(label3); |
201 |
CleanupStack::PopAndDestroy(label1); |
|
202 |
||
203 |
iTabGroup->SetActiveTabByIndex(0); |
|
204 |
iTabGroup->SetObserver(this); |
|
205 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
206 |
iNaviPane->PushL(*iNaviTabGroup); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
207 |
iNaviStyle = ENaviTabGroup; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
208 |
|
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
209 |
UpdateQueueTabL(iPodcastModel->ShowEngine().GetNumDownloadingShows()); |
2 | 210 |
} |
211 |
||
212 |
void CPodcastAppUi::TabChangedL (TInt aIndex) |
|
213 |
{ |
|
214 |
DP("CPodcastListView::TabChangedL "); |
|
215 |
||
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
216 |
if (iNaviStyle == ENaviTabGroup) |
11 | 217 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
218 |
TUid newview = TUid::Uid(0); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
219 |
TUid messageUid = TUid::Uid(0); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
220 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
221 |
if (aIndex == KTabIdFeeds) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
222 |
newview = KUidPodcastFeedViewID; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
223 |
} else if (aIndex == KTabIdQueue) { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
224 |
newview = KUidPodcastQueueViewID; |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
225 |
} else { |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
226 |
User::Leave(KErrTooBig); |
11 | 227 |
} |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
228 |
|
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
229 |
if(newview.iUid != 0) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
230 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
231 |
ActivateLocalViewL(newview, messageUid, KNullDesC8()); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
232 |
} |
2 | 233 |
} |
234 |
} |
|
235 |
||
236 |
void CPodcastAppUi::SetActiveTab(TInt aIndex) { |
|
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
237 |
if (iNaviStyle == ENaviTabGroup) |
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 |
iTabGroup->SetActiveTabByIndex(aIndex); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
240 |
} |
2 | 241 |
} |
242 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
243 |
void CPodcastAppUi::HandleTimeoutL(const CTimeout& /*aId*/, TInt /*aError*/) |
2 | 244 |
{ |
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
245 |
iFeedView->CheckResumeDownloadL(); |
2 | 246 |
} |
247 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
248 |
void CPodcastAppUi::UpdateQueueTabL(TInt aQueueLength) |
2 | 249 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
250 |
if (iNaviStyle == ENaviTabGroup) |
2 | 251 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
252 |
if (aQueueLength == 0) |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
253 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
254 |
HBufC *queue = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
255 |
iTabGroup->ReplaceTabL(KTabIdQueue, *queue); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
256 |
CleanupStack::PopAndDestroy(queue); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
257 |
} |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
258 |
else |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
259 |
{ |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
260 |
HBufC *queueTemplate = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE_COUNTER); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
261 |
HBufC *queueCounter = HBufC::NewLC(queueTemplate->Length()+2); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
262 |
queueCounter->Des().Format(*queueTemplate, aQueueLength); |
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 |
iTabGroup->ReplaceTabL(KTabIdQueue, *queueCounter); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
265 |
CleanupStack::PopAndDestroy(queueCounter); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
266 |
CleanupStack::PopAndDestroy(queueTemplate); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
267 |
} |
2 | 268 |
} |
269 |
} |
|
270 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
271 |
void CPodcastAppUi::TabLeftL() |
2 | 272 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
273 |
if (iNaviStyle == ENaviTabGroup) |
11 | 274 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
275 |
TInt ati = iTabGroup->ActiveTabIndex(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
276 |
if(ati > 0) |
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 |
SetActiveTab(ati-1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
279 |
TabChangedL(ati-1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
280 |
} |
11 | 281 |
} |
2 | 282 |
} |
283 |
||
35
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
Brendan Donegan <brendand@symbian.org>
parents:
24
diff
changeset
|
284 |
void CPodcastAppUi::TabRightL() |
2 | 285 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
286 |
if (iNaviStyle == ENaviTabGroup) |
11 | 287 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
288 |
TInt ati = iTabGroup->ActiveTabIndex(); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
289 |
if(ati < iTabGroup->TabCount()-1) |
11 | 290 |
{ |
24
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
291 |
SetActiveTab(ati+1); |
ca50ea154990
Moved search result title to navipane. Fixed but 1832
teknolog
parents:
16
diff
changeset
|
292 |
TabChangedL(ati+1); |
11 | 293 |
} |
294 |
} |
|
295 |
} |
|
13 | 296 |
|
297 |
void CPodcastAppUi::ConnectionSelectionStart() |
|
298 |
{ |
|
299 |
DP("CPodcastAppUi::ConnectionSelectionStart()"); |
|
300 |
iFeedView->UpdateToolbar(EFalse); |
|
301 |
iShowsView->UpdateToolbar(EFalse); |
|
302 |
iQueueView->UpdateToolbar(EFalse); |
|
303 |
iSearchView->UpdateToolbar(EFalse); |
|
304 |
} |
|
305 |
||
306 |
void CPodcastAppUi::ConnectionSelectionEnd() |
|
307 |
{ |
|
308 |
DP("CPodcastAppUi::ConnectionSelectionEnd()"); |
|
309 |
iFeedView->UpdateToolbar(ETrue); |
|
310 |
iFeedView->UpdateToolbar(ETrue); |
|
311 |
iShowsView->UpdateToolbar(ETrue); |
|
312 |
iQueueView->UpdateToolbar(ETrue); |
|
313 |
iSearchView->UpdateToolbar(ETrue); |
|
314 |
} |