|
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: Implementation of VideoPlaybackControlsController |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 9 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef VIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
|
23 #define VIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
|
24 |
|
25 // INCLUDES |
|
26 #include <qobject> |
|
27 |
|
28 #include "mpxvideo_debug.h" |
|
29 #include "videoplaybackcontrol.hrh" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMPXVideoViewWrapper; |
|
33 class VideoBasePlaybackView; |
|
34 class VideoPlaybackControlsController; |
|
35 class VideoPlaybackViewFileDetails; |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 class VideoPlaybackControlsController : public QObject |
|
40 { |
|
41 Q_OBJECT |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * constructor. |
|
47 */ |
|
48 VideoPlaybackControlsController( |
|
49 VideoBasePlaybackView *view, |
|
50 CMPXVideoViewWrapper *viewWrapper, |
|
51 VideoPlaybackViewFileDetails *details ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~VideoPlaybackControlsController(); |
|
57 |
|
58 public: |
|
59 |
|
60 // |
|
61 // Handle event from container |
|
62 // |
|
63 void handleEvent( TVideoPlaybackControlCommandIds event, int value = 0 ); |
|
64 |
|
65 // |
|
66 // Add the file details to the controls controller when available |
|
67 // |
|
68 void addFileDetails( VideoPlaybackViewFileDetails* details ); |
|
69 |
|
70 // |
|
71 // updateVideoRectDone |
|
72 // |
|
73 void updateVideoRectDone(); |
|
74 |
|
75 bool isRNLogoBitmapInControlList(); |
|
76 |
|
77 public: |
|
78 VideoBasePlaybackView *mView; |
|
79 CMPXVideoViewWrapper *mViewWrapper; |
|
80 VideoPlaybackViewFileDetails *mFileDetails; |
|
81 TVideoPlaybackControlCommandIds mReceivedEvent; |
|
82 |
|
83 int mValue; |
|
84 bool mRNLogoVisible; |
|
85 bool mFileDetailsAdded; |
|
86 }; |
|
87 |
|
88 #endif /*VIDEOPLAYBACKCONTROLSCONTROLLER_P_H_*/ |
|
89 |
|
90 // End of File |