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: s_enginecontmgtextfeatures.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "mvimpstengine.h" |
|
19 #include "mvimpststoragecontactsobserver.h" |
|
20 #include "mvimpstenginecchuieventobserver.h" |
|
21 |
|
22 class TVIMPSTEnums; |
|
23 class MVIMPSTEngineExtentionFeatures; |
|
24 |
|
25 class vimpstengine_stub : public MVIMPSTEngine |
|
26 { |
|
27 public: |
|
28 |
|
29 /** |
|
30 * See MVIMPSTEngine |
|
31 * |
|
32 */ |
|
33 TUint32 ServiceId() const ; |
|
34 |
|
35 |
|
36 /** |
|
37 * See MVIMPSTEngine |
|
38 * |
|
39 */ |
|
40 TVIMPSTEnums::TVIMPSTRegistrationState ServiceState() const ; |
|
41 |
|
42 |
|
43 /** |
|
44 * See MVIMPSTEngine |
|
45 * |
|
46 */ |
|
47 TInt GetBrandInfoL(TLanguage& aBrandLanguage, |
|
48 TInt& aBrandVersion, TDes8& aBrandId) const ; |
|
49 |
|
50 |
|
51 |
|
52 /** |
|
53 * See MVIMPSTEngine |
|
54 * |
|
55 */ |
|
56 TBool IsSubServiceSupportedL(TVIMPSTEnums::SubServiceType aType) const ; |
|
57 |
|
58 |
|
59 /** |
|
60 * See MVIMPSTEngine |
|
61 * |
|
62 */ |
|
63 TBool IsSubServiceEnabled(TVIMPSTEnums::SubServiceType aType) const ; |
|
64 |
|
65 /** |
|
66 * See MVIMPSTEngine |
|
67 * |
|
68 */ |
|
69 void ContactStoreIdL( |
|
70 TDes& aContactStoreId ) const ; |
|
71 |
|
72 /** |
|
73 * See MVIMPSTEngine |
|
74 * |
|
75 */ |
|
76 const TDesC& ServiceName() const ; |
|
77 |
|
78 /* |
|
79 * See MVIMPSTEngine |
|
80 */ |
|
81 TBool IsUnInstalled(); |
|
82 /** |
|
83 * See MVIMPSTEngine |
|
84 * |
|
85 */ |
|
86 void RegisterServiceSessionObserverL |
|
87 (MVIMPSTEngineServiceStateEventObserver* aObserver) ; |
|
88 |
|
89 /** |
|
90 * See MVIMPSTEngine |
|
91 * |
|
92 */ |
|
93 void UnRegisterServiceSessionObserver |
|
94 (MVIMPSTEngineServiceStateEventObserver* aObserver) ; |
|
95 |
|
96 |
|
97 /** |
|
98 * See MVIMPSTEngine |
|
99 * |
|
100 */ |
|
101 void IntializeStorageL() ; |
|
102 |
|
103 /** |
|
104 * See MVIMPSTEngine |
|
105 * |
|
106 */ |
|
107 void UnIntializeStorage() ; |
|
108 |
|
109 |
|
110 /** |
|
111 * See MVIMPSTEngine |
|
112 * |
|
113 */ |
|
114 MVIMPSTEngineSubService* SubService(TVIMPSTEnums::SubServiceType aType) const; |
|
115 |
|
116 |
|
117 /** |
|
118 * See MVIMPSTEngine |
|
119 * |
|
120 */ |
|
121 MVIMPSTEngineExtentionFeatures* ExtentionFeatures(TVIMPSTEnums::ExtentionType aType) const ; |
|
122 |
|
123 |
|
124 |
|
125 /** |
|
126 * See MVIMPSTEngine |
|
127 * |
|
128 */ |
|
129 HBufC* GetOwnUserIdFromCChOrStorageL() const; |
|
130 |
|
131 |
|
132 |
|
133 /** |
|
134 * See MVIMPSTEngine |
|
135 * |
|
136 */ |
|
137 TInt Login(); |
|
138 |
|
139 /** |
|
140 * See MVIMPSTEngine |
|
141 * |
|
142 */ |
|
143 void LogoutL(); |
|
144 |
|
145 /** |
|
146 * See MVIMPSTEngine |
|
147 * |
|
148 */ |
|
149 void DefaultDomainNameL( TDes& aDefaultDomainName ) const; |
|
150 |
|
151 /** |
|
152 * See MVIMPSTEngine |
|
153 * |
|
154 */ |
|
155 TInt ChangeConnectionL(); |
|
156 /** |
|
157 * See MVIMPSTEngine |
|
158 * |
|
159 * @return True if password is present in the settings else returns false |
|
160 * |
|
161 */ |
|
162 TBool IsPasswordAvailableL(); |
|
163 |
|
164 /** |
|
165 * See MVIMPSTEngine |
|
166 * |
|
167 */ |
|
168 TBool IsBlockSupportedL(); |
|
169 |
|
170 /** |
|
171 * See MVIMPSTEngine |
|
172 * |
|
173 */ |
|
174 void DeleteDataBaseL(); |
|
175 |
|
176 /** |
|
177 * See MVIMPSTEngine |
|
178 * |
|
179 */ |
|
180 MVIMPSTEnginePresenceSubService* GetPreseceSubService(); |
|
181 |
|
182 /** |
|
183 * See MVIMPSTEngine |
|
184 * |
|
185 */ |
|
186 void FetchBlockedListL(); |
|
187 |
|
188 /** |
|
189 * See MVIMPSTEngine |
|
190 * |
|
191 */ |
|
192 void RegisterBlockedListObserver( |
|
193 MVIMPSTEngineBlockedListFetchEventObserver* aOb); |
|
194 |
|
195 |
|
196 /** |
|
197 * See MVIMPSTEngine |
|
198 * |
|
199 */ |
|
200 void SetOwnUserIdIfChangedL(const TDesC& aUserId ) ; |
|
201 |
|
202 |
|
203 /** |
|
204 * See MVIMPSTEngine |
|
205 * |
|
206 */ |
|
207 void RetriveContextIfCChEnabledL() ; |
|
208 |
|
209 private: // From MVIMPSTEngineServiceConnectionEventObserver |
|
210 /** |
|
211 * See MVIMPSTEngineServiceConnectionEventObserver |
|
212 */ |
|
213 void HandleServceConnectionEventL(); |
|
214 |
|
215 private: |
|
216 /** |
|
217 * Returns a SubService is Supported or not |
|
218 * Components intertested in knowing whether a SubService is Supported or not can use this API |
|
219 * @param aType - Type of the SubService TVIMPSTEnums::SubServiceType - Defined in tvimpstenums.h |
|
220 * @return TBool, ETrue if the SubService is Supported in this Service, else returns EFalse |
|
221 */ |
|
222 TBool IsSubServiceSupportedInternal(TVIMPSTEnums::SubServiceType aType) const ; |
|
223 |
|
224 public: |
|
225 /** |
|
226 * Called when all the contacts are fetched from the virtual store. |
|
227 * |
|
228 * @since s60 5.0 |
|
229 */ |
|
230 void HandleContactFetchedL(); |
|
231 |
|
232 public: // From MVIMPSTStorageContactsObserver |
|
233 |
|
234 |
|
235 /** |
|
236 * HandleChange: To handle the Chnage event from the MCAStoredContactsObserver |
|
237 * @see MCAStoredContactsObserver |
|
238 * @param aList: reference to the list at which a change has occured |
|
239 * @param aContact: reference to the contact at which a change has occured |
|
240 * @param aEventType: TVIMPSTEnums::TCAObserverEventType,type of change event that has occured |
|
241 * @param aUserIdChanged, ETrue if userid has changed, else EFalse. |
|
242 * @return void |
|
243 */ |
|
244 void HandleStorageChangeL( TVIMPSTEnums::TVIMPSTStorgaeEventType aEventType, |
|
245 MVIMPSTStorageContactList* aList, |
|
246 MVIMPSTStorageContact* aContact, |
|
247 TInt aContactIndex ); |
|
248 |
|
249 |
|
250 //From MVIMPSTEngineCchUiEventObserver |
|
251 /** |
|
252 * Handles the change connection event from CCHUI |
|
253 *@ return void |
|
254 */ |
|
255 void HandleChangeConnectionEventL(); |
|
256 |
|
257 }; |
|
258 |
|