|
1 /* |
|
2 * Copyright (c) 20101 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 VideoPlaybackControlConfiguration |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 3 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef VIDEOPLAYBACKCONTROLCONFIGURATION_H_ |
|
23 #define VIDEOPLAYBACKCONTROLCONFIGURATION_H_ |
|
24 |
|
25 // INCLUDES |
|
26 #include <qobject> |
|
27 |
|
28 #include <mpxplaybackframeworkdefs.h> |
|
29 #include "videoplaybackcontrol.hrh" |
|
30 #include "mpxhelixplaybackplugindefs.h" |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class VideoPlaybackControlsController; |
|
34 |
|
35 // DATA TYPES |
|
36 |
|
37 // CLASS DECLARATION |
|
38 class VideoPlaybackControlConfiguration : public QObject |
|
39 { |
|
40 Q_OBJECT |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * constructor. |
|
46 */ |
|
47 VideoPlaybackControlConfiguration( VideoPlaybackControlsController* controller ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~VideoPlaybackControlConfiguration(); |
|
53 |
|
54 public: |
|
55 /** |
|
56 * Update control list |
|
57 */ |
|
58 void updateControlList( TVideoPlaybackControlCommandIds event ); |
|
59 |
|
60 /** |
|
61 * Return control list |
|
62 */ |
|
63 QList<TVideoPlaybackControls>& controlList(); |
|
64 |
|
65 void updateControlsWithFileDetails(); |
|
66 |
|
67 /** |
|
68 * Create control list |
|
69 */ |
|
70 void createControlList(); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * Delete controls from list |
|
76 */ |
|
77 void deleteControlFromList( TVideoPlaybackControls control ); |
|
78 |
|
79 /** |
|
80 * Add controls to list |
|
81 */ |
|
82 void addControlToList( TVideoPlaybackControls control ); |
|
83 |
|
84 signals: |
|
85 void controlListUpdated(); |
|
86 |
|
87 public: |
|
88 |
|
89 TInt mState; |
|
90 bool mUpdateControlsWithFileDetails; |
|
91 |
|
92 private: |
|
93 VideoPlaybackControlsController *mControlsController; |
|
94 QList<TVideoPlaybackControls> mControlsList; |
|
95 }; |
|
96 |
|
97 #endif /*VIDEOPLAYBACKCONTROLCONFIGURATION_H_*/ |
|
98 |
|
99 // End of File |