71
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Base class for Media Settings views.*
|
|
15 |
*/
|
|
16 |
|
|
17 |
|
|
18 |
// Version : %version: 2 %
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
#ifndef MPSETTINGSBASEVIEW_H
|
|
24 |
#define MPSETTINGSBASEVIEW_H
|
|
25 |
|
|
26 |
// INCLUDES
|
|
27 |
#include <aknview.h>
|
|
28 |
|
|
29 |
// FORWARD DECLARATIONS
|
|
30 |
class CMPSettingsBaseContainer;
|
|
31 |
class CAknNavigationDecorator;
|
|
32 |
class CMPSettingsAppUi;
|
|
33 |
class MMPSettingsNaviPaneController;
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Base class for Media Settings views.
|
|
39 |
*
|
|
40 |
* @lib MPSettBase.dll
|
|
41 |
* @since 2.0
|
|
42 |
*/
|
|
43 |
class CMPSettingsBaseView : public CAknView
|
|
44 |
{
|
|
45 |
public: // New data types
|
|
46 |
enum KMPViewPanicCodes
|
|
47 |
{
|
|
48 |
EMPViewPanicNullPtr = 1
|
|
49 |
};
|
|
50 |
|
|
51 |
public: // Constructors and destructor
|
|
52 |
|
|
53 |
/**
|
|
54 |
* C++ default constructor
|
|
55 |
*/
|
|
56 |
IMPORT_C CMPSettingsBaseView();
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Destructor.
|
|
60 |
*/
|
|
61 |
IMPORT_C virtual ~CMPSettingsBaseView();
|
|
62 |
|
|
63 |
public: // from CAknView
|
|
64 |
|
|
65 |
/**
|
|
66 |
* Handles client rect change.
|
|
67 |
*/
|
|
68 |
IMPORT_C void HandleClientRectChange();
|
|
69 |
|
|
70 |
public: // New
|
|
71 |
|
|
72 |
/**
|
|
73 |
* This function is used to set the current item in the listbox.
|
|
74 |
* @since 2.0
|
|
75 |
* @param aIndex Current item.
|
|
76 |
*/
|
|
77 |
IMPORT_C virtual void SetCurrentItem(TInt aIndex);
|
|
78 |
|
|
79 |
protected: // Functions from base classes
|
|
80 |
|
|
81 |
/**
|
|
82 |
* From CAknView
|
|
83 |
*/
|
|
84 |
IMPORT_C void DoActivateL(const TVwsViewId& aPrevViewId,
|
|
85 |
TUid aCustomMessageId,
|
|
86 |
const TDesC8& aCustomMessage);
|
|
87 |
|
|
88 |
/**
|
|
89 |
* From CAknView
|
|
90 |
*/
|
|
91 |
IMPORT_C void DoDeactivate();
|
|
92 |
|
|
93 |
/**
|
|
94 |
* From MEikMenuObserver
|
|
95 |
*/
|
|
96 |
IMPORT_C void DynInitMenuPaneL(TInt aResourceId,
|
|
97 |
CEikMenuPane* aMenuPane);
|
|
98 |
|
|
99 |
protected: // New
|
|
100 |
|
|
101 |
/**
|
|
102 |
* Sets the correct navi pane for the view (eg. tabs, empty,
|
|
103 |
* string etc.)
|
|
104 |
* @since 2.0
|
|
105 |
*/
|
|
106 |
IMPORT_C virtual void SetNaviPaneL();
|
|
107 |
|
|
108 |
/**
|
|
109 |
* Called at the end of DoActivateL.
|
|
110 |
* @since 2.0
|
|
111 |
*/
|
|
112 |
IMPORT_C virtual void DynInitContainerL();
|
|
113 |
|
|
114 |
/**
|
|
115 |
* Creates new view specific container class. Pure virtual.
|
|
116 |
* @since 2.0
|
|
117 |
*/
|
|
118 |
virtual CMPSettingsBaseContainer* NewContainerL() = 0;
|
|
119 |
|
|
120 |
/**
|
|
121 |
* Adds given resource text as MSK to CBA.
|
|
122 |
*
|
|
123 |
* @param aResourceId middle softkey label.
|
|
124 |
* @param aCommandId command that should be performed when MSK
|
|
125 |
* is pressed.
|
|
126 |
* @since S60 v3.2
|
|
127 |
*/
|
|
128 |
IMPORT_C virtual void SetMiddleSoftKeyLabelL(
|
|
129 |
const TInt aResourceId,
|
|
130 |
const TInt aCommandId );
|
|
131 |
|
|
132 |
protected: // Data
|
|
133 |
CMPSettingsBaseContainer* iContainer;
|
|
134 |
CAknNavigationDecorator* iNaviPaneContext;
|
|
135 |
MMPSettingsNaviPaneController* iNaviCntrl;
|
|
136 |
|
|
137 |
TInt iCurrentItem;
|
|
138 |
TInt iTopItemIndex;
|
|
139 |
};
|
|
140 |
|
|
141 |
#endif // MPSETTINGSBASEVIEW_H
|
|
142 |
|