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 PODCASTSETTINGSVIEWH
|
|
20 |
#define PODCASTSETTINGSVIEWH
|
|
21 |
|
|
22 |
#include <aknview.h>
|
|
23 |
#include <aknsettingitemlist.h>
|
|
24 |
#include "ShowEngineObserver.h"
|
|
25 |
#include "PodcastModel.h"
|
|
26 |
|
|
27 |
class CPodcastSettingsContainer;
|
|
28 |
class CPodcastSettingItemList;
|
|
29 |
|
|
30 |
class CPodcastSettingsView : public CAknView
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
static CPodcastSettingsView* NewL(CPodcastModel& aPodcastModel);
|
|
34 |
static CPodcastSettingsView* NewLC(CPodcastModel& aPodcastModel);
|
|
35 |
~CPodcastSettingsView();
|
|
36 |
protected:
|
|
37 |
void ConstructL();
|
|
38 |
CPodcastSettingsView(CPodcastModel& aPodcastModel);
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Returns views id, intended for overriding by sub classes.
|
|
42 |
* @return id for this view.
|
|
43 |
*/
|
|
44 |
TUid Id() const;
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Handles a view activation and passes the message of type
|
|
48 |
* @c aCustomMessageId. This function is intended for overriding by
|
|
49 |
* sub classes. This function is called by @c AknViewActivatedL().
|
|
50 |
* @param aPrevViewId Specifies the view previously active.
|
|
51 |
* @param aCustomMessageId Specifies the message type.
|
|
52 |
* @param aCustomMessage The activation message.
|
|
53 |
*/
|
|
54 |
void DoActivateL(const TVwsViewId& aPrevViewId,
|
|
55 |
TUid aCustomMessageId,
|
|
56 |
const TDesC8& aCustomMessage);
|
|
57 |
|
|
58 |
/**
|
|
59 |
* View deactivation function intended for overriding by sub classes.
|
|
60 |
* This function is called by @c AknViewDeactivated().
|
|
61 |
*/
|
|
62 |
void DoDeactivate();
|
|
63 |
|
|
64 |
/**
|
|
65 |
* Command handling function intended for overriding by sub classes.
|
|
66 |
* Default implementation is empty.
|
|
67 |
* @param aCommand ID of the command to respond to.
|
|
68 |
*/
|
|
69 |
void HandleCommandL(TInt aCommand);
|
|
70 |
void HandleStatusPaneSizeChange();
|
|
71 |
|
|
72 |
private:
|
|
73 |
//CPodcastSettingsContainer* iSettingsContainer;
|
|
74 |
CPodcastModel& iPodcastModel;
|
|
75 |
/** Previous activated view */
|
|
76 |
TVwsViewId iPreviousView;
|
|
77 |
TInt iAutoDownloadValue;
|
|
78 |
CAknNavigationDecorator* iNaviDecorator;
|
|
79 |
CAknNavigationControlContainer* iNaviPane;
|
|
80 |
CPodcastSettingItemList * iListbox;
|
|
81 |
};
|
|
82 |
|
|
83 |
#endif // PODCASTSETTINGSVIEWH
|
|
84 |
|
|
85 |
|