| author | teknolog | 
| Sat, 24 Apr 2010 22:26:43 +0100 | |
| changeset 121 | 1cc7501102a8 | 
| parent 116 | a2e43aa1ad11 | 
| child 151 | 17da6d3a5a4b | 
| 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 | #ifndef PODCASTQUEUEVIEWH | |
| 20 | #define PODCASTQUEUEVIEWH | |
| 21 | ||
| 22 | #include <aknview.h> | |
| 23 | #include <aknlists.h> | |
| 24 | #include <eiklbo.h> | |
| 25 | #include <AknToolbarObserver.h> | |
| 26 | #include <AknToolbar.h> | |
| 27 | #include "ShowEngine.h" | |
| 28 | #include "FeedEngine.h" | |
| 29 | #include "PodcastModel.h" | |
| 30 | #include "Podcast.hrh" | |
| 121 
1cc7501102a8
CPodcastQueueView now inherits CPodcastShowsView instead of CPodcastListView. This removes the duplicated code between the two classes.
 teknolog parents: 
116diff
changeset | 31 | #include "PodcastShowsView.h" | 
| 2 | 32 | |
| 121 
1cc7501102a8
CPodcastQueueView now inherits CPodcastShowsView instead of CPodcastListView. This removes the duplicated code between the two classes.
 teknolog parents: 
116diff
changeset | 33 | class CPodcastQueueView : public CPodcastShowsView | 
| 2 | 34 | 	{
 | 
| 35 | public: | |
| 36 | static CPodcastQueueView* NewL(CPodcastModel& aPodcastModel); | |
| 37 | static CPodcastQueueView* NewLC(CPodcastModel& aPodcastModel); | |
| 38 | ~CPodcastQueueView(); | |
| 13 | 39 | void UpdateToolbar(TBool aVisible=ETrue); | 
| 2 | 40 | protected: | 
| 41 | void ConstructL(); | |
| 42 | CPodcastQueueView(CPodcastModel& aPodcastModel); | |
| 43 | ||
| 44 | /** | |
| 45 | * Returns views id, intended for overriding by sub classes. | |
| 46 | * @return id for this view. | |
| 47 | */ | |
| 48 | TUid Id() const; | |
| 49 | ||
| 50 | /** | |
| 51 | * Handles a view activation and passes the message of type | |
| 52 | * @c aCustomMessageId. This function is intended for overriding by | |
| 53 | * sub classes. This function is called by @c AknViewActivatedL(). | |
| 54 | * @param aPrevViewId Specifies the view previously active. | |
| 55 | * @param aCustomMessageId Specifies the message type. | |
| 56 | * @param aCustomMessage The activation message. | |
| 57 | */ | |
| 58 | void DoActivateL(const TVwsViewId& aPrevViewId, | |
| 59 | TUid aCustomMessageId, | |
| 60 | const TDesC8& aCustomMessage); | |
| 61 | ||
| 62 | /** | |
| 63 | * View deactivation function intended for overriding by sub classes. | |
| 64 | * This function is called by @c AknViewDeactivated(). | |
| 65 | */ | |
| 66 | void DoDeactivate(); | |
| 67 | ||
| 68 | void UpdateListboxItemsL(); | |
| 69 | ||
| 121 
1cc7501102a8
CPodcastQueueView now inherits CPodcastShowsView instead of CPodcastListView. This removes the duplicated code between the two classes.
 teknolog parents: 
116diff
changeset | 70 | // From MEikListBoxObserverClass | 
| 2 | 71 | void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); | 
| 72 | ||
| 73 | /** | |
| 74 | * Command handling function intended for overriding by sub classes. | |
| 75 | * Default implementation is empty. | |
| 76 | * @param aCommand ID of the command to respond to. | |
| 77 | */ | |
| 78 | void HandleCommandL(TInt aCommand); | |
| 79 | TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); | |
| 80 | void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); | |
| 81 | }; | |
| 82 | ||
| 116 | 83 | #endif | 
| 2 | 84 | |
| 85 |