|
1 /* |
|
2 * Copyright (c) 2009 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: Video playback view |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 7 % |
|
19 |
|
20 |
|
21 |
|
22 // This file defines the API for .dll |
|
23 |
|
24 #ifndef __VIDEOBASEPLAYBACKVIEW_H__ |
|
25 #define __VIDEOBASEPLAYBACKVIEW_H__ |
|
26 |
|
27 // Include Files |
|
28 #include <hbview.h> |
|
29 |
|
30 class CMPXVideoViewWrapper; |
|
31 class RWindow; |
|
32 |
|
33 // Constants |
|
34 |
|
35 // Forward Declarations |
|
36 |
|
37 // Class Definitions |
|
38 |
|
39 class VideoBasePlaybackView : public HbView |
|
40 { |
|
41 Q_OBJECT |
|
42 |
|
43 public: |
|
44 VideoBasePlaybackView(); |
|
45 virtual ~VideoBasePlaybackView(); |
|
46 |
|
47 void handleActivateView(); |
|
48 |
|
49 void handleDeactivateView(); |
|
50 |
|
51 void mousePressEvent( QGraphicsSceneMouseEvent *event ); |
|
52 |
|
53 QVariant itemChange( GraphicsItemChange change, const QVariant &value ); |
|
54 |
|
55 void paint( QPainter *painter, |
|
56 const QStyleOptionGraphicsItem *option, |
|
57 QWidget *widget ); |
|
58 |
|
59 bool event( QEvent *event ); |
|
60 |
|
61 virtual void handleClosePlaybackView(); |
|
62 |
|
63 virtual void handleBufferingState(); |
|
64 |
|
65 virtual void issuePlayCommand(); |
|
66 |
|
67 virtual void handlePluginError( int aError ); |
|
68 |
|
69 virtual void retrievePdlInformation(); |
|
70 |
|
71 virtual void closePlaybackView(); |
|
72 |
|
73 void startClosingPlaybackView(); |
|
74 |
|
75 RWindow *getWindow(); |
|
76 |
|
77 virtual void doClosePlayer(); |
|
78 |
|
79 void handleStoppedState(); |
|
80 |
|
81 signals: |
|
82 void tappedOnScreen(); |
|
83 |
|
84 public slots: |
|
85 void handleClosePopupDialog(); |
|
86 |
|
87 public: |
|
88 int mCurrentError; // default = KErrNone |
|
89 bool mViewActive; |
|
90 bool mSyncClose; |
|
91 int mLastPlayPosition; |
|
92 bool mStayPaused; |
|
93 |
|
94 |
|
95 public: |
|
96 friend class CMPXVideoViewWrapper; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // __VIDEOBASEPLAYBACKVIEW_H__ |
|
101 |
|
102 // EOF |