34
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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: Presents plugin info using states uid, interface, type and name
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef C_CPLUGININFO_H
|
|
21 |
#define C_CPLUGININFO_H
|
|
22 |
|
|
23 |
#include <e32base.h>
|
|
24 |
|
|
25 |
namespace hspswrapper{
|
|
26 |
|
|
27 |
/**
|
|
28 |
* Presents plugin info using states uid, interface, type and name
|
|
29 |
*
|
|
30 |
* @code
|
|
31 |
* @endcode
|
|
32 |
*
|
|
33 |
* @lib xnlayoutengine.lib
|
|
34 |
* @since S60 v5.0
|
|
35 |
*/
|
|
36 |
class CPluginInfo : public CBase
|
|
37 |
{
|
|
38 |
public:
|
|
39 |
/**
|
|
40 |
* Two-phased constructor.
|
|
41 |
*/
|
|
42 |
IMPORT_C static CPluginInfo* NewL();
|
|
43 |
IMPORT_C static CPluginInfo* NewLC();
|
|
44 |
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Destructor.
|
|
48 |
*/
|
|
49 |
IMPORT_C virtual ~CPluginInfo();
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Set configuration uid
|
|
53 |
*
|
|
54 |
* @param aUid configuration uid
|
|
55 |
*/
|
|
56 |
IMPORT_C CPluginInfo& SetUidL(const TDesC8& aUid);
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Get configuration uid
|
|
60 |
*
|
|
61 |
* @return configuration uid or KNullDesC8
|
|
62 |
*/
|
|
63 |
IMPORT_C const TDesC8& Uid()const;
|
|
64 |
|
|
65 |
/**
|
|
66 |
* Set configuration type
|
|
67 |
*
|
|
68 |
* @param aType configuration type
|
|
69 |
*/
|
|
70 |
IMPORT_C CPluginInfo& SetTypeL(const TDesC8& aType);
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Get configuration type
|
|
74 |
*
|
|
75 |
* @return configuration type or KNullDesC8
|
|
76 |
*/
|
|
77 |
IMPORT_C const TDesC8& Type()const;
|
|
78 |
|
|
79 |
/**
|
|
80 |
* Set configuration interface
|
|
81 |
*
|
|
82 |
* @param aInterface configuration interface
|
|
83 |
*/
|
|
84 |
IMPORT_C CPluginInfo& SetInterfaceL(const TDesC8& aInterface);
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Get configuration interface
|
|
88 |
*
|
|
89 |
* @return configuration interface or KNullDesC8
|
|
90 |
*/
|
|
91 |
IMPORT_C const TDesC8& Interface()const;
|
|
92 |
|
|
93 |
/**
|
|
94 |
* Set configuration name
|
|
95 |
*
|
|
96 |
* @param aName configuration name
|
|
97 |
*/
|
|
98 |
IMPORT_C CPluginInfo& SetNameL(const TDesC8& aName);
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Get configuration name
|
|
102 |
*
|
|
103 |
* @return configuration name or KNullDesC8
|
|
104 |
*/
|
|
105 |
IMPORT_C const TDesC8& Name()const;
|
|
106 |
|
|
107 |
/**
|
|
108 |
* Set configuration state
|
|
109 |
*
|
|
110 |
* @param aConfigurationState configuration state
|
|
111 |
*/
|
|
112 |
IMPORT_C CPluginInfo& SetConfigurationStateL(
|
|
113 |
const TDesC8& aConfigurationState);
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Get configuration state
|
|
117 |
*
|
|
118 |
* @return configuration state or KNullDesC8
|
|
119 |
*/
|
|
120 |
IMPORT_C const TDesC8& ConfigurationState()const;
|
|
121 |
|
|
122 |
/**
|
|
123 |
* Set widget multiinstance
|
|
124 |
*
|
|
125 |
* @param aMultiInstance widget multiinstance
|
|
126 |
*/
|
|
127 |
IMPORT_C CPluginInfo& SetMultiInstanceL( const TInt32 aMultiInstance );
|
|
128 |
|
|
129 |
/**
|
|
130 |
* Get widget multiinstance
|
|
131 |
*
|
|
132 |
* @return widget multiinstance or KNullDesC8
|
|
133 |
*/
|
|
134 |
IMPORT_C const TInt32& MultiInstance()const;
|
|
135 |
|
|
136 |
|
|
137 |
/**
|
|
138 |
* Get max children for the plugin
|
|
139 |
*
|
|
140 |
* @return max children
|
|
141 |
*/
|
|
142 |
IMPORT_C const TInt32& MaxChild() const;
|
|
143 |
|
|
144 |
/**
|
|
145 |
* Set maximum of children allowed
|
|
146 |
*
|
|
147 |
* @param aMaxChild max. number of children
|
|
148 |
*/
|
|
149 |
IMPORT_C CPluginInfo& SetMaxChild( const TInt32 aMaxChild );
|
|
150 |
|
|
151 |
/**
|
|
152 |
* Set widget description (TDesC8)
|
|
153 |
*
|
|
154 |
* @param aDescription widget description
|
|
155 |
*/
|
|
156 |
IMPORT_C CPluginInfo& SetDescriptionL( const TDesC8& aDescription );
|
|
157 |
|
|
158 |
/**
|
|
159 |
* Get widget description
|
|
160 |
*
|
|
161 |
* @return Description widget description or KNullDesC
|
|
162 |
*/
|
|
163 |
IMPORT_C const TDesC8& Description() const;
|
|
164 |
|
|
165 |
/**
|
|
166 |
* Set Logo icon
|
|
167 |
*
|
|
168 |
* @param aLogoIcon logo icon
|
|
169 |
*/
|
|
170 |
IMPORT_C CPluginInfo& SetLogoIconL( const TDesC& aLogoIcon );
|
|
171 |
|
|
172 |
/**
|
|
173 |
* Set Logo icon (TDesC8)
|
|
174 |
*
|
|
175 |
* @param aLogoIcon logo icon
|
|
176 |
*/
|
|
177 |
IMPORT_C CPluginInfo& SetLogoIconL( const TDesC8& aLogoIcon );
|
|
178 |
|
|
179 |
/**
|
|
180 |
* Get Logo icon
|
|
181 |
*
|
|
182 |
* @return LogoIcon logo icon or KNullDesC
|
|
183 |
*/
|
|
184 |
IMPORT_C const TDesC& LogoIcon() const;
|
|
185 |
|
|
186 |
private:
|
|
187 |
|
|
188 |
CPluginInfo();
|
|
189 |
|
|
190 |
void ConstructL();
|
|
191 |
|
|
192 |
|
|
193 |
private: // data
|
|
194 |
|
|
195 |
/**
|
|
196 |
* Own. Plugin uid
|
|
197 |
*/
|
|
198 |
HBufC8* iUid;
|
|
199 |
|
|
200 |
/**
|
|
201 |
* Own. Plugin interface
|
|
202 |
*/
|
|
203 |
HBufC8* iInterface;
|
|
204 |
|
|
205 |
/**
|
|
206 |
* Own. Plugin type
|
|
207 |
*/
|
|
208 |
HBufC8* iType;
|
|
209 |
|
|
210 |
/**
|
|
211 |
* Own. Plugin name
|
|
212 |
*/
|
|
213 |
HBufC8* iName;
|
|
214 |
|
|
215 |
/**
|
|
216 |
* Own. Plugin configuration state
|
|
217 |
*/
|
|
218 |
HBufC8* iConfigurationState;
|
|
219 |
|
|
220 |
/**
|
|
221 |
* Number of children allowed
|
|
222 |
*/
|
|
223 |
TInt32 iMaxChilds;
|
|
224 |
|
|
225 |
/**
|
|
226 |
* Own. Plugin description
|
|
227 |
*/
|
|
228 |
HBufC8* iDescription;
|
|
229 |
|
|
230 |
/**
|
|
231 |
* Own. Plugin logo icon
|
|
232 |
*/
|
|
233 |
HBufC* iLogoIcon;
|
|
234 |
|
|
235 |
/**
|
|
236 |
* Own. Plugin instances
|
|
237 |
*/
|
|
238 |
TInt32 iMultiInstance;
|
|
239 |
};
|
|
240 |
}
|
|
241 |
|
|
242 |
#endif // C_CPLUGININFO_H
|