|
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 // Version : %version: 5 % |
|
19 |
|
20 |
|
21 // This file defines the API for VideoPlaybackView.dll |
|
22 |
|
23 #ifndef __VIDEOPDLPLAYBACKVIEW_H__ |
|
24 #define __VIDEOPDLPLAYBACKVIEW_H__ |
|
25 |
|
26 // Include Files |
|
27 #include <mpxplaybackcommanddefs.h> |
|
28 |
|
29 #include "mpxvideobaseplaybackview.h" |
|
30 |
|
31 // Constants |
|
32 |
|
33 // Forward Declarations |
|
34 |
|
35 // |
|
36 // Class Definitions |
|
37 // |
|
38 class CMPXVideoPdlPlaybackView : public CMPXVideoBasePlaybackView |
|
39 { |
|
40 public: |
|
41 IMPORT_C static CMPXVideoPdlPlaybackView* NewL(); |
|
42 IMPORT_C static CMPXVideoPdlPlaybackView* NewLC(); |
|
43 |
|
44 ~CMPXVideoPdlPlaybackView(); |
|
45 |
|
46 void RetrievePdlInformationL(); |
|
47 |
|
48 protected: |
|
49 |
|
50 /* |
|
51 * From CAknView |
|
52 * @return Views Uid |
|
53 */ |
|
54 virtual TUid Id() const; |
|
55 |
|
56 TUid ViewImplementationId() const; |
|
57 |
|
58 void CloseEmbeddedPlaybackViewL(); |
|
59 |
|
60 void HandlePluginErrorL( TInt aError ); |
|
61 |
|
62 /* |
|
63 * Handle Download State Change |
|
64 * @param aState new state of the download |
|
65 */ |
|
66 void HandlePdlStateChangeL( TInt aState ); |
|
67 |
|
68 /* |
|
69 * Handle transition to the stopped state |
|
70 */ |
|
71 void HandleStoppedStateL(); |
|
72 |
|
73 void HandleBufferingStateL(); |
|
74 |
|
75 private: |
|
76 |
|
77 CMPXVideoPdlPlaybackView(); |
|
78 |
|
79 void ConstructL(); |
|
80 |
|
81 void SendPdlCustomCommandL( TMPXPlaybackPdCommand aCustomCmd ); |
|
82 |
|
83 TBool BringUpBrowserL(); |
|
84 |
|
85 private: // data |
|
86 |
|
87 TMPXPlaybackPdDownloadState iPdlState; |
|
88 TInt iDownloadSize; |
|
89 }; |
|
90 |
|
91 #endif // __VIDEOPDLPLAYBACKVIEW_H__ |
|
92 |
|
93 // EOF |