author | Sebastian Brannstrom <sebastianb@symbian.org> |
Thu, 21 Oct 2010 18:52:18 +0100 | |
branch | RCL_3 |
changeset 264 | 6dfdf1d9da5c |
parent 243 | 44d205147a83 |
child 367 | 4b75876aa85a |
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:
116
diff
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:
116
diff
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:
116
diff
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); |
|
151 | 81 |
|
185
92eadaba67e6
Fix so listbox position is kept when removing a show from queue
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
151
diff
changeset
|
82 |
private: |
92eadaba67e6
Fix so listbox position is kept when removing a show from queue
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
151
diff
changeset
|
83 |
TBool iDontUpdateList; |
2 | 84 |
}; |
85 |
||
116 | 86 |
#endif |
2 | 87 |
|
88 |