equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008 - 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 - 20010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
18 |
18 |
19 #ifndef CMAILCPSSETTINGS_H_ |
19 #ifndef CMAILCPSSETTINGS_H_ |
20 #define CMAILCPSSETTINGS_H_ |
20 #define CMAILCPSSETTINGS_H_ |
21 |
21 |
22 class CRepository; |
22 class CRepository; |
|
23 class CMailExternalAccount; |
23 |
24 |
24 /* |
25 /* |
25 * Callback interface for observer |
26 * Callback interface for observer |
26 * |
27 * |
27 * @lib fsmailserver.exe |
28 * @lib fsmailserver.exe |
77 * @return array of mailboxes |
78 * @return array of mailboxes |
78 */ |
79 */ |
79 RArray<TFSMailMsgId>& Mailboxes(); |
80 RArray<TFSMailMsgId>& Mailboxes(); |
80 |
81 |
81 /** |
82 /** |
|
83 * Gets array of external mailboxes from widget settings |
|
84 * @param aAccounts on completion, contains the necessary information of |
|
85 * external mailboxes that currently should have a widget |
|
86 */ |
|
87 void GetExtMailboxesL( RPointerArray<CMailExternalAccount>& aAccounts ); |
|
88 |
|
89 /** |
82 * Adds mailbox to widget settings |
90 * Adds mailbox to widget settings |
83 * Method ensures that same mailbox is not added again, if it happens |
91 * Method ensures that same mailbox is not added again, if it happens |
84 * to exist already in the settings. If already exists, method simply returns without |
92 * to exist already in the settings. If already exists, method simply returns without |
85 * doing nothing. |
93 * doing nothing. |
86 * @param aMailbox Id of the mailbox to add to settings |
94 * @param aMailbox Id of the mailbox to add to settings |
148 * @return bitmasked configuration value |
156 * @return bitmasked configuration value |
149 */ |
157 */ |
150 TInt32 Configuration(); |
158 TInt32 Configuration(); |
151 |
159 |
152 /** |
160 /** |
153 * |
161 * Return total number of all native mailboxes in the system |
154 */ |
162 */ |
155 TInt GetTotalMailboxCount(); |
163 TInt TotalIntMailboxCount(); |
|
164 |
156 |
165 |
157 /** |
166 /** |
158 * |
167 * |
159 */ |
168 */ |
160 TBool FindFromContentIdListL( const TDesC& aContentId ); |
169 TBool FindFromContentIdListL( const TDesC& aContentId ); |
167 /** |
176 /** |
168 * |
177 * |
169 */ |
178 */ |
170 void RemoveFromContentIdListL( const TDesC& aContentId ); |
179 void RemoveFromContentIdListL( const TDesC& aContentId ); |
171 |
180 |
|
181 /** |
|
182 * |
|
183 */ |
|
184 void ToggleWidgetNewMailIconL( TBool aIconOn, const TFSMailMsgId& aMailBox ); |
|
185 |
|
186 /** |
|
187 * |
|
188 */ |
|
189 TBool GetNewMailState( const TFSMailMsgId& aMailBox ); |
|
190 |
172 protected: |
191 protected: |
173 /** |
192 /** |
174 * From CActive |
193 * From CActive |
175 * Cancellation logic for the asynchronous request |
194 * Cancellation logic for the asynchronous request |
176 * |
195 * |
226 /** |
245 /** |
227 * Gets array of CenRep keys representing mailboxes configured to widget |
246 * Gets array of CenRep keys representing mailboxes configured to widget |
228 * @param aKeys array of keys |
247 * @param aKeys array of keys |
229 */ |
248 */ |
230 void GetMailboxNonZeroKeysL( RArray<TUint32>& aKeys ); |
249 void GetMailboxNonZeroKeysL( RArray<TUint32>& aKeys ); |
|
250 |
|
251 /** |
|
252 * Gets all the external mailbox identifiers |
|
253 * @param on completion, contains an array of cenrep keys that have an external |
|
254 * account specified (i.e. not empty) |
|
255 */ |
|
256 void GetExtMailboxNonZeroKeysL( RArray<TUint32>& aKeys ); |
231 |
257 |
232 /** |
258 /** |
233 * |
259 * |
234 * @param aContentId |
260 * @param aContentId |
235 */ |
261 */ |
237 |
263 |
238 /** |
264 /** |
239 * |
265 * |
240 */ |
266 */ |
241 TUint32 GetSettingToAssociate(); |
267 TUint32 GetSettingToAssociate(); |
|
268 |
|
269 CMailExternalAccount* GetExtMailboxL( TInt aKey ); |
242 |
270 |
243 private: // data |
271 private: // data |
244 // reference to mailclient |
272 // reference to mailclient |
245 CFSMailClient& iMailClient; |
273 CFSMailClient& iMailClient; |
246 // pointer to central repository |
274 // pointer to central repository |