57
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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 "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: MPX Video PDL playback view
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
// Version : %version: 10 %
|
|
20 |
|
|
21 |
|
|
22 |
// This file defines the API for VideoPlaybackView.dll
|
|
23 |
|
|
24 |
#ifndef __VIDEOPDLPLAYBACKVIEW_H__
|
|
25 |
#define __VIDEOPDLPLAYBACKVIEW_H__
|
|
26 |
|
|
27 |
// Include Files
|
|
28 |
#include <mpxplaybackcommanddefs.h>
|
|
29 |
|
|
30 |
#include "mpxvideobaseplaybackview.h"
|
|
31 |
|
|
32 |
// Constants
|
|
33 |
|
|
34 |
// Forward Declarations
|
|
35 |
|
|
36 |
//
|
|
37 |
// Class Definitions
|
|
38 |
//
|
|
39 |
class CMPXVideoPdlPlaybackView : public CMPXVideoBasePlaybackView
|
|
40 |
{
|
|
41 |
public:
|
|
42 |
IMPORT_C static CMPXVideoPdlPlaybackView* NewL();
|
|
43 |
IMPORT_C static CMPXVideoPdlPlaybackView* NewLC();
|
|
44 |
|
|
45 |
~CMPXVideoPdlPlaybackView();
|
|
46 |
|
|
47 |
void RetrievePdlInformationL();
|
|
48 |
|
|
49 |
protected:
|
|
50 |
|
|
51 |
/*
|
|
52 |
* From CAknView
|
|
53 |
* @return Views Uid
|
|
54 |
*/
|
|
55 |
virtual TUid Id() const;
|
|
56 |
|
|
57 |
TUid ViewImplementationId() const;
|
|
58 |
|
|
59 |
void CloseEmbeddedPlaybackViewL();
|
|
60 |
|
|
61 |
void HandlePluginErrorL( TInt aError );
|
|
62 |
|
|
63 |
/*
|
|
64 |
* Handle Download State Change
|
|
65 |
* @param aState new state of the download
|
|
66 |
*/
|
|
67 |
void HandlePdlStateChangeL( TInt aState );
|
|
68 |
|
|
69 |
/*
|
|
70 |
* Handle transition to the stopped state
|
|
71 |
*/
|
|
72 |
void HandleStoppedStateL();
|
|
73 |
|
|
74 |
void HandleBufferingStateL();
|
|
75 |
|
|
76 |
void HandleInitializingStateL( TMPXPlaybackState aLastState );
|
|
77 |
|
|
78 |
void SendWindowCommandL( TMPXVideoPlaybackCommand aCmd );
|
|
79 |
|
|
80 |
void HandlePdlReloadComplete();
|
|
81 |
|
|
82 |
void ResetPdlUserInputs();
|
|
83 |
|
|
84 |
private:
|
|
85 |
|
|
86 |
CMPXVideoPdlPlaybackView();
|
|
87 |
|
|
88 |
void ConstructL();
|
|
89 |
|
|
90 |
void SendPdlCustomCommandL( TMPXPlaybackPdCommand aCustomCmd );
|
|
91 |
|
|
92 |
TBool BringUpBrowserL();
|
|
93 |
|
|
94 |
void ClosePlaybackViewWithErrorL();
|
|
95 |
|
|
96 |
//
|
|
97 |
// Functions to unblock user inputs after a timeout
|
|
98 |
//
|
|
99 |
static TInt HandleBlockInputsTimeOut( TAny* aPtr );
|
|
100 |
void DoHandleBlockInputsTimeOut();
|
|
101 |
|
|
102 |
private: // data
|
|
103 |
|
|
104 |
TMPXPlaybackPdDownloadState iPdlState;
|
|
105 |
TInt iDownloadSize;
|
|
106 |
TBool iUserInputsBlocked;
|
|
107 |
|
|
108 |
CPeriodic* iBlockInputsTimer;
|
|
109 |
};
|
|
110 |
|
|
111 |
#endif // __VIDEOPDLPLAYBACKVIEW_H__
|
|
112 |
|
|
113 |
// EOF
|