|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This is the header file for CT_MsgUtilsCentralRepository class and |
|
15 // contains the common utility functions that use the Central Repository |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __T_UTILS_CENTRAL_REPOSITORY_H__ |
|
20 #define __T_UTILS_CENTRAL_REPOSITORY_H__ |
|
21 |
|
22 |
|
23 // epoc includes |
|
24 #include <cemailaccounts.h> |
|
25 |
|
26 /** |
|
27 Implements the utility functions related to the Central Repository |
|
28 */ |
|
29 class CT_MsgUtilsCentralRepository |
|
30 { |
|
31 public: |
|
32 IMPORT_C CT_MsgUtilsCentralRepository(); |
|
33 ~CT_MsgUtilsCentralRepository(); |
|
34 |
|
35 // Gets the Imap service Id based on the account name |
|
36 IMPORT_C static TMsvId GetImapServiceIdL(TDes& aAccountName); |
|
37 |
|
38 // Gets the Pop service Id based on the account name |
|
39 IMPORT_C static TMsvId GetPopServiceIdL(TDes& aAccountName); |
|
40 |
|
41 // Gets the Smtp service Id based on the account name |
|
42 IMPORT_C static TMsvId GetSmtpServiceIdL(TDes& aAccountName); |
|
43 |
|
44 // Gets the default Smtp service Id |
|
45 IMPORT_C static TMsvId GetDefaultSmtpServiceIdL(); |
|
46 |
|
47 // Checks if the specified Imap account is present in the Central Repository |
|
48 IMPORT_C static TBool GetImapAccountL( TDes& aAccountName, TImapAccount& aImapAccount ); |
|
49 |
|
50 // Checks if the specified Pop account is present in the Central Repository |
|
51 IMPORT_C static TBool GetPopAccountL( TDes& aAccountName, TPopAccount& aPopAccount ); |
|
52 |
|
53 // Checks if the specified Smtp account is present in the Central Repository |
|
54 IMPORT_C static TBool GetSmtpAccountL(TDes& aAccountName, TSmtpAccount& aSmtpAccount); |
|
55 }; |
|
56 #endif //__T_UTILS_CENTRAL_REPOSITORY_H__ |