application/src/PodcastSearchView.cpp
branch3rded
changeset 175 cd124c4eb6b9
parent 138 6c8c5122867a
child 176 1c8b56cb6409
equal deleted inserted replaced
174:982b1ad423f4 175:cd124c4eb6b9
    34 #include <caknmemoryselectiondialog.h> 
    34 #include <caknmemoryselectiondialog.h> 
    35 #include <caknfilenamepromptdialog.h> 
    35 #include <caknfilenamepromptdialog.h> 
    36 #include <BAUTILS.H> 
    36 #include <BAUTILS.H> 
    37 #include <pathinfo.h> 
    37 #include <pathinfo.h> 
    38 #include <f32file.h>
    38 #include <f32file.h>
    39 #include <akntoolbarextension.h>
       
    40 
    39 
    41 const TInt KMaxFeedNameLength = 100;
    40 const TInt KMaxFeedNameLength = 100;
    42 #define KMaxMessageLength 200
    41 #define KMaxMessageLength 200
    43 #define KMaxTitleLength 100
    42 #define KMaxTitleLength 100
    44 _LIT(KSearchResultFormat, "%d\t%S\t%S");
    43 _LIT(KSearchResultFormat, "%d\t%S\t%S");
    92 }
    91 }
    93     
    92     
    94 CPodcastSearchView::~CPodcastSearchView()
    93 CPodcastSearchView::~CPodcastSearchView()
    95     {
    94     {
    96 	iPodcastModel.FeedEngine().RemoveObserver(this);
    95 	iPodcastModel.FeedEngine().RemoveObserver(this);
    97  
    96      }
    98     if(iLongTapDetector)
       
    99         delete iLongTapDetector, iLongTapDetector = NULL;
       
   100 
       
   101     if(iStylusPopupMenu)
       
   102         delete iStylusPopupMenu, iStylusPopupMenu = NULL;
       
   103 
       
   104     }
       
   105 
    97 
   106 TUid CPodcastSearchView::Id() const
    98 TUid CPodcastSearchView::Id() const
   107 {
    99 {
   108 	return KUidPodcastSearchViewID;
   100 	return KUidPodcastSearchViewID;
   109 }
   101 }
   246 			break;
   238 			break;
   247 		default:
   239 		default:
   248 			CPodcastListView::HandleCommandL(aCommand);
   240 			CPodcastListView::HandleCommandL(aCommand);
   249 			break;
   241 			break;
   250 		}
   242 		}
   251 		UpdateToolbar();
       
   252 	}
   243 	}
   253 
   244 
   254 void CPodcastSearchView::OpmlParsingComplete(TInt /*aError*/, TUint /*aNumFeedsImported*/)
   245 void CPodcastSearchView::OpmlParsingComplete(TInt /*aError*/, TUint /*aNumFeedsImported*/)
   255 	{
   246 	{
   256 	DP("CPodcastSearchView::OpmlParsingComplete BEGIN");
   247 	DP("CPodcastSearchView::OpmlParsingComplete BEGIN");