9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: ?Description* |
14 * Description: |
15 */ |
15 */ |
16 |
|
17 |
|
18 |
16 |
19 #ifndef VCXMYVIDEOSCOLLECTIONPLUGINTEST_H |
17 #ifndef VCXMYVIDEOSCOLLECTIONPLUGINTEST_H |
20 #define VCXMYVIDEOSCOLLECTIONPLUGINTEST_H |
18 #define VCXMYVIDEOSCOLLECTIONPLUGINTEST_H |
21 |
19 |
22 // INCLUDES |
20 // INCLUDES |
23 #include <StifLogger.h> |
21 #include <StifLogger.h> |
24 #include <TestScripterInternal.h> |
22 #include <TestScripterInternal.h> |
25 #include <StifTestModule.h> |
23 #include <StifTestModule.h> |
26 #include "MVCXMyVideosCollectionPluginTesterObserver.h" |
24 #include "MVCXMyVideosCollectionPluginTesterObserver.h" |
27 #include <f32file.h> |
25 #include <f32file.h> |
28 #include "MIptvTestTimerObserver.h" |
26 #include "MVcxTestTimerObserver.h" |
29 //#ifdef __WINSCW__ |
27 //#ifdef __WINSCW__ |
30 #include <harvesterclient.h> |
28 #include <harvesterclient.h> |
31 //#endif // __WINSCW__ |
29 //#endif // __WINSCW__ |
32 #include "CIptvTestVideoCreator.h" |
30 #include "VCXMyVideosTestUtils.h" |
33 |
31 |
34 // CONSTANTS |
32 // CONSTANTS |
35 const TInt KTimeoutMinute = 60 * 1000000; // a minute |
33 const TInt KTimeoutMinute = 60 * 1000000; // a minute |
36 const TInt KTimeoutSecond = 1000000; |
34 const TInt KTimeoutSecond = 1000000; |
37 _LIT( KVCXMYVideosTest2kURLTag, "XXX2kURLXXX" ); |
|
38 _LIT( KVCXMYVideosTest1200CharsURLTag, "XXX21200charsURLXXX" ); |
|
39 _LIT( KVCXMYVideosTest1kURLTag, "XXX1kURLXXX" ); |
|
40 _LIT( KVCXMYVideosTest2kURL, "http://193.65.182.78/Nseries/video1.3gp?123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456_END" ); |
|
41 //_LIT( KVCXMYVideosTest1200charsURL, "http://193.65.182.78/Nseries/video1.3gp?123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012_END" ); |
|
42 _LIT( KVCXMYVideosTest1kURL, "http://193.65.182.78/Nseries/video1.3gp?123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012ASDFASDFAADSFDSFASDFSDAFSDFASDFADFASDF_END" ); |
|
43 _LIT( KVCXTestZeroIap, "VcxTestZeroIap" ); |
35 _LIT( KVCXTestZeroIap, "VcxTestZeroIap" ); |
44 _LIT( KVCXTestInvalidIap, "VcxTestInvalidIap" ); |
36 _LIT( KVCXTestInvalidIap, "VcxTestInvalidIap" ); |
45 _LIT( KVCXTestZeroUrl, "VcxTestZeroUrl" ); |
37 _LIT( KVCXTestZeroUrl, "VcxTestZeroUrl" ); |
46 |
38 |
47 // MACROS |
39 // MACROS |
52 _LIT( KVCXMyVideosCollectionPluginTestLogFile, "VCXMyVideosCollectionPluginTest.txt" ); |
44 _LIT( KVCXMyVideosCollectionPluginTestLogFile, "VCXMyVideosCollectionPluginTest.txt" ); |
53 |
45 |
54 // FORWARD DECLARATIONS |
46 // FORWARD DECLARATIONS |
55 class CVCXMyVideosCollectionPluginTest; |
47 class CVCXMyVideosCollectionPluginTest; |
56 class CVCXMyVideosCollectionPluginTester; |
48 class CVCXMyVideosCollectionPluginTester; |
57 class CVCXTestCommon; |
49 class CVCXMyVideosTestUtils; |
58 class CIptvTestActiveWait; |
50 class CVcxTestActiveWait; |
59 class CIptvTestTimer; |
51 class CVcxTestTimer; |
60 class CMPXMedia; |
52 class CMPXMedia; |
61 class TMPXAttributeData; |
53 class TMPXAttributeData; |
62 class CIptvVodContentContentBriefDetails; |
54 class CVcxVodContentContentBriefDetails; |
63 class CVCXMyVideosTestServiceEmu; |
55 class CVCXMyVideosTestServiceEmu; |
64 class CVCXTestMdsDbModifier; |
56 class CVCXTestMdsDbModifier; |
65 class CFileMan; |
57 class CFileMan; |
66 class CMPXMediaArray; |
58 class CMPXMediaArray; |
67 class CVCXTestStatsKeeper; |
|
68 |
59 |
69 // DATA TYPES |
60 // DATA TYPES |
70 //enum ?declaration |
61 //enum ?declaration |
71 //typedef ?declaration |
62 //typedef ?declaration |
72 //extern ?data_type; |
63 //extern ?data_type; |
120 EVcxTestMapping_KVcxMediaMyVideosModifiedDateCurrent, |
111 EVcxTestMapping_KVcxMediaMyVideosModifiedDateCurrent, |
121 EVcxTestMapping_KVcxMediaMyVideosCategoryNewItemName, |
112 EVcxTestMapping_KVcxMediaMyVideosCategoryNewItemName, |
122 EVcxTestMapping_KVcxMediaMyVideosAudioFourCc |
113 EVcxTestMapping_KVcxMediaMyVideosAudioFourCc |
123 }; |
114 }; |
124 |
115 |
125 typedef RPointerArray<CIptvVodContentContentBriefDetails> TVcxTestContentArray; |
116 typedef RPointerArray<CVcxVodContentContentBriefDetails> TVcxTestContentArray; |
126 |
117 |
127 // CLASS DECLARATION |
118 // TestUtils DECLARATION |
128 |
119 |
129 /** |
120 /** |
130 * CVCXMyVideosCollectionPluginTest test class for STIF Test Framework TestScripter. |
121 * CVCXMyVideosCollectionPluginTest test TestUtils for STIF Test Framework TestScripter. |
131 * ?other_description_lines |
122 * ?other_description_lines |
132 * |
123 * |
133 * @lib ?library |
124 * @lib ?library |
134 * @since ?Series60_version |
125 * @since ?Series60_version |
135 */ |
126 */ |
136 NONSHARABLE_CLASS(CVCXMyVideosCollectionPluginTest) : public CScriptBase, |
127 NONSHARABLE_CLASS(CVCXMyVideosCollectionPluginTest) : public CScriptBase, |
137 public MVCXMyVideosCollectionPluginTesterObserver, public MIptvTestTimerObserver |
128 public MVCXMyVideosCollectionPluginTesterObserver, public MVcxTestTimerObserver |
138 { |
129 { |
139 public: // Constructors and destructor |
130 public: // Constructors and destructor |
140 |
131 |
141 /** |
132 /** |
142 * Two-phased constructor. |
133 * Two-phased constructor. |
200 * separate text file. |
191 * separate text file. |
201 */ |
192 */ |
202 virtual TInt CreateL( CStifItemParser& aItem ); |
193 virtual TInt CreateL( CStifItemParser& aItem ); |
203 |
194 |
204 /** |
195 /** |
205 * Enables statistics for this instance. Disables error reporting to STIF for errors from collection plugin. |
|
206 * |
|
207 * @param Name for the stats. |
|
208 * @param Filename for the stats. |
|
209 */ |
|
210 virtual TInt EnableStatsL( CStifItemParser& aItem ); |
|
211 |
|
212 /** |
|
213 * Sets CenRep value for My Videos MPX plugin preferred memory for downloads. |
|
214 * |
|
215 * @param aPreferredMemory, a drive letter |
|
216 */ |
|
217 virtual TInt SetPreferredMemoryL( CStifItemParser& aItem ); |
|
218 |
|
219 /** |
|
220 * Sets CenRep value for My Videos MPX plugin sort. |
196 * Sets CenRep value for My Videos MPX plugin sort. |
221 * If category is whole collection is refreshed: |
197 * If category is whole collection is refreshed: |
222 * - Sort order set to none. |
198 * - Sort order set to none. |
223 * - Close/Open(index) called for Mpx collection. |
199 * - Close/Open(index) called for Mpx collection. |
224 * - Sort order set as specified. |
200 * - Sort order set as specified. |
246 * @param timeout minutes (default 10) |
222 * @param timeout minutes (default 10) |
247 */ |
223 */ |
248 virtual TInt CoolDownL( CStifItemParser& aItem ); |
224 virtual TInt CoolDownL( CStifItemParser& aItem ); |
249 |
225 |
250 /** |
226 /** |
251 * Disables check for missing downloads. |
|
252 */ |
|
253 virtual TInt DisableDownloadCheckL( CStifItemParser& aItem ); |
|
254 |
|
255 /** |
|
256 * Toggle filecheck on/off. |
227 * Toggle filecheck on/off. |
257 */ |
228 */ |
258 virtual TInt SetFileCheckL( CStifItemParser& aItem ); |
229 virtual TInt SetFileCheckL( CStifItemParser& aItem ); |
259 |
230 |
260 /** |
231 /** |
261 * Enables or disables the resuming paused downloads automaticly. |
232 * Sets requests that use multiple medias to use copy of the current medias, |
262 * |
233 * those medias will not be updated before this is called again. |
263 * @param TBool |
234 */ |
264 */ |
235 virtual TInt SetUseCopiedMediasL( CStifItemParser& aItem ); |
265 virtual TInt SetAutoResumeL( CStifItemParser& aItem ); |
|
266 |
236 |
267 /** |
237 /** |
268 * Opens MPX collection. |
238 * Opens MPX collection. |
269 * Asynchronous, test script will be signaled. |
239 * Asynchronous, test script will be signaled. |
270 * |
240 * |
274 |
244 |
275 /** |
245 /** |
276 * Opens collection level, e.g. My Videos category. |
246 * Opens collection level, e.g. My Videos category. |
277 * Asynchronous, test script will be signaled. |
247 * Asynchronous, test script will be signaled. |
278 * |
248 * |
279 * @param index number of the level. |
249 * @param name name of the level. |
280 */ |
250 */ |
281 virtual TInt OpenLevelL( CStifItemParser& aItem ); |
251 virtual TInt OpenLevelL( CStifItemParser& aItem ); |
|
252 |
|
253 /** |
|
254 * Opens collection level, e.g. My Videos category. |
|
255 * Asynchronous, test script will be signaled. |
|
256 * |
|
257 * @param index of the level. |
|
258 */ |
|
259 virtual TInt OpenLevelByIndexL( CStifItemParser& aItem ); |
282 |
260 |
283 /** |
261 /** |
284 * Closes collection level, e.g. My Videos category. |
262 * Closes collection level, e.g. My Videos category. |
285 * Asynchronous, test script will be signaled. |
263 * Asynchronous, test script will be signaled. |
286 */ |
264 */ |
333 * Checks an attribute of a video item. |
311 * Checks an attribute of a video item. |
334 * |
312 * |
335 * This will fetch the full media from MPX. |
313 * This will fetch the full media from MPX. |
336 * |
314 * |
337 * @param driveLetter |
315 * @param driveLetter |
338 * @param itemIndex |
316 * @param itemIndex or itemName |
339 * @param media attribute mapping id, see vcxmvcollectionplugintest.inc |
317 * @param media attribute mapping id, see vcxmvcollectionplugintest.inc |
340 * @param expectedValue |
318 * @param expectedValue |
341 * @param expectedValue2...X |
319 * @param expectedValue2...X |
342 * @param When checking for real number use expectedValue2 for digits. |
320 * @param When checking for real number use expectedValue2 for digits. |
343 * For TMPXItemId expectedValue2 is the iId2 member. |
321 * For TMPXItemId expectedValue2 is the iId2 member. |
356 * For KMPXMediaGeneralFlags there can be multiple values. |
334 * For KMPXMediaGeneralFlags there can be multiple values. |
357 */ |
335 */ |
358 virtual TInt SetMediaDetailL( CStifItemParser& aItem ); |
336 virtual TInt SetMediaDetailL( CStifItemParser& aItem ); |
359 |
337 |
360 /** |
338 /** |
|
339 * Checks the album count. |
|
340 * |
|
341 * @param expectedCount |
|
342 */ |
|
343 virtual TInt CheckAlbumCountL( CStifItemParser& aItem ); |
|
344 |
|
345 /** |
361 * Checks the video count and that the videos really exist. |
346 * Checks the video count and that the videos really exist. |
362 * |
347 * |
363 * @param driveLetter, if specified checks only videos only on that drive |
348 * @param driveLetter, if specified checks only videos only on that drive |
364 * @param expectedCount |
349 * @param expectedCount |
365 */ |
350 */ |
378 * |
363 * |
379 * @param driveLetter, if specified checks only videos only on that drive |
364 * @param driveLetter, if specified checks only videos only on that drive |
380 * @param maximumCount |
365 * @param maximumCount |
381 */ |
366 */ |
382 virtual TInt CheckMaximumMediaCountL( CStifItemParser& aItem ); |
367 virtual TInt CheckMaximumMediaCountL( CStifItemParser& aItem ); |
383 |
368 |
384 /** |
|
385 * Checks the download count. |
|
386 * |
|
387 * @param expectedCount |
|
388 */ |
|
389 virtual TInt CheckDownloadCountL( CStifItemParser& aItem ); |
|
390 |
|
391 /** |
|
392 * Checks the download progress. |
|
393 * |
|
394 * @param minimum progress |
|
395 */ |
|
396 virtual TInt CheckDownloadProgressL( CStifItemParser& aItem ); |
|
397 |
|
398 /** |
369 /** |
399 * Creates copy of a media from currently listed medias and stores it to |
370 * Creates copy of a media from currently listed medias and stores it to |
400 * a member variable. It is used by AddMediaL, SetMediaL and |
371 * a member variable. It is used by AddMediaL, SetMediaL and |
401 * SetMediaDetailsL. |
372 * SetMediaDetailsL. |
402 * |
373 * |
566 * Delete files of all the current media entries. |
537 * Delete files of all the current media entries. |
567 */ |
538 */ |
568 virtual TInt DeleteFilesOfAllMediasL( CStifItemParser& aItem ); |
539 virtual TInt DeleteFilesOfAllMediasL( CStifItemParser& aItem ); |
569 |
540 |
570 /** |
541 /** |
|
542 * Adds an album. If category or album is currently open the change is not |
|
543 * seen by tests before current level is closed. |
|
544 * |
|
545 * @param aAlbumName |
|
546 * @param aAsyncCall, default true |
|
547 */ |
|
548 virtual TInt CreateAlbumL( CStifItemParser& aItem ); |
|
549 |
|
550 /** |
|
551 * Deletes albums. If category or album is currently open the change is not |
|
552 * seen by tests before current level is closed. |
|
553 * |
|
554 * @param aAlbumName(s) |
|
555 */ |
|
556 virtual TInt DeleteAlbumsL( CStifItemParser& aItem ); |
|
557 |
|
558 /** |
|
559 * Deletes all albums. If category or album is currently open the change is not |
|
560 * seen by tests before current level is closed. |
|
561 */ |
|
562 virtual TInt DeleteAllAlbumsL( CStifItemParser& aItem ); |
|
563 |
|
564 /** |
|
565 * Adds medias to an album. |
|
566 * |
|
567 * @param aAlbumName album where medias are added. |
|
568 * @param aDrive drive where medias are |
|
569 * @param aStartIndex index of first media |
|
570 * @param aEndIndex index of last media |
|
571 */ |
|
572 virtual TInt AddMediasToAlbumL( CStifItemParser& aItem ); |
|
573 |
|
574 /** |
|
575 * Removes medias from an album. |
|
576 * |
|
577 * @param aAlbumName album where medias are removed from. |
|
578 * @param aDrive drive where medias are |
|
579 * @param aStartIndex index of first media |
|
580 * @param aEndIndex index of last media |
|
581 */ |
|
582 virtual TInt RemoveMediasFromAlbumL( CStifItemParser& aItem ); |
|
583 |
|
584 /** |
|
585 * Checks the count of albums. |
|
586 * |
|
587 * @param aExpectedAlbumCount |
|
588 */ |
|
589 virtual TInt CheckAlbumCount( CStifItemParser& aItem ); |
|
590 |
|
591 /** |
571 * Creates a video file to the file system. |
592 * Creates a video file to the file system. |
572 * Test module keeps track of these files with iSideloadedFiles array. |
593 * Test module keeps track of these files with iSideloadedFiles array. |
573 * If size is -1 video size will not be altered. |
594 * If size is -1 video size will not be altered. |
574 * If category is open then this will wait until collection is refreshed with new data. |
595 * If category is open then this will wait until collection is refreshed with new data. |
575 */ |
596 */ |
583 virtual TInt CreateVideoFileNoWaitL( CStifItemParser& aItem ); |
604 virtual TInt CreateVideoFileNoWaitL( CStifItemParser& aItem ); |
584 |
605 |
585 /** |
606 /** |
586 * Creates video file(s). |
607 * Creates video file(s). |
587 */ |
608 */ |
588 void CreateVideoFileL( CIptvTestVideoCreator::TIptvTestVideoType aType, const TDesC& aDriveLetter, const TDesC& aFileName, TInt aSize, TInt aVideoCount, TBool aDoSync ); |
609 void CreateVideoFileL( CVCXMyVideosTestUtils::TVcxTestVideoType aType, const TDesC& aDriveLetter, const TDesC& aFileName, TInt aSize, TInt aVideoCount, TBool aDoSync ); |
589 |
610 |
590 /** |
611 /** |
591 * Ensures that drive has specified amount of videos, they are created and removed if needed. |
612 * Ensures that drive has specified amount of videos, they are created and removed if needed. |
592 * |
613 * |
593 * @param drive |
614 * @param drive |
605 * Toggle deletion of created videos in the destructor. |
626 * Toggle deletion of created videos in the destructor. |
606 */ |
627 */ |
607 virtual TInt SetDeleteSideloadedVideos( CStifItemParser& aItem ); |
628 virtual TInt SetDeleteSideloadedVideos( CStifItemParser& aItem ); |
608 |
629 |
609 /** |
630 /** |
610 * Start a download using My Videos MPX plugin. |
|
611 * |
|
612 * @param iapName |
|
613 * @param serviceName |
|
614 * @param contentId |
|
615 * @param syncCall |
|
616 * @param userName (optional) |
|
617 * @param password (optional) |
|
618 */ |
|
619 virtual TInt DownloadL( CStifItemParser& aItem ); |
|
620 |
|
621 /** |
|
622 * Resume a download using My Videos MPX plugin. |
|
623 * |
|
624 * See DownloadL for parameters. |
|
625 */ |
|
626 virtual TInt ResumeDownloadL( CStifItemParser& aItem ); |
|
627 |
|
628 /** |
|
629 * Resumes all paused downloads. |
|
630 */ |
|
631 virtual TInt ResumeAllDownloadsL( CStifItemParser& aItem ); |
|
632 |
|
633 /** |
|
634 * Start a download using My Videos MPX plugin. |
|
635 * The current media from CreateEmptyMediaL or CreateCopyOfMediaL is used to pass |
|
636 * attributes to My Videos MPX plugin. |
|
637 * |
|
638 * See DownloadL for parameters. |
|
639 */ |
|
640 virtual TInt DownloadUsingMediaL( CStifItemParser& aItem ); |
|
641 |
|
642 /** |
|
643 * Resume a download using My Videos MPX plugin. |
|
644 * The current media from CreateEmptyMediaL or CreateCopyOfMediaL is used to pass |
|
645 * attributes to My Videos MPX plugin. |
|
646 * |
|
647 * See DownloadL for parameters. |
|
648 */ |
|
649 virtual TInt ResumeDownloadUsingMediaL( CStifItemParser& aItem ); |
|
650 |
|
651 /** |
|
652 * Starts download or resumes one. Cannot be called from STIF script. |
|
653 * |
|
654 * @param aUseCurrentMedia, use the attributes of the current media. |
|
655 * @param aResume, is this resume download. |
|
656 */ |
|
657 void DownloadOrResumeL( CStifItemParser& aItem, TBool aUseCurrentMedia, TBool aResume ); |
|
658 |
|
659 /** |
|
660 * Start or resume a download using My Videos MPX plugin. |
|
661 * |
|
662 * Can be called with 'Download' and 'ResumeDownload' commands from STIF script. |
|
663 * |
|
664 * @param iapName |
|
665 * @param URL |
|
666 * @param syncCall |
|
667 * @param userName (optional) |
|
668 * @param password (optional) |
|
669 */ |
|
670 virtual TInt DownloadUrlL( CStifItemParser& aItem ); |
|
671 |
|
672 /** |
|
673 * Cancel a download using My Videos MPX plugin. |
|
674 * |
|
675 * @param serviceName |
|
676 * @param contentId |
|
677 * @param syncCall |
|
678 */ |
|
679 virtual TInt CancelDownloadL( CStifItemParser& aItem ); |
|
680 |
|
681 /** |
|
682 * Cancel a download using My Videos MPX plugin. |
|
683 * |
|
684 * @param mpxId, if -1 then first DL's mpxId is used. |
|
685 * @param downloadId, if -1 then first DL's downloadId is used. |
|
686 * @param syncCall |
|
687 */ |
|
688 virtual TInt CancelDownloadByIdL( CStifItemParser& aItem ); |
|
689 |
|
690 /** |
|
691 * Pause a download using My Videos MPX plugin. |
|
692 * Also disables automatic resuming of paused downloads. |
|
693 * |
|
694 * @param serviceName |
|
695 * @param contentId |
|
696 * @param syncCall |
|
697 */ |
|
698 virtual TInt PauseDownloadL( CStifItemParser& aItem ); |
|
699 |
|
700 /** |
|
701 * Pause a download using My Videos MPX plugin. |
|
702 * Also disables automatic resuming of paused downloads. |
|
703 * |
|
704 * @param url |
|
705 */ |
|
706 TInt PauseDownloadByUrlL( CStifItemParser& aItem ); |
|
707 |
|
708 /** |
|
709 * Wait all downloads to complete. |
|
710 * |
|
711 * @param timeout minutes (default 10) |
|
712 */ |
|
713 virtual TInt WaitAllDownloadsL( CStifItemParser& aItem ); |
|
714 |
|
715 /** |
|
716 * Starts a wait for message or messages of same type. |
631 * Starts a wait for message or messages of same type. |
717 * STIF script is signaled when all of the messages have been |
632 * STIF script is signaled when all of the messages have been |
718 * received. |
633 * received. |
719 * |
634 * |
720 * @param message type |
635 * @param message type |
816 RPointerArray<HBufC> iSideloadedFiles; |
731 RPointerArray<HBufC> iSideloadedFiles; |
817 |
732 |
818 // Folders used for sideloading. |
733 // Folders used for sideloading. |
819 RPointerArray<HBufC> iSideloadFolders; |
734 RPointerArray<HBufC> iSideloadFolders; |
820 |
735 |
821 // CIptvTestActiveWait |
736 // CVcxTestActiveWait |
822 CIptvTestActiveWait* iActiveWait; |
737 CVcxTestActiveWait* iActiveWait; |
823 |
738 |
824 // CIptvTestActiveWait |
739 // CVcxTestActiveWait |
825 CIptvTestActiveWait* iActiveWaitBlocking; |
740 CVcxTestActiveWait* iActiveWaitBlocking; |
826 |
741 |
827 TBool iDeleteSideloadedFilesAndFolders; |
742 TBool iDeleteSideloadedFilesAndFolders; |
828 |
743 |
829 // List of messages which are in currently waited. |
744 // List of messages which are in currently waited. |
830 // Failed messages cause signal always. |
745 // Failed messages cause signal always. |
835 TBool iWaitingForAllMessages; |
750 TBool iWaitingForAllMessages; |
836 |
751 |
837 // Seconds to wait before message is got, default is 5 |
752 // Seconds to wait before message is got, default is 5 |
838 TInt iMessageWaitTimeout; |
753 TInt iMessageWaitTimeout; |
839 |
754 |
840 TBool iWaitingForAllDownloads; |
|
841 |
|
842 // Wait is not called from script but from test module. |
755 // Wait is not called from script but from test module. |
843 TBool iMessageWaitIsBlocking; |
756 TBool iMessageWaitIsBlocking; |
844 |
757 |
845 //#ifdef __WINSCW__ |
758 //#ifdef __WINSCW__ |
846 RHarvesterClient iClient; |
759 RHarvesterClient iClient; |
847 //#endif // __WINSCW__ |
760 //#endif // __WINSCW__ |
848 |
761 |
849 // Timeout timer |
762 // Timeout timer |
850 CIptvTestTimer* iTimeoutTimer; |
763 CVcxTestTimer* iTimeoutTimer; |
851 |
764 |
852 TBuf<256> iCaseId; |
765 TBuf<256> iCaseId; |
853 |
766 |
854 TBool iLoggingEnabled; |
767 TBool iLoggingEnabled; |
855 |
768 |
856 CIptvTestTimer* iCoolDownTimer; |
769 CVcxTestTimer* iCoolDownTimer; |
857 |
770 |
858 TBool iCoolDownWait; |
771 TBool iCoolDownWait; |
859 |
772 |
860 TInt iEventError; |
773 TInt iEventError; |
861 |
774 |
862 // Autoresume downloads |
|
863 TBool iAutoResume; |
|
864 |
|
865 CMPXMedia* iMpxMedia; |
775 CMPXMedia* iMpxMedia; |
866 |
776 |
867 TBool iFileCheckDisabled; |
777 TBool iFileCheckDisabled; |
868 |
|
869 TInt iLastDownloadError; |
|
870 |
778 |
871 CVCXMyVideosTestServiceEmu* iServiceEmu; |
779 CVCXMyVideosTestServiceEmu* iServiceEmu; |
872 |
780 |
873 CVCXTestMdsDbModifier* iMdsDbModifier; |
781 CVCXTestMdsDbModifier* iMdsDbModifier; |
874 |
782 |
878 TBool iCancelNextOperation; |
786 TBool iCancelNextOperation; |
879 |
787 |
880 // This is for passing media count check when mpx plugin build is urel, |
788 // This is for passing media count check when mpx plugin build is urel, |
881 // which causes add media cmd to fail. |
789 // which causes add media cmd to fail. |
882 TInt iAddMediaCmdCount; |
790 TInt iAddMediaCmdCount; |
883 |
|
884 // Class to hold robustness and performance data. |
|
885 CVCXTestStatsKeeper* iStats; |
|
886 |
|
887 TBool iStatsEnabled; |
|
888 }; |
791 }; |
889 |
792 |
890 #endif // VCXMYVIDEOSCOLLECTIONPLUGINTEST_H |
793 #endif // VCXMYVIDEOSCOLLECTIONPLUGINTEST_H |
891 |
794 |
892 // End of File |
795 // End of File |