83
|
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: Image transaction element
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef C_IMAGETRANSACTIONELEMENT_H
|
|
20 |
#define C_IMAGETRANSACTIONELEMENT_H
|
|
21 |
|
|
22 |
#include "transactionelement.h"
|
|
23 |
|
|
24 |
class CGulIcon;
|
|
25 |
class CXnNodeAppIf;
|
|
26 |
|
|
27 |
namespace AiUtility
|
|
28 |
{
|
|
29 |
class CContentPriorityMap;
|
|
30 |
}
|
|
31 |
|
|
32 |
namespace AiXmlUiController
|
|
33 |
{
|
|
34 |
|
|
35 |
/**
|
|
36 |
* @ingroup group_xmluicontroller
|
|
37 |
*
|
|
38 |
* CImageTransactionElement is a transaction element for publishing images.
|
|
39 |
*
|
|
40 |
* @lib AiXmlUiMain
|
|
41 |
*/
|
|
42 |
class CImageTransactionElement : public CTransactionElement
|
|
43 |
{
|
|
44 |
|
|
45 |
public:
|
|
46 |
|
|
47 |
static CImageTransactionElement*
|
|
48 |
NewL( AiUtility::CContentPriorityMap& aContentPriorityMap );
|
|
49 |
|
|
50 |
virtual ~CImageTransactionElement();
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Initializes this transaction element.
|
|
54 |
*
|
|
55 |
* @param aTarget the node to publish bitmap and mask.
|
|
56 |
* @param aIcon the icon to publish. Ownership is transferred.
|
|
57 |
*/
|
|
58 |
void InitializeL(CXnNodeAppIf& aTarget, CGulIcon* aIcon );
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Initializes this transaction element from file.
|
|
62 |
*
|
|
63 |
* @param aTarget the node to publish bitmap.
|
|
64 |
* @param aFile the open file handle to read bitmap data.
|
|
65 |
*/
|
|
66 |
void InitializeL(CXnNodeAppIf& aTarget,
|
|
67 |
RFile& aFile);
|
|
68 |
|
|
69 |
static TBool IsSupported( CXnNodeAppIf& aTarget );
|
|
70 |
|
|
71 |
void Reset();
|
|
72 |
|
|
73 |
void UpdateDataL();
|
|
74 |
|
|
75 |
|
|
76 |
private:
|
|
77 |
|
|
78 |
CImageTransactionElement( AiUtility::CContentPriorityMap& aContentPriorityMap );
|
|
79 |
|
|
80 |
void CheckTypeL( CXnNodeAppIf& aTarget );
|
|
81 |
|
|
82 |
private: // data
|
|
83 |
|
|
84 |
|
|
85 |
/**
|
|
86 |
* Icon to be published.
|
|
87 |
* Own.
|
|
88 |
*/
|
|
89 |
CGulIcon* iIcon;
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Icon filename.
|
|
93 |
*/
|
|
94 |
TFileName iFilename;
|
|
95 |
};
|
|
96 |
|
|
97 |
} // namespace AiXmlUiController
|
|
98 |
|
|
99 |
#endif // C_IMAGETRANSACTIONELEMENT_H
|
|
100 |
|
|
101 |
// End of file
|
|
102 |
|