57
|
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: Declares view for GSVideoPlugin application.*
|
|
15 |
*/
|
|
16 |
|
|
17 |
|
|
18 |
// Version : %version: 4 %
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
#ifndef GSMEDIAPLAYERSTREAMINGVIEW_H
|
|
23 |
#define GSMEDIAPLAYERSTREAMINGVIEW_H
|
|
24 |
|
|
25 |
// INCLUDES
|
|
26 |
#include <aknview.h>
|
|
27 |
#include <eiklbo.h>
|
|
28 |
#include <gstabbedview.h>
|
|
29 |
|
|
30 |
// CLASS DECLARATION
|
|
31 |
class CMPSettingsModelForROP;
|
|
32 |
class CMPSettingsBaseContainer;
|
|
33 |
class MGSTabbedView;
|
|
34 |
class CGSTabHelper;
|
|
35 |
|
|
36 |
/**
|
|
37 |
* CGSMediaPlayerStreamingView class.
|
|
38 |
*
|
|
39 |
* @since 3.1
|
|
40 |
*/
|
|
41 |
class CGSMediaPlayerStreamingView : public CAknView,
|
|
42 |
public MGSTabbedView
|
|
43 |
{
|
|
44 |
public: // Constructors and destructor
|
|
45 |
|
|
46 |
enum KGSViewPanicCodes
|
|
47 |
{
|
|
48 |
EGSViewPanicNullPtr = 1
|
|
49 |
};
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Two-phased constructor.
|
|
53 |
*/
|
|
54 |
static CGSMediaPlayerStreamingView* NewLC(CMPSettingsModelForROP* aModel, CArrayPtrFlat<MGSTabbedView>* aTabViewArray );
|
|
55 |
|
|
56 |
/**
|
|
57 |
* Destructor.
|
|
58 |
*/
|
|
59 |
virtual ~CGSMediaPlayerStreamingView();
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Handle screen size change.
|
|
63 |
* @since 3.1
|
|
64 |
*/
|
|
65 |
void HandleClientRectChange();
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Creates new icon for tab. Ownership is transferred to client.
|
|
69 |
* @since 3.1
|
|
70 |
*/
|
|
71 |
CGulIcon* CreateTabIconL();
|
|
72 |
|
|
73 |
/**
|
|
74 |
* This function is used to set the current item in the listbox.
|
|
75 |
* @since 2.0
|
|
76 |
* @param aIndex Current item.
|
|
77 |
*/
|
|
78 |
void SetCurrentItem(TInt aIndex);
|
|
79 |
|
|
80 |
private: // Functions from base classes
|
|
81 |
/**
|
|
82 |
* From CAknView returns UID of view
|
|
83 |
* @return TUid uid of the view
|
|
84 |
*/
|
|
85 |
TUid Id() const;
|
|
86 |
|
|
87 |
/**
|
|
88 |
* From CAknView Handle commands
|
|
89 |
* @param aCommand command to be handled
|
|
90 |
*/
|
|
91 |
void HandleCommandL( TInt aCommand );
|
|
92 |
|
|
93 |
/**
|
|
94 |
* From CAknView Activate this view
|
|
95 |
* @param aPrevViewId
|
|
96 |
* @param aCustomMessageId
|
|
97 |
* @param aCustomMessage
|
|
98 |
*/
|
|
99 |
void DoActivateL( const TVwsViewId& aPrevViewId,
|
|
100 |
TUid aCustomMessageId,
|
|
101 |
const TDesC8& aCustomMessage );
|
|
102 |
|
|
103 |
/**
|
|
104 |
* From CAknView Deactivate this view
|
|
105 |
*/
|
|
106 |
void DoDeactivate();
|
|
107 |
|
|
108 |
/**
|
|
109 |
* From MEikMenuObserver Dynamically customize menu items
|
|
110 |
* @param aResourceId Menu pane resource ID
|
|
111 |
* @param aMenuPane Menu pane pointer
|
|
112 |
*/
|
|
113 |
void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Creates new container.
|
|
117 |
* @since 3.1
|
|
118 |
*/
|
|
119 |
void NewContainerL();
|
|
120 |
|
|
121 |
/**
|
|
122 |
* Get CMPSettingsBaseContainer's container.
|
|
123 |
* @since 3.1
|
|
124 |
*/
|
|
125 |
CMPSettingsBaseContainer* Container();
|
|
126 |
|
|
127 |
/**
|
|
128 |
* Creates new container.
|
|
129 |
* @since 3.1
|
|
130 |
*/
|
|
131 |
void CreateContainerL();
|
|
132 |
|
|
133 |
protected:
|
|
134 |
|
|
135 |
/**
|
|
136 |
* Called at the end of DoActivateL.
|
|
137 |
* @since 2.0
|
|
138 |
*/
|
|
139 |
void DynInitContainerL();
|
|
140 |
|
|
141 |
private:
|
|
142 |
/**
|
|
143 |
* C++ default constructor.
|
|
144 |
*/
|
|
145 |
CGSMediaPlayerStreamingView( CMPSettingsModelForROP* aModel,
|
|
146 |
CArrayPtrFlat<MGSTabbedView>* aTabViewArray);
|
|
147 |
|
|
148 |
/**
|
|
149 |
* Symbian OS 2nd phase constructor.
|
|
150 |
* @since 2.1
|
|
151 |
*/
|
|
152 |
void ConstructL( CArrayPtrFlat<MGSTabbedView>* aTabViewArray );
|
|
153 |
|
|
154 |
private: // Data
|
|
155 |
|
|
156 |
CMPSettingsModelForROP* iModel;
|
|
157 |
CMPSettingsBaseContainer* iContainer; // owned
|
|
158 |
CGSTabHelper* iTabHelper; // owned
|
|
159 |
|
|
160 |
TInt iCurrentItem;
|
|
161 |
TInt iTopItemIndex;
|
|
162 |
};
|
|
163 |
|
|
164 |
#endif //GSMEDIAPLAYERSTREAMINGVIEW_H
|
|
165 |
|
|
166 |
// End of File
|