|
1 /* |
|
2 * Copyright (c) 2004-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 the License "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: Class for selecting best video type supported by terminal.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CIPTVTERMINALVIDEOSUPPORT_H |
|
21 #define CIPTVTERMINALVIDEOSUPPORT_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include "CIptvUtil.h" |
|
25 |
|
26 class TIptvMimeType; |
|
27 class CIptvMediaContent; |
|
28 |
|
29 /** |
|
30 * Class for selecting best video type supported by terminal. |
|
31 * |
|
32 * @lib IptvUtil.lib |
|
33 * @since Video Center 2.0 |
|
34 */ |
|
35 class CIptvTerminalVideoSupport : public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 IMPORT_C static CIptvTerminalVideoSupport* NewL(); |
|
43 |
|
44 /** |
|
45 * Select best mime-type from array. |
|
46 * |
|
47 * @param aMediaContents Array of media contents. |
|
48 * @return Index of best content. |
|
49 */ |
|
50 IMPORT_C TInt SelectMimeTypeL(RPointerArray<CIptvMediaContent>& aMediaContents); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CIptvTerminalVideoSupport(); |
|
56 |
|
57 private: // New functions |
|
58 |
|
59 /** |
|
60 * C++ default constructor. |
|
61 */ |
|
62 CIptvTerminalVideoSupport(); |
|
63 |
|
64 /** |
|
65 * By default Symbian 2nd phase constructor is private. |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 /** |
|
70 * Load Mime-types from resource file. |
|
71 * |
|
72 * @param aBuffer The mime-type list from resource file as buffer. |
|
73 */ |
|
74 void LoadMimeTypesL( const HBufC8* aBuffer ); |
|
75 |
|
76 /** |
|
77 * Loads the class resources from resource file. |
|
78 */ |
|
79 void LoadResourceL(); |
|
80 |
|
81 private: // Data members |
|
82 |
|
83 /** |
|
84 * Array of Mime-Types. |
|
85 */ |
|
86 RArray<TIptvMimeType> iMimeTypes; |
|
87 }; |
|
88 |
|
89 #endif // CIPTVTERMINALVIDEOSUPPORT_H |