|
1 /* |
|
2 * Copyright (c) 2004-2007 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: Category information* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CIPTVEPGCATEGORY_H |
|
21 #define CIPTVEPGCATEGORY_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include "CIptvUtil.h" |
|
25 |
|
26 /** |
|
27 * Category info describtor. |
|
28 * |
|
29 * @lib IptvClientApi.lib |
|
30 * @since Engine 1.0 |
|
31 */ |
|
32 class CIptvEpgCategory : public CBase |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 IMPORT_C static CIptvEpgCategory* NewL(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CIptvEpgCategory(); |
|
46 |
|
47 private: // New functions |
|
48 |
|
49 /** |
|
50 * C++ default constructor. |
|
51 */ |
|
52 CIptvEpgCategory(); |
|
53 |
|
54 public: // Data |
|
55 |
|
56 /** |
|
57 * Unique key for database indexing. |
|
58 */ |
|
59 TUint32 iKey; |
|
60 |
|
61 /** |
|
62 * Parent category key, unique key for database indexing. |
|
63 */ |
|
64 TUint32 iParentKey; |
|
65 |
|
66 /** |
|
67 * Content Id from service provider. |
|
68 */ |
|
69 TBuf<KIptvIdMaxLength> iId; |
|
70 |
|
71 /** |
|
72 * Category name. |
|
73 */ |
|
74 TBuf<KIptvEpgCategoryNameMaxLength> iName; |
|
75 |
|
76 /** |
|
77 * Icon file id. |
|
78 */ |
|
79 TUint32 iIconFileId; |
|
80 |
|
81 /** |
|
82 * ETrue: iIconFilePath is URL where icon can be downloaded. |
|
83 * EFalse: iIconFilePath is icons path to local filesystem. |
|
84 */ |
|
85 TBool iIsIconFilePathUrl; |
|
86 |
|
87 /** |
|
88 * Icon file path, see iUrl. |
|
89 */ |
|
90 TBuf<KIptvEpgCategoryIconFilePathMaxLength> iIconFilePath; |
|
91 |
|
92 /** |
|
93 * Category description. |
|
94 */ |
|
95 TBuf<KIptvEpgCategoryDescriptionMaxLength> iDescription; |
|
96 |
|
97 /** |
|
98 * Indicates when the item was published. |
|
99 */ |
|
100 TTime iPubDate; |
|
101 |
|
102 /** |
|
103 * Number of items in this category. |
|
104 */ |
|
105 TUint32 iContentCount; |
|
106 }; |
|
107 |
|
108 #endif // CIPTVEPGCATEGORY.H |