1 /* |
|
2 * Copyright (c) 2006-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 "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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IRBROWSECATAGORYITEMS_H |
|
20 #define IRBROWSECATAGORYITEMS_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class RReadStream; |
|
25 class RWriteStream; |
|
26 |
|
27 /** |
|
28 * This class provides the basic structure to hold the browse information |
|
29 *information that come from the isds server. |
|
30 *It also provides the basic getter and setter functions to |
|
31 *manage the browse information. |
|
32 * @code |
|
33 *CIRBrowseCatagoryItems* browse = CIRBrowseCatagoryItems::NewL() |
|
34 *browse->SetXXX(); |
|
35 *browse->GetXXX() |
|
36 * *browse = *browse2 |
|
37 *delete browse; |
|
38 * @endcode |
|
39 * |
|
40 */ |
|
41 |
|
42 class CIRBrowseCatagoryItems : public CBase |
|
43 { |
|
44 public : |
|
45 |
|
46 /** |
|
47 *CIRBrowseCatagoryItems::NewL() |
|
48 *Static function |
|
49 *standard two phased constructor |
|
50 *@return CIRBrowseCatagoryItems* |
|
51 */ |
|
52 IMPORT_C static CIRBrowseCatagoryItems* NewL(); |
|
53 |
|
54 |
|
55 /** |
|
56 *CIRBrowseCatagoryItems::NewL() |
|
57 *Static function |
|
58 *standard two phased constructor |
|
59 *@return CIRBrowseCatagoryItems* |
|
60 */ |
|
61 IMPORT_C static CIRBrowseCatagoryItems* NewLC(); |
|
62 |
|
63 /** |
|
64 *CIRBrowseCatagoryItems::ConstructL() |
|
65 *standard second phase constructor |
|
66 */ |
|
67 void ConstructL() const; |
|
68 |
|
69 /** |
|
70 *CIRBrowseCatagoryItems::~CIRBrowseCatagoryItems() |
|
71 *standard C++ destructor |
|
72 */ |
|
73 ~CIRBrowseCatagoryItems(); |
|
74 |
|
75 /** |
|
76 *CIRBrowseCatagoryItems::SetTextL() |
|
77 *sets the category name and category id |
|
78 **/ |
|
79 IMPORT_C void SetTextL(const TDesC& aCatName,const TDesC& aCatId); |
|
80 |
|
81 /** |
|
82 *CIRBrowseCatagoryItems::SetSize() |
|
83 *sets the count of the no of items present under that type |
|
84 */ |
|
85 IMPORT_C void SetSize(const TDesC& aCatSize); |
|
86 |
|
87 /** |
|
88 *CIRBrowseCatagoryItems::SetGetOperation() |
|
89 *sets the url that is used to get the next level of data |
|
90 */ |
|
91 IMPORT_C void SetGetOperation(const TDesC& aCatGetOperation); |
|
92 |
|
93 /** |
|
94 *CIRBrowseCatagoryItems::SetBannerUrl(const TDesC& aBannerUrl) |
|
95 *Set data Banner Url |
|
96 *@param TDesC |
|
97 */ |
|
98 IMPORT_C void SetBannerUrl(const TDesC& aBannerUrl); |
|
99 |
|
100 |
|
101 /** |
|
102 *CIRBrowseCatagoryItems::SetClickThroughUrl(const TDesC& aClickThroughUrl) |
|
103 *Set data Banner Url |
|
104 *@param TDesC |
|
105 */ |
|
106 IMPORT_C void SetClickThroughUrl(const TDesC& aClickThroughUrl); |
|
107 |
|
108 /** |
|
109 *CIRBrowseCatagoryItems::ExternalizeL() |
|
110 *Externalizes the data from file |
|
111 *@param RWriteStream |
|
112 **/ |
|
113 IMPORT_C void ExternalizeL(RWriteStream& aStream) const; |
|
114 |
|
115 |
|
116 /** |
|
117 *CIRBrowseCatagoryItems::InternalizeL() |
|
118 *Internalizes the data from file |
|
119 *@param RWriteStream& |
|
120 **/ |
|
121 IMPORT_C void InternalizeL(RReadStream& aStream); |
|
122 |
|
123 |
|
124 public: |
|
125 //category name |
|
126 HBufC* iCatName; |
|
127 //category id |
|
128 HBufC* iCatId; |
|
129 //get operation |
|
130 HBufC* iCatGetOperation; |
|
131 //no of entities |
|
132 TInt iSize; |
|
133 |
|
134 //For Advertisements |
|
135 HBufC* iCatBannerUrl; |
|
136 HBufC* iCatClickThroughUrl; |
|
137 }; |
|
138 |
|
139 #endif// IRBROWSECATAGORYITEMS_H |
|