|
1 /* |
|
2 * Copyright (c) 2009 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: video playlist utility class stub for unit testing |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 #include <mpxmedia.h> |
|
21 |
|
22 #include "videoplaylistutility.h" |
|
23 #include "mpxvideo_debug.h" |
|
24 |
|
25 CVideoPlaylistUtility::CVideoPlaylistUtility() |
|
26 { |
|
27 MPX_DEBUG(_L("CVideoPlaylistUtility::CVideoPlaylistUtility()")); |
|
28 } |
|
29 |
|
30 CVideoPlaylistUtility::~CVideoPlaylistUtility() |
|
31 { |
|
32 MPX_DEBUG(_L("CVideoPlaylistUtility::~CVideoPlaylistUtility()")); |
|
33 } |
|
34 |
|
35 CVideoPlaylistUtility* CVideoPlaylistUtility::NewL() |
|
36 { |
|
37 MPX_DEBUG(_L("CVideoPlaylistUtility::NewL()")); |
|
38 |
|
39 CVideoPlaylistUtility* p = new CVideoPlaylistUtility(); |
|
40 return p; |
|
41 } |
|
42 |
|
43 void CVideoPlaylistUtility::GetFileInfoL( RFile& /* aFile */, |
|
44 CMediaRecognizer::TMediaType /* aMediaType */, |
|
45 TBool& aSingleLink, |
|
46 TBool& aLocalFile) |
|
47 { |
|
48 MPX_DEBUG(_L("CVideoPlaylistUtility::GetFileInfoL( RFile )")); |
|
49 |
|
50 aSingleLink = ETrue; |
|
51 aLocalFile = EFalse; |
|
52 } |
|
53 |
|
54 void CVideoPlaylistUtility::GetFileInfoL( const TDesC& /* aFileName */, |
|
55 CMediaRecognizer::TMediaType /* aMediaType */, |
|
56 TBool& aSingleLink, |
|
57 TBool& aLocalFile) |
|
58 { |
|
59 MPX_DEBUG(_L("CVideoPlaylistUtility::GetFileInfoL( aFileName )")); |
|
60 |
|
61 aSingleLink = ETrue; |
|
62 aLocalFile = EFalse; |
|
63 } |
|
64 |
|
65 |
|
66 |
|
67 CMPXMedia* CVideoPlaylistUtility::GetPlayListL( TInt /* aAccessPointId */) |
|
68 { |
|
69 MPX_DEBUG(_L("CVideoPlaylistUtility::GetPlayListL()")); |
|
70 |
|
71 CMPXMedia* playlist = NULL; |
|
72 return playlist; |
|
73 } |
|
74 |
|
75 |
|
76 TBool CVideoPlaylistUtility::IsSeekable() |
|
77 { |
|
78 MPX_DEBUG(_L("CVideoPlaylistUtility::IsSeekable()")); |
|
79 return ETrue; |
|
80 } |
|
81 |
|
82 |
|
83 TPtrC CVideoPlaylistUtility::GetLinkLC() |
|
84 { |
|
85 MPX_DEBUG(_L("CVideoPlaylistUtility::GetLinkLC()")); |
|
86 |
|
87 _LIT(KTestRtspUrl, "rtsp://testserver/test.3gp"); |
|
88 |
|
89 TBool localUrl; |
|
90 HBufC* tempBuffer = HBufC::NewLC( 255 ); |
|
91 |
|
92 TPtr tempurl(tempBuffer->Des()); |
|
93 |
|
94 tempurl.Append(KTestRtspUrl); |
|
95 |
|
96 return tempurl; |
|
97 } |