|
1 /* |
|
2 * Copyright (c) 2008 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: Implementation of CVideoPlaylistUtility |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __VIDEOPLAYLISTUTILITY_H |
|
23 #define __VIDEOPLAYLISTUTILITY_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 #include <f32file.h> |
|
28 #include <badesca.h> |
|
29 #include <e32def.h> |
|
30 #include <mediarecognizer.h> |
|
31 #include <mpxmedia.h> |
|
32 |
|
33 // CLASS DECLARATION |
|
34 class CMPXMediaArray; |
|
35 class CStreamingLinkModel; |
|
36 |
|
37 NONSHARABLE_CLASS(CVideoPlaylistUtility) : public CBase |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 IMPORT_C static CVideoPlaylistUtility* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 IMPORT_C virtual ~CVideoPlaylistUtility(); |
|
50 |
|
51 public: // New functions |
|
52 |
|
53 IMPORT_C CMPXMedia* GetPlayListL( TInt aAccessPointId); |
|
54 IMPORT_C TPtrC GetLinkLC(); |
|
55 |
|
56 IMPORT_C void GetFileInfoL( const TDesC& aFileName, |
|
57 CMediaRecognizer::TMediaType aMediaType, |
|
58 TBool& aSingleLink, TBool& aLocalFile ); |
|
59 IMPORT_C void GetFileInfoL( RFile& aFile, |
|
60 CMediaRecognizer::TMediaType aMediaType, |
|
61 TBool& aSingleLink, TBool& aLocalFile ); |
|
62 |
|
63 IMPORT_C TBool IsSeekable(); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CVideoPlaylistUtility(); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * Reads next line from buffer |
|
81 * @since 2.0 |
|
82 * @param aLine Whole line which was read. |
|
83 * @return KErrNone or one of the system wide error codes. |
|
84 */ |
|
85 void GetItemArrayL( TInt aAccessPointId); |
|
86 |
|
87 void ComposePlaylistL(); |
|
88 |
|
89 private: // Data |
|
90 CMPXMediaArray* iPlaylistArray; |
|
91 CMPXMedia* iPlaylist; |
|
92 CStreamingLinkModel* iStreamingLinkModel; |
|
93 TBool iAsx; |
|
94 }; |
|
95 |
|
96 #endif // __VIDEOPLAYLISTUTILITY_H |
|
97 |
|
98 // End of File |