|
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 IRADVERTISEMENT_H |
|
20 #define IRADVERTISEMENT_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 *This class is being used by xml parser. |
|
26 *code is ready to support advertisement |
|
27 *not being used in current release |
|
28 */ |
|
29 |
|
30 class CIRAdvertisement : public CBase |
|
31 { |
|
32 public : |
|
33 |
|
34 /** |
|
35 *CIRAdvertisement::NewL() |
|
36 *Static function |
|
37 *standard two phased constructor |
|
38 *@return CIRAdvertisement* |
|
39 */ |
|
40 IMPORT_C static CIRAdvertisement* NewLC(); |
|
41 |
|
42 /** |
|
43 *CIRAdvertisement::NewL() |
|
44 *Static function |
|
45 *standard two phased constructor |
|
46 *@return CIRAdvertisement* |
|
47 */ |
|
48 IMPORT_C static CIRAdvertisement* NewL(); |
|
49 |
|
50 /** |
|
51 *CIRAdvertisement::ConstructL() |
|
52 *standard second phase constructor |
|
53 */ |
|
54 IMPORT_C void ConstructL() const; |
|
55 |
|
56 /** |
|
57 *CIRAdvertisement::~CIRAdvertisement() |
|
58 *standard C++ destructor |
|
59 */ |
|
60 ~CIRAdvertisement(); |
|
61 |
|
62 /** |
|
63 *CIRAdvertisement::SetAdvInUse() |
|
64 *Function to set the advertisement in use |
|
65 *@param TDesC |
|
66 */ |
|
67 IMPORT_C void SetAdvInUse(const TDesC& aAdvInUse); |
|
68 |
|
69 /** |
|
70 *CIRAdvertisement::SetUsage() |
|
71 *Function to set the url of the global advertisement |
|
72 *@param TDesC |
|
73 */ |
|
74 IMPORT_C void SetUsage(const TDesC& aUsageVisibleTimes); |
|
75 |
|
76 /** |
|
77 *CIRAdvertisement::SetVisibleTime() |
|
78 *Function to set the duration of the advertisement to be displayed |
|
79 *@param TDesC |
|
80 */ |
|
81 IMPORT_C void SetVisibleTime(const TDesC& aVisibleTime); |
|
82 |
|
83 /** |
|
84 *CIRAdvertisement::SetURL() |
|
85 *Function to set the url of the global advertisement |
|
86 *@param TDesC |
|
87 */ |
|
88 IMPORT_C void SetURL(const TDesC& aUrl); |
|
89 |
|
90 private : |
|
91 //url to fetch the ad from |
|
92 HBufC* iUrl; |
|
93 //url of the current ad in use |
|
94 HBufC* iAdvInUse; |
|
95 //defines the time for which the ad is visible |
|
96 TInt iVisibleTime; |
|
97 //no of times the ad to be shown |
|
98 TInt iUsageVisibleTimes; |
|
99 |
|
100 }; |
|
101 |
|
102 #endif//IRADVERTISEMENT_H |