videoplayback/hbvideoplaybackview/tsrc/teststatuspanecontrol/src/teststatuspanecontrol.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: tester for methods in status pane control |
14 * Description: tester for methods in status pane control |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 3 % |
18 // Version : %version: 4 % |
19 |
19 |
20 |
20 |
21 #include <hbapplication.h> |
21 #include <hbapplication.h> |
22 #include <hbinstance.h> |
22 #include <hbinstance.h> |
23 #include <hbmenu.h> |
23 #include <hbmenu.h> |
30 #include "teststatuspanecontrol.h" |
30 #include "teststatuspanecontrol.h" |
31 |
31 |
32 #include "mpxvideoplaybackviewfiledetails.h" |
32 #include "mpxvideoplaybackviewfiledetails.h" |
33 #include "mpxvideoplaybackcontrolscontroller.h" |
33 #include "mpxvideoplaybackcontrolscontroller.h" |
34 #include "hbvideobaseplaybackview.h" |
34 #include "hbvideobaseplaybackview.h" |
35 #include "mpxvideoviewwrapper.h" |
|
36 #include "mpxvideoplaybackdocumentloader.h" |
35 #include "mpxvideoplaybackdocumentloader.h" |
37 #include "hblabel.h" |
36 #include "hblabel.h" |
38 |
37 |
39 #define private public |
38 #define private public |
40 #define protected public |
39 #define protected public |
82 void TestStatusPaneControl::setup() |
81 void TestStatusPaneControl::setup() |
83 { |
82 { |
84 MPX_ENTER_EXIT(_L("TestStatusPaneControl::setup()")); |
83 MPX_ENTER_EXIT(_L("TestStatusPaneControl::setup()")); |
85 |
84 |
86 mBaseVideoView = new HbVideoBasePlaybackView(); |
85 mBaseVideoView = new HbVideoBasePlaybackView(); |
87 TRAPD( err, mVideoViewWrapper = CMPXVideoViewWrapper::NewL( mBaseVideoView ) ); |
|
88 |
86 |
89 mFileDetails = new QMPXVideoPlaybackViewFileDetails(); |
87 mFileDetails = new QMPXVideoPlaybackViewFileDetails(); |
90 |
88 |
91 mControlsController = new QMPXVideoPlaybackControlsController( mBaseVideoView, |
89 mControlsController = new QMPXVideoPlaybackControlsController( mBaseVideoView, |
92 mVideoViewWrapper, |
|
93 mFileDetails ); |
90 mFileDetails ); |
94 |
91 |
95 mStatusPane = new QMPXVideoPlaybackStatusPaneControl( mControlsController, |
92 mStatusPane = new QMPXVideoPlaybackStatusPaneControl( mControlsController, |
96 EMPXStatusPane, |
93 EMPXStatusPane, |
97 NULL, |
94 NULL, |
110 if ( mBaseVideoView ) |
107 if ( mBaseVideoView ) |
111 { |
108 { |
112 delete mBaseVideoView; |
109 delete mBaseVideoView; |
113 mBaseVideoView = NULL; |
110 mBaseVideoView = NULL; |
114 } |
111 } |
115 |
|
116 if ( mVideoViewWrapper ) |
|
117 { |
|
118 delete mVideoViewWrapper; |
|
119 mVideoViewWrapper = NULL; |
|
120 } |
|
121 |
112 |
122 if ( mFileDetails ) |
113 if ( mFileDetails ) |
123 { |
114 { |
124 delete mFileDetails; |
115 delete mFileDetails; |
125 mFileDetails = NULL; |
116 mFileDetails = NULL; |