videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/src/mpxvideoplaybackcontrolconfiguration.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of QMPXVideoPlaybackControlConfiguration |
14 * Description: Implementation of QMPXVideoPlaybackControlConfiguration |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 1 % |
18 // Version : %version: 2 % |
19 |
19 |
20 |
20 |
21 |
21 |
22 // INCLUDE FILES |
22 // INCLUDE FILES |
23 |
23 |
39 // |
39 // |
40 QMPXVideoPlaybackControlConfiguration::QMPXVideoPlaybackControlConfiguration( |
40 QMPXVideoPlaybackControlConfiguration::QMPXVideoPlaybackControlConfiguration( |
41 QMPXVideoPlaybackControlsController* controller) |
41 QMPXVideoPlaybackControlsController* controller) |
42 : mControlsController( controller ) |
42 : mControlsController( controller ) |
43 { |
43 { |
44 createControlList(); |
|
45 } |
44 } |
46 |
45 |
47 // ------------------------------------------------------------------------------------------------- |
46 // ------------------------------------------------------------------------------------------------- |
48 // QMPXVideoPlaybackControlConfiguration::~QMPXVideoPlaybackControlConfiguration() |
47 // QMPXVideoPlaybackControlConfiguration::~QMPXVideoPlaybackControlConfiguration() |
49 // Destructor. |
48 // Destructor. |
62 // |
61 // |
63 void QMPXVideoPlaybackControlConfiguration::createControlList() |
62 void QMPXVideoPlaybackControlConfiguration::createControlList() |
64 { |
63 { |
65 MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::createControlList()")); |
64 MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::createControlList()")); |
66 |
65 |
67 QMPXVideoPlaybackViewFileDetails* fileDetails = mControlsController->fileDetails(); |
66 addControlToList( EMPXBufferingAnimation ); |
|
67 addControlToList( EMPXStatusPane ); |
|
68 addControlToList( EMPXRealLogoBitmap ); |
68 |
69 |
69 if ( fileDetails->mPlaybackMode != EMPXVideoLocal ) |
70 emit controlListUpdated(); |
70 { |
|
71 // |
|
72 // if it's not local mode, add branding animation control to show while initializing |
|
73 // |
|
74 addControlToList( EMPXBufferingAnimation ); |
|
75 } |
|
76 |
|
77 addControlToList( EMPXStatusPane ); |
|
78 } |
71 } |
79 |
72 |
80 // ------------------------------------------------------------------------------------------------- |
73 // ------------------------------------------------------------------------------------------------- |
81 // QMPXVideoPlaybackControlConfiguration::controlList |
74 // QMPXVideoPlaybackControlConfiguration::controlList |
82 // ------------------------------------------------------------------------------------------------- |
75 // ------------------------------------------------------------------------------------------------- |
110 } |
103 } |
111 else |
104 else |
112 { |
105 { |
113 mState = KControlListUpdated; |
106 mState = KControlListUpdated; |
114 } |
107 } |
115 |
108 |
116 |
109 emit controlListUpdated(); |
117 } |
110 } |
118 |
111 |
119 // ------------------------------------------------------------------------------------------------- |
112 // ------------------------------------------------------------------------------------------------- |
120 // QMPXVideoPlaybackControlConfiguration::deleteControlFromList |
113 // QMPXVideoPlaybackControlConfiguration::deleteControlFromList |
121 // ------------------------------------------------------------------------------------------------- |
114 // ------------------------------------------------------------------------------------------------- |