| author | teknolog | 
| Tue, 06 Jul 2010 10:34:42 +0100 | |
| branch | symbian1 | 
| changeset 160 | 6477d22a5dca | 
| parent 145 | cc0182a5da39 | 
| child 175 | cd124c4eb6b9 | 
| child 336 | 3d6c1417e8bd | 
| 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 "PodcastListView.h" | |
| 20 | #include "Podcast.hrh" | |
| 21 | #include "PodcastAppUi.h" | |
| 22 | #include "constants.h" | |
| 23 | #include <podcast.rsg> | |
| 24 | #include <aknlists.h> | |
| 25 | #include <aknviewappui.h> | |
| 26 | #include <aknnotedialog.h> | |
| 27 | #include <aknsbasicbackgroundcontrolcontext.h> | |
| 28 | #include <akntabgrp.h> | |
| 29 | #include <akntoolbarextension.h> | |
| 30 | #include <aknquerydialog.h> | |
| 31 | #include <barsread.h> | |
| 49 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 32 | #include <akntitle.h> | 
| 2 | 33 | |
| 86 | 34 | #include "buildno.h" | 
| 35 | ||
| 2 | 36 | const TInt KDefaultGran = 5; | 
| 37 | ||
| 38 | CPodcastListContainer::CPodcastListContainer() | |
| 39 | {
 | |
| 40 | } | |
| 41 | ||
| 42 | void CPodcastListContainer::SetKeyEventListener(MKeyEventListener *aKeyEventListener) | |
| 43 | 	{
 | |
| 44 | iKeyEventListener = aKeyEventListener; | |
| 45 | } | |
| 46 | ||
| 47 | TKeyResponse CPodcastListContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType) | |
| 48 | {
 | |
| 49 | TKeyResponse response = iListbox->OfferKeyEventL(aKeyEvent, aType); | |
| 50 | if (iKeyEventListener) | |
| 51 | iKeyEventListener->OfferKeyEventL(aKeyEvent, aType); | |
| 52 | ||
| 53 | return response; | |
| 54 | } | |
| 55 | ||
| 56 | void CPodcastListContainer::ConstructL( const TRect& aRect, TInt aListboxFlags ) | |
| 57 | {
 | |
| 58 | CreateWindowL(); | |
| 59 | ||
| 60 | iBgContext = | |
| 61 | CAknsBasicBackgroundControlContext::NewL( KAknsIIDQsnBgAreaMain, | |
| 62 | aRect, | |
| 63 | ETrue ); | |
| 64 | ||
| 65 | // Set the windows size | |
| 66 | SetRect( aRect ); | |
| 67 | iListbox =static_cast<CEikFormattedCellListBox*>( new (ELeave) CAknDoubleLargeStyleListBox); | |
| 68 | iListbox->ConstructL(this, aListboxFlags); | |
| 69 | iListbox->SetMopParent( this ); | |
| 70 | iListbox->SetContainerWindowL(*this); | |
| 71 | iListbox->CreateScrollBarFrameL(ETrue); | |
| 72 | iListbox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EAuto, CEikScrollBarFrame::EAuto ); | |
| 73 | ||
| 74 | iListbox->ItemDrawer()->FormattedCellData()->EnableMarqueeL( ETrue ); | |
| 75 | ||
| 76 | iListbox->SetSize(aRect.Size()); | |
| 77 | iListbox->MakeVisible(ETrue); | |
| 78 | MakeVisible(EFalse); | |
| 23 
cf4b850bbffb
Added macro SYMBIAN1_UI that toggles between single and double tap UI
 teknolog parents: 
13diff
changeset | 79 | |
| 2 | 80 | // Activate the window, which makes it ready to be drawn | 
| 81 | ActivateL(); | |
| 82 | } | |
| 83 | ||
| 84 | TInt CPodcastListContainer::CountComponentControls() const | |
| 85 |     {
 | |
| 86 | return 1; // return number of controls inside this container | |
| 87 | } | |
| 88 | ||
| 89 | CCoeControl* CPodcastListContainer::ComponentControl(TInt aIndex) const | |
| 90 |     {
 | |
| 91 | switch ( aIndex ) | |
| 92 |         {
 | |
| 93 | case 0: | |
| 94 | return iListbox; | |
| 95 | default: | |
| 96 | return NULL; | |
| 97 | } | |
| 98 | } | |
| 99 | ||
| 35 
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
 Brendan Donegan <brendand@symbian.org> parents: 
27diff
changeset | 100 | void CPodcastListContainer::SetLongTapDetectedL(TBool aLongTapDetected) | 
| 26 | 101 | 	{
 | 
| 160 | 102 | 	DP("CPodcastListContainer::SetLongTapDetectedL BEGIN");
 | 
| 26 | 103 | iLongTapDetected = aLongTapDetected; | 
| 27 | 104 | |
| 105 | if (aLongTapDetected == EFalse) | |
| 106 | 		{
 | |
| 107 | TPointerEvent event; | |
| 108 | event.iType = TPointerEvent::EButton1Up; | |
| 160 | 109 | //CCoeControl::HandlePointerEventL(event); | 
| 27 | 110 | } | 
| 160 | 111 | 	DP("CPodcastListContainer::SetLongTapDetectedL END");
 | 
| 26 | 112 | } | 
| 113 | ||
| 2 | 114 | void CPodcastListContainer::HandleResourceChange(TInt aType) | 
| 115 | {
 | |
| 116 | switch( aType ) | |
| 117 |     	{
 | |
| 118 | case KEikDynamicLayoutVariantSwitch: | |
| 119 | SetRect(iEikonEnv->EikAppUi()->ClientRect()); | |
| 120 | break; | |
| 121 | } | |
| 122 | } | |
| 123 | ||
| 124 | void CPodcastListContainer::ScrollToVisible() {
 | |
| 125 | 	if (iListbox != NULL) {
 | |
| 126 | iListbox->ScrollToMakeItemVisible(iListbox->CurrentItemIndex()); | |
| 127 | } | |
| 128 | } | |
| 129 | void CPodcastListContainer::SizeChanged() | |
| 130 | {
 | |
| 131 | 	DP2("CPodcastListContainer::SizeChanged(), width=%d, height=%d",Size().iWidth, Size().iHeight);
 | |
| 132 | if(iListbox != NULL) | |
| 133 | 	{
 | |
| 134 | iListbox->SetSize(Size()); | |
| 135 | } | |
| 136 | } | |
| 137 | ||
| 138 | CEikFormattedCellListBox* CPodcastListContainer::Listbox() | |
| 139 | {
 | |
| 140 | return iListbox; | |
| 141 | } | |
| 142 | ||
| 143 | ||
| 144 | CPodcastListContainer::~CPodcastListContainer() | |
| 145 | {
 | |
| 146 | delete iListbox; | |
| 147 | delete iBgContext; | |
| 148 | } | |
| 149 | ||
| 150 | ||
| 151 | void CPodcastListContainer::Draw(const TRect& aRect) const | |
| 152 | 	{
 | |
| 153 | CWindowGc& gc = SystemGc(); | |
| 154 | gc.SetBrushStyle(CGraphicsContext::ESolidBrush); | |
| 155 | MAknsControlContext* cc = AknsDrawUtils::ControlContext(this); | |
| 156 | MAknsSkinInstance* skin = AknsUtils::SkinInstance(); | |
| 157 | AknsDrawUtils::Background(skin, cc, (CCoeControl*) this, gc, aRect); | |
| 158 | } | |
| 159 | ||
| 160 | ||
| 161 | TTypeUid::Ptr CPodcastListContainer::MopSupplyObject( TTypeUid aId ) | |
| 162 |     {
 | |
| 163 | if (iBgContext ) | |
| 164 |     {
 | |
| 165 | return MAknsControlContext::SupplyMopObject( aId, iBgContext ); | |
| 166 | } | |
| 167 | return CCoeControl::MopSupplyObject(aId); | |
| 168 | } | |
| 169 | ||
| 170 | void CPodcastListContainer::HandlePointerEventL(const TPointerEvent& aPointerEvent) | |
| 171 | 	{
 | |
| 172 | if (iPointerListener) | |
| 173 | iPointerListener->PointerEventL(aPointerEvent); | |
| 174 | ||
| 26 | 175 | // Call base class HandlePointerEventL() if not a long tap | 
| 176 | if (!iLongTapDetected) | |
| 177 | 		{
 | |
| 178 | CCoeControl::HandlePointerEventL(aPointerEvent); | |
| 179 | } | |
| 2 | 180 | } | 
| 181 | ||
| 182 | ||
| 183 | void CPodcastListContainer::SetPointerListener(MPointerListener *aPointerListener) | |
| 184 | 	{
 | |
| 185 | iPointerListener = aPointerListener; | |
| 186 | } | |
| 187 | ||
| 188 | ||
| 189 | CPodcastListView::CPodcastListView() | |
| 190 | {
 | |
| 191 | } | |
| 192 | ||
| 193 | void CPodcastListView::ConstructL() | |
| 194 | {
 | |
| 195 | 	DP("CPodcastListView::ConstructL BEGIN");
 | |
| 196 | iListContainer = new (ELeave) CPodcastListContainer; | |
| 197 | iListContainer->ConstructL(ClientRect(), iListboxFlags); | |
| 198 | iListContainer->SetMopParent(this); | |
| 199 | iListContainer->ActivateL(); | |
| 200 | iItemArray = new (ELeave)CDesCArrayFlat(KDefaultGran); | |
| 201 | iListContainer->Listbox()->Model()->SetItemTextArray(iItemArray); | |
| 202 | iListContainer->Listbox()->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray); | |
| 203 | ||
| 204 | 	if (Toolbar()) {
 | |
| 205 | iToolbar = Toolbar(); | |
| 206 | iToolbar->SetToolbarObserver(this); | |
| 207 | } | |
| 208 | ||
| 209 | iLongTapDetector = CAknLongTapDetector::NewL(this); | |
| 210 | iListContainer->SetPointerListener(this); | |
| 211 | iListContainer->SetKeyEventListener(this); | |
| 23 
cf4b850bbffb
Added macro SYMBIAN1_UI that toggles between single and double tap UI
 teknolog parents: 
13diff
changeset | 212 | |
| 2 | 213 | 	DP("CPodcastListView::ConstructL END");
 | 
| 214 | } | |
| 215 | ||
| 216 | void CPodcastListView::HandleViewRectChange() | |
| 217 | {
 | |
| 218 | if ( iListContainer ) | |
| 219 | 	{
 | |
| 220 | iListContainer->SetRect( ClientRect() ); | |
| 221 | } | |
| 222 | } | |
| 223 | ||
| 224 | void CPodcastListView::HandleStatusPaneSizeChange() | |
| 225 | {
 | |
| 226 | 	DP2("CPodcastListView::HandleStatusPaneSizeChange(), width=%d, height=%d", ClientRect().Width(), ClientRect().Height());
 | |
| 227 | ||
| 228 | if ( iListContainer ) | |
| 229 | 	{
 | |
| 230 | iListContainer->SetRect( ClientRect() ); | |
| 231 | } | |
| 232 | ||
| 233 | } | |
| 234 | ||
| 235 | ||
| 236 | CPodcastListView::~CPodcastListView() | |
| 237 |     {
 | |
| 238 | if(iListContainer) | |
| 239 |     	{
 | |
| 240 | AppUi()->RemoveFromStack(iListContainer); | |
| 241 | delete iListContainer; | |
| 242 | } | |
| 243 | ||
| 244 | delete iItemArray; | |
| 245 | delete iLongTapDetector; | |
| 246 | iItemIdArray.Close(); | |
| 247 | } | |
| 248 | ||
| 249 | ||
| 250 | void CPodcastListView::DoActivateL(const TVwsViewId& /*aPrevViewId */, | |
| 251 | TUid /*aCustomMessageId */, | |
| 252 | const TDesC8& /* aCustomMessage */) | |
| 253 | {	
 | |
| 254 | 	DP("CPodcastListView::DoActivateL() BEGIN");
 | |
| 255 | ||
| 256 | if(iListContainer) | |
| 257 | 	{
 | |
| 258 | iListContainer->SetSize(ClientRect().Size()); | |
| 259 | iListContainer->SetMopParent(this); | |
| 260 | ||
| 261 | AppUi()->AddToStackL(*this, iListContainer); | |
| 262 | iListContainer->MakeVisible(ETrue); | |
| 263 | } | |
| 49 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 264 | |
| 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 265 | CAknTitlePane* titlePane = static_cast<CAknTitlePane*> | 
| 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 266 | ( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); | 
| 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 267 | titlePane->SetTextToDefaultL(); | 
| 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 268 | |
| 2 | 269 | 	DP("CPodcastListView::DoActivateL() END");
 | 
| 270 | ||
| 271 | } | |
| 272 | ||
| 273 | void CPodcastListView::DoDeactivate() | |
| 274 | {
 | |
| 275 | 	DP("CPodcastListView::DoDeactivate() BEGIN");
 | |
| 276 | if ( iListContainer ) | |
| 277 | 	{
 | |
| 278 | AppUi()->RemoveFromViewStack( *this, iListContainer); | |
| 279 | iListContainer->MakeVisible(EFalse); | |
| 280 | } | |
| 281 | 	DP("CPodcastListView::DoDeactivate() END");
 | |
| 282 | } | |
| 283 | ||
| 284 | /** | |
| 285 | * Command handling function intended for overriding by sub classes. | |
| 286 | * Default implementation is empty. | |
| 287 | * @param aCommand ID of the command to respond to. | |
| 288 | */ | |
| 289 | void CPodcastListView::HandleCommandL(TInt aCommand) | |
| 290 | {
 | |
| 291 | 	DP1("CPodcastListView::HandleCommandL=%d", aCommand);
 | |
| 292 | switch(aCommand) | |
| 293 | 	{
 | |
| 294 | case EAknSoftkeyExit: | |
| 295 | case EEikCmdExit: | |
| 296 | 		{
 | |
| 297 | AppUi()->Exit(); | |
| 298 | break; | |
| 299 | } | |
| 300 | case EAknSoftkeyBack: | |
| 301 | 		{
 | |
| 302 | AppUi()->ActivateViewL(iPreviousView); | |
| 49 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 303 | ((CPodcastAppUi*)AppUi())->SetActiveTab(KTabIdFeeds); | 
| 2 | 304 | } | 
| 49 
43e204e6ae2e
Fix for accidental merge regressions. Text fixes for tool tip and settings.
 teknolog parents: 
48diff
changeset | 305 | break; | 
| 2 | 306 | case EPodcastSettings: | 
| 307 | AppUi()->ActivateLocalViewL(KUidPodcastSettingsViewID); | |
| 308 | break; | |
| 309 | case EPodcastAbout: | |
| 310 | RunAboutDialogL(); | |
| 311 | break; | |
| 312 | default: | |
| 313 | AppUi()->HandleCommandL(aCommand); | |
| 314 | } | |
| 315 | } | |
| 316 | ||
| 48 | 317 | TBool CPodcastListView::IsVisible() | 
| 318 | 	{
 | |
| 319 | return iListContainer->IsVisible(); | |
| 320 | } | |
| 2 | 321 | |
| 322 | void CPodcastListView::RunAboutDialogL() | |
| 323 | {
 | |
| 324 | CAknNoteDialog* dlg = new(ELeave) CAknNoteDialog(); | |
| 86 | 325 | HBufC *aboutTextTemplate = iEikonEnv->AllocReadResourceLC(R_ABOUT_TEXT); | 
| 326 | TBuf<255> aboutText; | |
| 327 | aboutText.Format(*aboutTextTemplate, BUILD_NO); | |
| 328 | dlg->SetTextL(aboutText); | |
| 329 | CleanupStack::PopAndDestroy(aboutTextTemplate); | |
| 2 | 330 | dlg->ExecuteLD(R_DLG_ABOUT); | 
| 331 | } | |
| 332 | ||
| 333 | void CPodcastListView::SetEmptyTextL(TInt aResourceId) | |
| 334 | 	{
 | |
| 335 | HBufC* emptyText = iEikonEnv->AllocReadResourceLC(aResourceId); | |
| 336 | iListContainer->Listbox()->View()->SetListEmptyTextL(*emptyText); | |
| 337 | CleanupStack::PopAndDestroy(emptyText); | |
| 338 | } | |
| 339 | ||
| 35 
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
 Brendan Donegan <brendand@symbian.org> parents: 
27diff
changeset | 340 | void CPodcastListView::ShowOkMessageL(TDesC &aText) | 
| 2 | 341 | 	{
 | 
| 342 | CAknNoteDialog* dlg= new(ELeave) CAknNoteDialog(); | |
| 343 | CleanupStack::PushL(dlg); | |
| 344 | dlg->SetTextL(aText); | |
| 345 | CleanupStack::Pop(dlg); | |
| 346 | dlg->ExecuteLD(R_MESSAGEDLG_OK); | |
| 347 | } | |
| 348 | ||
| 35 
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
 Brendan Donegan <brendand@symbian.org> parents: 
27diff
changeset | 349 | void CPodcastListView::ShowErrorMessageL(TDesC &aText) | 
| 2 | 350 | 	{
 | 
| 351 | CAknNoteDialog* dlg= new(ELeave) CAknNoteDialog(); | |
| 352 | CleanupStack::PushL(dlg); | |
| 353 | dlg->SetTextL(aText); | |
| 354 | CleanupStack::Pop(dlg); | |
| 355 | dlg->ExecuteLD(R_ERRORDLG_OK); | |
| 356 | } | |
| 357 | ||
| 35 
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
 Brendan Donegan <brendand@symbian.org> parents: 
27diff
changeset | 358 | TInt CPodcastListView::ShowQueryMessageL(TDesC &aText) | 
| 2 | 359 | 	{
 | 
| 360 | CAknQueryDialog* dlg= new(ELeave) CAknQueryDialog(); | |
| 361 | ||
| 362 | CleanupStack::PushL(dlg); | |
| 363 | dlg->SetPromptL(aText); | |
| 364 | CleanupStack::Pop(dlg); | |
| 365 | return dlg->ExecuteLD(R_QUERYDLG); | |
| 366 | } | |
| 367 | ||
| 368 | void CPodcastListView::CloseToolbarExtension() | |
| 369 | {
 | |
| 370 | CAknToolbar* toolbar = Toolbar(); | |
| 371 | 	if (toolbar) {
 | |
| 372 | CAknToolbarExtension* toolbarExtension = toolbar->ToolbarExtension(); | |
| 373 | 		if (toolbarExtension) {
 | |
| 374 | toolbarExtension->SetShown( EFalse ); | |
| 375 | } | |
| 376 | } | |
| 377 | } | |
| 378 | ||
| 379 | void CPodcastListView::PointerEventL(const TPointerEvent& aPointerEvent) | |
| 380 | 	{
 | |
| 381 | 	//DP1("CPodcastListView::PointerEventL, iType=%d", aPointerEvent.iType);
 | |
| 382 | // Pass the pointer event to Long tap detector component | |
| 383 | iLongTapDetector->PointerEventL(aPointerEvent); | |
| 384 | } | |
| 385 | ||
| 386 | ||
| 387 | void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */) | |
| 388 | {
 | |
| 389 | 	DP("CPodcastListView::HandleLongTapEventL BEGIN");
 | |
| 145 
cc0182a5da39
Fix for Bug 2604 and bulk of the work towards implementing Bug 2737
 Brendan Donegan <brendand@symbian.org> parents: 
86diff
changeset | 390 | iListContainer->SetLongTapDetectedL(ETrue); | 
| 
cc0182a5da39
Fix for Bug 2604 and bulk of the work towards implementing Bug 2737
 Brendan Donegan <brendand@symbian.org> parents: 
86diff
changeset | 391 | |
| 4 
be243543a361
Added primitive detection if long tap is on a listbox item or not. Could use a better version of this going forward.
 teknolog parents: 
2diff
changeset | 392 | const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1 | 
| 
be243543a361
Added primitive detection if long tap is on a listbox item or not. Could use a better version of this going forward.
 teknolog parents: 
2diff
changeset | 393 | TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems( | 
| 
be243543a361
Added primitive detection if long tap is on a listbox item or not. Could use a better version of this going forward.
 teknolog parents: 
2diff
changeset | 394 | iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; | 
| 
be243543a361
Added primitive detection if long tap is on a listbox item or not. Could use a better version of this going forward.
 teknolog parents: 
2diff
changeset | 395 | |
| 
be243543a361
Added primitive detection if long tap is on a listbox item or not. Could use a better version of this going forward.
 teknolog parents: 
2diff
changeset | 396 | if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) | 
| 2 | 397 |     {
 | 
| 398 | iStylusPopupMenu->ShowMenu(); | |
| 399 | iStylusPopupMenu->SetPosition(aPenEventLocation); | |
| 400 | } | |
| 57 
31e34b8e2878
Fix for regression in popup menu fix for queue view
 teknolog parents: 
50diff
changeset | 401 | |
| 2 | 402 | 	DP("CPodcastListView::HandleLongTapEventL END");
 | 
| 403 | } | |
| 404 | ||
| 405 | ||
| 406 | void CPodcastListView::DynInitToolbarL (TInt /*aResourceId*/, CAknToolbar * /*aToolbar*/) | |
| 407 | 	{
 | |
| 408 | } | |
| 409 | ||
| 410 | ||
| 411 | void CPodcastListView::OfferToolbarEventL(TInt aCommand) | |
| 412 | 	{
 | |
| 413 | HandleCommandL(aCommand); | |
| 414 | } | |
| 415 | ||
| 416 | void CPodcastListView::ShowWaitDialogL(TDesC &aWaitText) | |
| 417 | 	{
 | |
| 418 | 	DP("CPodcastListView::ShowWaitDialogL BEGIN");
 | |
| 419 | ||
| 420 | 	if (iWaitDialog) {
 | |
| 421 | User::Leave(KErrInUse); | |
| 422 | } | |
| 423 | ||
| 424 | iWaitDialog=new(ELeave) CAknWaitDialog(reinterpret_cast<CEikDialog**>(&iWaitDialog), EFalse); | |
| 425 | iWaitDialog->SetCallback(this); | |
| 426 | iWaitDialog->ExecuteLD(R_WAITDLG); | |
| 427 | iWaitDialog->SetTextL(aWaitText); | |
| 428 | 	DP("CPodcastListView::ShowWaitDialogL END");
 | |
| 429 | } | |
| 430 | ||
| 431 | TKeyResponse CPodcastListView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType) | |
| 432 | 	{
 | |
| 433 | if (aType==EEventKey) | |
| 434 | 		{
 | |
| 435 | switch (aKeyEvent.iCode) | |
| 436 | 			{
 | |
| 437 | case EKeyRightArrow: | |
| 35 
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
 Brendan Donegan <brendand@symbian.org> parents: 
27diff
changeset | 438 | ((CPodcastAppUi*)AppUi())->TabRightL(); | 
| 2 | 439 | return EKeyWasConsumed; | 
| 440 | case EKeyLeftArrow: | |
| 35 
66c5303f3610
A ton of CodeScanner fixes (high issues) - but not all
 Brendan Donegan <brendand@symbian.org> parents: 
27diff
changeset | 441 | ((CPodcastAppUi*)AppUi())->TabLeftL(); | 
| 2 | 442 | return EKeyWasConsumed; | 
| 443 | } | |
| 444 | } | |
| 445 | return EKeyWasNotConsumed; | |
| 446 | } | |
| 447 |