|
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: Implementation of CMPXVideoPlaybackControlConfiguration |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 5 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_ |
|
23 #define MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_ |
|
24 |
|
25 // INCLUDES |
|
26 #include "mpxvideoplaybackcontrol.hrh" |
|
27 #include "mpxhelixplaybackplugindefs.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMPXVideoPlaybackControlsController; |
|
31 class CMPXVideoPlaybackViewFileDetails; |
|
32 |
|
33 // DATA TYPES |
|
34 |
|
35 // CLASS DECLARATION |
|
36 class CMPXVideoPlaybackControlConfiguration : public CBase |
|
37 { |
|
38 |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CMPXVideoPlaybackControlConfiguration* NewL( |
|
45 CMPXVideoPlaybackControlsController* aController ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CMPXVideoPlaybackControlConfiguration(); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * C++ default constructor. |
|
56 */ |
|
57 CMPXVideoPlaybackControlConfiguration( CMPXVideoPlaybackControlsController* aController ); |
|
58 |
|
59 /** |
|
60 * Symbian 2nd phase constructor. |
|
61 */ |
|
62 void ConstructL(); |
|
63 |
|
64 public: |
|
65 /** |
|
66 * Update control list |
|
67 */ |
|
68 void UpdateControlListL( TMPXVideoPlaybackControlCommandIds aEvent, |
|
69 TBool aShowArIcon = EFalse ); |
|
70 |
|
71 /** |
|
72 * Return control list |
|
73 */ |
|
74 RArray<TMPXVideoPlaybackControls>& ControlList(); |
|
75 |
|
76 void UpdateControlsWithFileDetailsL(); |
|
77 |
|
78 private: |
|
79 /** |
|
80 * Create control list |
|
81 */ |
|
82 void CreateControlListL(); |
|
83 |
|
84 /** |
|
85 * Delete controls from list |
|
86 */ |
|
87 void DeleteControlFromList( TMPXVideoPlaybackControls aControl ); |
|
88 |
|
89 private: |
|
90 CMPXVideoPlaybackControlsController* iControlsController; |
|
91 RArray<TMPXVideoPlaybackControls> iControlsList; |
|
92 |
|
93 TBool iAspectRatioIconAdded; |
|
94 TBool iAudioOnlyIndicatorsAdded; |
|
95 TBool iTitleArtistIndicatorsAdded; |
|
96 TBool iDownloadPausedAdded; |
|
97 }; |
|
98 |
|
99 #endif /*MPXVIDEOPLAYBACKCONTROLCONFIGURATION_H_*/ |
|
100 |
|
101 // End of File |