|
1 /* |
|
2 * Copyright (c) 2005-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: Transaction element for publishing empty content |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_EMPTYCONTENTTRANSACTIONELEMENT_H |
|
20 #define C_EMPTYCONTENTTRANSACTIONELEMENT_H |
|
21 |
|
22 #include "transactionelement.h" |
|
23 |
|
24 namespace AiUtility |
|
25 { |
|
26 class CContentPriorityMap; |
|
27 } |
|
28 |
|
29 namespace AiXmlUiController |
|
30 { |
|
31 |
|
32 /** |
|
33 * @ingroup group_xmluicontroller |
|
34 * |
|
35 * Transaction element for publishing empty content to UI element. |
|
36 * Empty content is published by applying empty content policy |
|
37 * |
|
38 * @lib AiXmlUiMain |
|
39 */ |
|
40 class CEmptyContentTransactionElement : public CTransactionElement |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 static CEmptyContentTransactionElement* |
|
46 NewL( AiUtility::CContentPriorityMap& aContentPriorityMap ); |
|
47 |
|
48 virtual ~CEmptyContentTransactionElement(); |
|
49 |
|
50 /** |
|
51 * Initializes this element to publish into the given UI element. |
|
52 * |
|
53 * @param aTarget target UI element. |
|
54 * @param aIndex Newsticker title index to clean |
|
55 */ |
|
56 void InitializeL( CXnNodeAppIf& aTarget, |
|
57 TInt aIndex ); |
|
58 |
|
59 protected: // from base class CTransactionElement |
|
60 |
|
61 void Reset(); |
|
62 |
|
63 void UpdateDataL(); |
|
64 |
|
65 private: |
|
66 |
|
67 CEmptyContentTransactionElement( |
|
68 AiUtility::CContentPriorityMap& aContentPriorityMap ); |
|
69 |
|
70 // Index for newsticker title to clean. |
|
71 TInt iIndex; |
|
72 |
|
73 }; |
|
74 |
|
75 } // namespace AiXmlUiController |
|
76 |
|
77 #endif // C_EMPTYCONTENTTRANSACTIONELEMENT_H |