author | Sebastian Brannstrom <sebastianb@symbian.org> |
Thu, 21 Oct 2010 21:36:03 +0100 | |
branch | 3rded |
changeset 262 | 81bb9210fd4c |
parent 186 | 32aedca70582 |
child 343 | 9c56bf585696 |
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 "ShowEngine.h" |
|
26 |
#include "FeedEngine.h" |
|
27 |
#include "PodcastModel.h" |
|
28 |
#include "Podcast.hrh" |
|
60 | 29 |
#include "PodcastShowsView.h" |
2 | 30 |
|
60 | 31 |
class CPodcastQueueView : public CPodcastShowsView |
2 | 32 |
{ |
33 |
public: |
|
34 |
static CPodcastQueueView* NewL(CPodcastModel& aPodcastModel); |
|
35 |
static CPodcastQueueView* NewLC(CPodcastModel& aPodcastModel); |
|
36 |
~CPodcastQueueView(); |
|
37 |
protected: |
|
38 |
void ConstructL(); |
|
39 |
CPodcastQueueView(CPodcastModel& aPodcastModel); |
|
40 |
||
41 |
/** |
|
42 |
* Returns views id, intended for overriding by sub classes. |
|
43 |
* @return id for this view. |
|
44 |
*/ |
|
45 |
TUid Id() const; |
|
46 |
||
47 |
/** |
|
48 |
* Handles a view activation and passes the message of type |
|
49 |
* @c aCustomMessageId. This function is intended for overriding by |
|
50 |
* sub classes. This function is called by @c AknViewActivatedL(). |
|
51 |
* @param aPrevViewId Specifies the view previously active. |
|
52 |
* @param aCustomMessageId Specifies the message type. |
|
53 |
* @param aCustomMessage The activation message. |
|
54 |
*/ |
|
55 |
void DoActivateL(const TVwsViewId& aPrevViewId, |
|
56 |
TUid aCustomMessageId, |
|
57 |
const TDesC8& aCustomMessage); |
|
58 |
||
59 |
/** |
|
60 |
* View deactivation function intended for overriding by sub classes. |
|
61 |
* This function is called by @c AknViewDeactivated(). |
|
62 |
*/ |
|
63 |
void DoDeactivate(); |
|
64 |
||
65 |
void UpdateListboxItemsL(); |
|
66 |
||
60 | 67 |
// From MEikListBoxObserverClass |
2 | 68 |
void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); |
69 |
||
70 |
/** |
|
71 |
* Command handling function intended for overriding by sub classes. |
|
72 |
* Default implementation is empty. |
|
73 |
* @param aCommand ID of the command to respond to. |
|
74 |
*/ |
|
75 |
void HandleCommandL(TInt aCommand); |
|
76 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
77 |
void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
186
32aedca70582
Merged queue view fix from 5th; merged Spanish language support; Updated SIS 0.90(4).
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
175
diff
changeset
|
78 |
|
32aedca70582
Merged queue view fix from 5th; merged Spanish language support; Updated SIS 0.90(4).
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
175
diff
changeset
|
79 |
private: |
32aedca70582
Merged queue view fix from 5th; merged Spanish language support; Updated SIS 0.90(4).
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
175
diff
changeset
|
80 |
TBool iDontUpdateList; |
32aedca70582
Merged queue view fix from 5th; merged Spanish language support; Updated SIS 0.90(4).
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
175
diff
changeset
|
81 |
|
2 | 82 |
}; |
83 |
||
60 | 84 |
#endif |
2 | 85 |
|
86 |