|
1 /* |
|
2 * Copyright (c) 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: CSimplePluginVariation implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CSIMPLEPLUGINVARIATION_H |
|
22 #define CSIMPLEPLUGINVARIATION_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 class CRepository; |
|
27 |
|
28 /** |
|
29 * CSimplePluginVariation |
|
30 * |
|
31 * Implementation of MXIMPProtocolConnection |
|
32 * |
|
33 * @lib ?library |
|
34 * @since s60 v5.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS(CSimplePluginVariation) : public CBase |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 enum TSimplePluginAuthRule |
|
42 { |
|
43 ERuleNone, |
|
44 ERulePoliteBlock, |
|
45 ERuleBlock, |
|
46 ERuleConfirm, |
|
47 ERuleAllow |
|
48 }; |
|
49 |
|
50 static CSimplePluginVariation* NewL( ); |
|
51 |
|
52 ~CSimplePluginVariation(); |
|
53 |
|
54 private: |
|
55 |
|
56 CSimplePluginVariation(); |
|
57 |
|
58 |
|
59 void ConstructL( ); |
|
60 |
|
61 |
|
62 public: |
|
63 |
|
64 /** |
|
65 * Get data from CenRep |
|
66 */ |
|
67 void InitL(); |
|
68 |
|
69 /** |
|
70 * Grant rule name |
|
71 * @return rule name |
|
72 */ |
|
73 TPtrC GrantRuleName(); |
|
74 |
|
75 /** |
|
76 * Grant own rule name |
|
77 * @return rule name |
|
78 */ |
|
79 TPtrC GrantOwnRuleName(); |
|
80 |
|
81 /** |
|
82 * Default rule name |
|
83 * @return rule name |
|
84 */ |
|
85 TPtrC DefaultRuleName(); |
|
86 |
|
87 /** |
|
88 * Block rule name |
|
89 * @return rule name |
|
90 */ |
|
91 TPtrC BlockRuleName(); |
|
92 |
|
93 /** |
|
94 * Default rule action |
|
95 * @return action |
|
96 */ |
|
97 TSimplePluginAuthRule DefaultRuleAction(); |
|
98 |
|
99 /** |
|
100 * Block rule action |
|
101 * @return action |
|
102 */ |
|
103 TSimplePluginAuthRule BlockRuleAction(); |
|
104 |
|
105 /** |
|
106 * RlsGroupUriTemplate |
|
107 * @return RlsGroupUriTemplate |
|
108 */ |
|
109 TPtrC RlsGroupUriTemplate(); |
|
110 |
|
111 /** |
|
112 * SharedXdmTop |
|
113 * @return SharedXdmTop |
|
114 */ |
|
115 TPtrC SharedXdmTop(); |
|
116 |
|
117 /** |
|
118 * GrantListName |
|
119 * @return GrantListName |
|
120 */ |
|
121 TPtrC GrantListName(); |
|
122 |
|
123 private: |
|
124 |
|
125 void InitGrantRuleNameL( CRepository* aRepository ); |
|
126 |
|
127 void InitGrantOwnRuleNameL( CRepository* aRepository ); |
|
128 |
|
129 void InitDefaultRuleNameL( CRepository* aRepository ); |
|
130 |
|
131 void InitBlockRuleNameL( CRepository* aRepository ); |
|
132 |
|
133 void InitDefaultRuleActionL( CRepository* aRepository ); |
|
134 |
|
135 void InitBlockRuleActionL( CRepository* aRepository ); |
|
136 |
|
137 void InitRlsGroupUriTemplateL( CRepository* aRepository ); |
|
138 |
|
139 void InitSharedXdmTopL( CRepository* aRepository ); |
|
140 |
|
141 void InitGrantListNameL( CRepository* aRepository ); |
|
142 |
|
143 |
|
144 private: // data members |
|
145 |
|
146 /** |
|
147 * Id for rule to grant all elements |
|
148 * Own |
|
149 */ |
|
150 HBufC* iGrantAllRuleName; |
|
151 |
|
152 /** |
|
153 * Id for rule to grant own data |
|
154 * Own |
|
155 */ |
|
156 HBufC* iGrantOwnRuleName; |
|
157 |
|
158 /** |
|
159 * Id for default rule |
|
160 * Own |
|
161 */ |
|
162 HBufC* iDefaultRuleName; |
|
163 |
|
164 /** |
|
165 * Id for block rule |
|
166 * Own |
|
167 */ |
|
168 HBufC* iBlockRuleName; |
|
169 |
|
170 /** |
|
171 * Default rule action, allow/confirm/block/polite-block |
|
172 */ |
|
173 TSimplePluginAuthRule iDefaultRuleAction; |
|
174 |
|
175 /** |
|
176 * Block rule action, block/polite-block |
|
177 */ |
|
178 TSimplePluginAuthRule iBlockRuleAction; |
|
179 |
|
180 /** |
|
181 * Template for RLS service URI for a user group |
|
182 * Own |
|
183 */ |
|
184 HBufC* iRlsGroupUriTemplate; |
|
185 |
|
186 /** |
|
187 * Top level for lists in shared XDM index document |
|
188 * Own |
|
189 */ |
|
190 HBufC* iSharedXdmTop; |
|
191 |
|
192 /** |
|
193 * Name of list for granted users in XDM list |
|
194 * Own |
|
195 */ |
|
196 HBufC* iGrantListName; |
|
197 |
|
198 }; |
|
199 |
|
200 |
|
201 #endif // CSIMPLEPLUGINVARIATION_H |