author | Sebastian Brannstrom <sebastianb@symbian.org> |
Wed, 07 Jul 2010 23:27:49 +0100 | |
branch | symbian1 |
changeset 170 | f42c9de433f2 |
parent 145 | cc0182a5da39 |
child 175 | cd124c4eb6b9 |
child 183 | 913f0f0e98fc |
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" |
|
60 | 31 |
#include "PodcastShowsView.h" |
2 | 32 |
|
60 | 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 |
||
60 | 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); |
|
145
cc0182a5da39
Fix for Bug 2604 and bulk of the work towards implementing Bug 2737
Brendan Donegan <brendand@symbian.org>
parents:
60
diff
changeset
|
81 |
|
cc0182a5da39
Fix for Bug 2604 and bulk of the work towards implementing Bug 2737
Brendan Donegan <brendand@symbian.org>
parents:
60
diff
changeset
|
82 |
virtual void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation); |
2 | 83 |
}; |
84 |
||
60 | 85 |
#endif |
2 | 86 |
|
87 |