mpengine/tsrc/unittest_mpmpxplaybackframeworkwrapper/stub/src/mpxplaybackutility.cpp
equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <Qt> |
18 #include <Qt> |
19 #include <mpxcollectionplaylist.h> |
19 #include <mpxcollectionplaylist.h> |
|
20 #include <mpxcollectionpath.h> |
20 #include <mptrace.h> |
21 #include <mptrace.h> |
21 |
22 |
22 #include "stub/inc/mpxplaybackutility.h" |
23 #include "stub/inc/mpxplaybackutility.h" |
23 |
24 |
24 /*! |
25 /*! |
30 iObs(0), |
31 iObs(0), |
31 iCMPXCmd(0), |
32 iCMPXCmd(0), |
32 iState(EPbStateNotInitialised), |
33 iState(EPbStateNotInitialised), |
33 iAttrs(0), |
34 iAttrs(0), |
34 iInitialized(false), |
35 iInitialized(false), |
35 iReturnSource(true) |
36 iReturnSource(true), |
|
37 iSetPlaylistEnd(false), |
|
38 iCurrentPlaylist(0) |
36 { |
39 { |
37 } |
40 } |
38 |
41 |
39 /*! |
42 /*! |
40 Stub function. |
43 Stub function. |
142 /*! |
145 /*! |
143 Stub function. |
146 Stub function. |
144 */ |
147 */ |
145 CMPXCollectionPlaylist* MMPXPlaybackUtility::PlaylistL() |
148 CMPXCollectionPlaylist* MMPXPlaybackUtility::PlaylistL() |
146 { |
149 { |
147 CMPXCollectionPlaylist* temp = CMPXCollectionPlaylist::NewL(); |
150 CMPXCollectionPath *testPath = CMPXCollectionPath::NewL(); |
148 return temp; |
151 RArray<TMPXItemId> pathItems; |
|
152 CleanupStack::PushL(testPath); |
|
153 testPath->AppendL(5); |
|
154 for (int i = 0; i < 5; i++ ) { |
|
155 pathItems.AppendL( TMPXItemId( 300 + i ) ); |
|
156 } |
|
157 testPath->AppendL( pathItems.Array() ); |
|
158 //Create testPlaylist |
|
159 iCurrentPlaylist = CMPXCollectionPlaylist::NewL( *testPath ); |
|
160 if (iSetPlaylistEnd){ |
|
161 iCurrentPlaylist->SetToLast(); |
|
162 } |
|
163 CleanupStack::PopAndDestroy( testPath ); |
|
164 return iCurrentPlaylist; |
149 } |
165 } |
150 |
166 |
151 /*! |
167 /*! |
152 Stub function. |
168 Stub function. |
153 */ |
169 */ |