|
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 file contains the utility functions to map a string to the corresponding enumerator values. |
|
15 // |
|
16 // |
|
17 |
|
18 // User includes |
|
19 #include <t_utilsenumconverter.h> |
|
20 |
|
21 // epoc includes |
|
22 #include <msvids.h> |
|
23 #include <cdbcols.h> |
|
24 |
|
25 // Literals Used |
|
26 |
|
27 // Local Folder Ids |
|
28 _LIT(KStrGlobalInBoxIndexEntryId,"KMsvGlobalInBoxIndexEntryId"); |
|
29 _LIT(KStrGlobalOutBoxIndexEntryId,"KMsvGlobalOutBoxIndexEntryId"); |
|
30 _LIT(KStrSentEntryId,"KMsvSentEntryId"); |
|
31 _LIT(KStrDraftEntryId,"KMsvDraftEntryId"); |
|
32 _LIT(KStrDeletedEntryFolderEntryId,"KMsvDeletedEntryFolderEntryId"); |
|
33 _LIT(KStrRootIndexEntryId,"KMsvRootIndexEntryId"); |
|
34 _LIT(KStrTempIndexEntryId,"KMsvTempIndexEntryId"); |
|
35 _LIT(KStrLocalServiceIndexEntryId,"KMsvLocalServiceIndexEntryId"); |
|
36 _LIT(KStrUnknownServiceIndexEntryId,"KMsvUnknownServiceIndexEntryId"); |
|
37 _LIT(KStrFirstFreeEntryId,"KFirstFreeEntryId"); |
|
38 |
|
39 |
|
40 //Pop3 Specific Commands |
|
41 _LIT(KStrPOP3MTMIsConnected, "KPOP3MTMIsConnected"); |
|
42 _LIT(KStrPOP3MTMConnect,"KPOP3MTMConnect"); |
|
43 _LIT(KStrPOP3MTMDisconnect,"KPOP3MTMDisconnect"); |
|
44 _LIT(KStrPOP3MTMCopyNewMailWhenAlreadyConnected,"KPOP3MTMCopyNewMailWhenAlreadyConnected"); |
|
45 _LIT(KStrPOP3MTMConnectAndCopyNewMailAndStayOnline,"KPOP3MTMConnectAndCopyNewMailAndStayOnline"); |
|
46 _LIT(KStrPOP3MTMConnectAndCopyNewMailAndDisconnect,"KPOP3MTMConnectAndCopyNewMailAndDisconnect"); |
|
47 _LIT(KStrPOP3MTMMoveNewMailWhenAlreadyConnected,"KPOP3MTMMoveNewMailWhenAlreadyConnected"); |
|
48 _LIT(KStrPOP3MTMConnectAndMoveNewMailAndStayOnline,"KPOP3MTMConnectAndMoveNewMailAndStayOnline"); |
|
49 _LIT(KStrPOP3MTMConnectAndMoveNewMailAndDisconnect,"KPOP3MTMConnectAndMoveNewMailAndDisconnect"); |
|
50 _LIT(KStrPOP3MTMCopyMailSelectionWhenAlreadyConnected,"KPOP3MTMCopyMailSelectionWhenAlreadyConnected"); |
|
51 _LIT(KStrPOP3MTMConnectAndCopyMailSelectionAndStayOnline,"KPOP3MTMConnectAndCopyMailSelectionAndStayOnline"); |
|
52 _LIT(KStrPOP3MTMConnectAndCopyMailSelectionAndDisconnect,"KPOP3MTMConnectAndCopyMailSelectionAndDisconnect"); |
|
53 _LIT(KStrPOP3MTMMoveMailSelectionWhenAlreadyConnected,"KPOP3MTMMoveMailSelectionWhenAlreadyConnected"); |
|
54 _LIT(KStrPOP3MTMConnectAndMoveMailSelectionAndStayOnline,"KPOP3MTMConnectAndMoveMailSelectionAndStayOnline"); |
|
55 _LIT(KStrPOP3MTMConnectAndMoveMailSelectionAndDisconnect,"KPOP3MTMConnectAndMoveMailSelectionAndDisconnect"); |
|
56 _LIT(KStrPOP3MTMCopyAllMailWhenAlreadyConnected,"KPOP3MTMCopyAllMailWhenAlreadyConnected"); |
|
57 _LIT(KStrPOP3MTMConnectAndCopyAllMailAndStayOnline,"KPOP3MTMConnectAndCopyAllMailAndStayOnline"); |
|
58 _LIT(KStrPOP3MTMConnectAndCopyAllMailAndDisconnect,"KPOP3MTMConnectAndCopyAllMailAndDisconnect"); |
|
59 _LIT(KStrPOP3MTMMoveAllMailWhenAlreadyConnected,"KPOP3MTMMoveAllMailWhenAlreadyConnected"); |
|
60 _LIT(KStrPOP3MTMConnectAndMoveAllMailAndStayOnline,"KPOP3MTMConnectAndMoveAllMailAndStayOnline"); |
|
61 _LIT(KStrPOP3MTMConnectAndMoveAllMailAndDisconnect,"KPOP3MTMConnectAndMoveAllMailAndDisconnect"); |
|
62 _LIT(KStrPOP3MTMCancelOfflineOperations,"KPOP3MTMCancelOfflineOperations"); |
|
63 _LIT(KStrPOP3MTMCancelSendOnNextConnection,"KPOP3MTMCancelSendOnNextConnection"); |
|
64 _LIT(KStrPOP3MTMCreateNewEmailMessage,"KPOP3MTMCreateNewEmailMessage"); |
|
65 _LIT(KStrPOP3MTMCreateReplyEmailMessage,"KPOP3MTMCreateReplyEmailMessage"); |
|
66 _LIT(KStrPOP3MTMCreateForwardEmailMessage,"KPOP3MTMCreateForwardEmailMessage"); |
|
67 _LIT(KStrPOP3MTMCreateForwardAsAttachmentEmailMessage,"KPOP3MTMCreateForwardAsAttachmentEmailMessage"); |
|
68 _LIT(KStrPOP3MTMCreateReceiptEmailMessage,"KPOP3MTMCreateReceiptEmailMessage"); |
|
69 _LIT(KStrPOP3MTMPopulate,"KPOP3MTMPopulate"); |
|
70 _LIT(KStrPOP3MTMPopulateNew,"KPOP3MTMPopulateNew"); |
|
71 _LIT(KStrPOP3MTMPopulateAll,"KPOP3MTMPopulateAll"); |
|
72 |
|
73 |
|
74 // TImapCmds specific Enumerations |
|
75 _LIT(KStrIMAP4MTMIsConnected, "KIMAP4MTMIsConnected"); |
|
76 _LIT(KStrIMAP4MTMConnect, "KIMAP4MTMConnect"); |
|
77 _LIT(KStrIMAP4MTMConnectAndSynchronise, "KIMAP4MTMConnectAndSynchronise"); |
|
78 _LIT(KStrIMAP4MTMCancelBackgroundSynchronise, "KIMAP4MTMCancelBackgroundSynchronise"); |
|
79 _LIT(KStrIMAP4MTMStartBatch, "KIMAP4MTMStartBatch"); |
|
80 _LIT(KStrIMAP4MTMEndBatch, "KIMAP4MTMEndBatch"); |
|
81 _LIT(KStrIMAP4MTMBusy, "KIMAP4MTMBusy"); |
|
82 _LIT(KStrIMAP4MTMSelect, "KIMAP4MTMSelect"); |
|
83 _LIT(KStrIMAP4MTMSynchronise, "KIMAP4MTMSynchronise"); |
|
84 _LIT(KStrIMAP4MTMSyncTree, "KIMAP4MTMSyncTree"); |
|
85 _LIT(KStrIMAP4MTMReserved10, "KIMAP4MTMReserved10"); |
|
86 _LIT(KStrIMAP4MTMFullSync, "KIMAP4MTMFullSync"); |
|
87 _LIT(KStrIMAP4MTMDisconnect, "KIMAP4MTMDisconnect"); |
|
88 _LIT(KStrIMAP4MTMLocalSubscribe, "KIMAP4MTMLocalSubscribe"); |
|
89 _LIT(KStrIMAP4MTMLocalUnsubscribe, "KIMAP4MTMLocalUnsubscribe"); |
|
90 _LIT(KStrIMAP4MTMReserved15, "KIMAP4MTMReserved15"); |
|
91 _LIT(KStrIMAP4MTMReserved16, "KIMAP4MTMReserved16"); |
|
92 _LIT(KStrIMAP4MTMInboxNewSync, "KIMAP4MTMInboxNewSync"); |
|
93 _LIT(KStrIMAP4MTMFolderFullSync, "KIMAP4MTMFolderFullSync"); |
|
94 _LIT(KStrIMAP4MTMWaitForBackground, "KIMAP4MTMWaitForBackground"); |
|
95 _LIT(KStrIMAP4MTMRenameFolder, "KIMAP4MTMRenameFolder"); |
|
96 _LIT(KStrIMAP4MTMUndeleteAll, "KIMAP4MTMUndeleteAll"); |
|
97 _LIT(KStrIMAP4MTMCancelOffLineOperations, "KIMAP4MTMCancelOffLineOperations"); |
|
98 _LIT(KStrIMAP4MTMPopulate, "KIMAP4MTMPopulate"); |
|
99 _LIT(KStrIMAP4MTMSyncSubscription, "KIMAP4MTMSyncSubscription"); |
|
100 _LIT(KStrIMAP4MTMConnectAndSyncCompleteAfterConnect, "KIMAP4MTMConnectAndSyncCompleteAfterConnect"); |
|
101 _LIT(KStrIMAP4MTMConnectAndSyncCompleteAfterFullSync, "KIMAP4MTMConnectAndSyncCompleteAfterFullSync"); |
|
102 _LIT(KStrIMAP4MTMConnectAndSyncCompleteAfterDisconnect, "KIMAP4MTMConnectAndSyncCompleteAfterDisconnect"); |
|
103 _LIT(KStrIMAP4MTMCancelSendOnNextConnection, "KIMAP4MTMCancelSendOnNextConnection"); |
|
104 _LIT(KStrIMAP4MTMCopyNewMailWhenAlreadyConnected, "KIMAP4MTMCopyNewMailWhenAlreadyConnected"); |
|
105 _LIT(KStrIMAP4MTMConnectAndCopyNewMailAndStayOnline, "KIMAP4MTMConnectAndCopyNewMailAndStayOnline"); |
|
106 _LIT(KStrIMAP4MTMConnectAndCopyNewMailAndDisconnect, "KIMAP4MTMConnectAndCopyNewMailAndDisconnect"); |
|
107 _LIT(KStrIMAP4MTMMoveNewMailWhenAlreadyConnected, "KIMAP4MTMMoveNewMailWhenAlreadyConnected"); |
|
108 _LIT(KStrIMAP4MTMConnectAndMoveNewMailAndStayOnline, "KIMAP4MTMConnectAndMoveNewMailAndStayOnline"); |
|
109 _LIT(KStrIMAP4MTMConnectAndMoveNewMailAndDisconnect, "KIMAP4MTMConnectAndMoveNewMailAndDisconnect"); |
|
110 _LIT(KStrIMAP4MTMCopyMailSelectionWhenAlreadyConnected, "KIMAP4MTMCopyMailSelectionWhenAlreadyConnected"); |
|
111 _LIT(KStrIMAP4MTMConnectAndCopyMailSelectionAndStayOnline, "KIMAP4MTMConnectAndCopyMailSelectionAndStayOnline"); |
|
112 _LIT(KStrIMAP4MTMConnectAndCopyMailSelectionAndDisconnect, "KIMAP4MTMConnectAndCopyMailSelectionAndDisconnect"); |
|
113 _LIT(KStrIMAP4MTMMoveMailSelectionWhenAlreadyConnected, "KIMAP4MTMMoveMailSelectionWhenAlreadyConnected"); |
|
114 _LIT(KStrIMAP4MTMConnectAndMoveMailSelectionAndStayOnline, "KIMAP4MTMConnectAndMoveMailSelectionAndStayOnline"); |
|
115 _LIT(KStrIMAP4MTMConnectAndMoveMailSelectionAndDisconnect, "KIMAP4MTMConnectAndMoveMailSelectionAndDisconnect"); |
|
116 _LIT(KStrIMAP4MTMCopyAllMailWhenAlreadyConnected, "KIMAP4MTMCopyAllMailWhenAlreadyConnected"); |
|
117 _LIT(KStrIMAP4MTMConnectAndCopyAllMailAndStayOnline, "KIMAP4MTMConnectAndCopyAllMailAndStayOnline"); |
|
118 _LIT(KStrIMAP4MTMConnectAndCopyAllMailAndDisconnect, "KIMAP4MTMConnectAndCopyAllMailAndDisconnect"); |
|
119 _LIT(KStrIMAP4MTMMoveAllMailWhenAlreadyConnected, "KIMAP4MTMMoveAllMailWhenAlreadyConnected"); |
|
120 _LIT(KStrIMAP4MTMConnectAndMoveAllMailAndStayOnline, "KIMAP4MTMConnectAndMoveAllMailAndStayOnline"); |
|
121 _LIT(KStrIMAP4MTMConnectAndMoveAllMailAndDisconnect, "KIMAP4MTMConnectAndMoveAllMailAndDisconnect"); |
|
122 _LIT(KStrIMAP4MTMPopulateMailSelectionWhenAlreadyConnected, "KIMAP4MTMPopulateMailSelectionWhenAlreadyConnected"); |
|
123 _LIT(KStrIMAP4MTMConnectAndPopulateMailSelectionAndStayOnline, "KIMAP4MTMConnectAndPopulateMailSelectionAndStayOnline"); |
|
124 _LIT(KStrIMAP4MTMConnectAndPopulateMailSelectionAndDisconnect, "KIMAP4MTMConnectAndPopulateMailSelectionAndDisconnect"); |
|
125 _LIT(KStrIMAP4MTMPopulateNewMailWhenAlreadyConnected, "KIMAP4MTMPopulateNewMailWhenAlreadyConnected"); |
|
126 _LIT(KStrIMAP4MTMPopulateAllMailWhenAlreadyConnected, "KIMAP4MTMPopulateAllMailWhenAlreadyConnected"); |
|
127 _LIT(KStrIMAP4MTMConnectAndPopulateNewMailAndStayOnline, "KIMAP4MTMConnectAndPopulateNewMailAndStayOnline"); |
|
128 _LIT(KStrIMAP4MTMConnectAndPopulateNewMailAndDisconnect, "KIMAP4MTMConnectAndPopulateNewMailAndDisconnect"); |
|
129 _LIT(KStrIMAP4MTMConnectAndPopulateAllMailAndStayOnline, "KIMAP4MTMConnectAndPopulateAllMailAndStayOnline"); |
|
130 _LIT(KStrIMAP4MTMConnectAndPopulateAllMailAndDisconnect, "KIMAP4MTMConnectAndPopulateAllMailAndDisconnect"); |
|
131 _LIT(KStrIMAP4MTMCreateNewEmailMessage, "KIMAP4MTMCreateNewEmailMessage"); |
|
132 _LIT(KStrIMAP4MTMCreateReplyEmailMessage, "KIMAP4MTMCreateReplyEmailMessage"); |
|
133 _LIT(KStrIMAP4MTMCreateForwardEmailMessage, "KIMAP4MTMCreateForwardEmailMessage"); |
|
134 _LIT(KStrIMAP4MTMCreateForwardAsAttachmentEmailMessage, "KIMAP4MTMCreateForwardAsAttachmentEmailMessage"); |
|
135 _LIT(KStrIMAP4MTMCreateReceiptEmailMessage, "KIMAP4MTMCreateReceiptEmailMessage"); |
|
136 |
|
137 |
|
138 // TSmtpCmds specific Enumerations |
|
139 _LIT(KStrSMTPMTMCreateNewEmailMessage, "KSMTPMTMCreateNewEmailMessage"); |
|
140 _LIT(KStrSMTPMTMCreateReplyEmailMessage, "KSMTPMTMCreateReplyEmailMessage"); |
|
141 _LIT(KStrSMTPMTMCreateForwardEmailMessage, "KSMTPMTMCreateForwardEmailMessage"); |
|
142 _LIT(KStrSMTPMTMCreateForwardAsAttachmentEmailMessage, "KSMTPMTMCreateForwardAsAttachmentEmailMessage"); |
|
143 _LIT(KStrSMTPMTMCreateReceiptEmailMessage, "KSMTPMTMCreateReceiptEmailMessage"); |
|
144 _LIT(KStrSMTPMTMSendOnNextConnection, "KSMTPMTMSendOnNextConnection"); |
|
145 |
|
146 // DownloadType specific Enumerations |
|
147 //_LIT(KStrPartialDownload,"PartialDownload"); |
|
148 //_LIT(KStrFullDownload,"FullDownload"); |
|
149 |
|
150 |
|
151 // TCommDbDialogPref specific Enumerations |
|
152 //_LIT(KStrECommDbDialogPrefUnknown, "TCommDbDialogPref::ECommDbDialogPrefUnknown"); |
|
153 _LIT(KStrECommDbDialogPrefPrompt, "TCommDbDialogPref::ECommDbDialogPrefPrompt"); |
|
154 _LIT(KStrECommDbDialogPrefWarn, "TCommDbDialogPref::ECommDbDialogPrefWarn"); |
|
155 _LIT(KStrECommDbDialogPrefDoNotPrompt,"TCommDbDialogPref::ECommDbDialogPrefDoNotPrompt"); |
|
156 _LIT(KStrECommDbDialogPrefPromptIfWrongMode, "TCommDbDialogPref::ECommDbDialogPrefPromptIfWrongMode"); |
|
157 |
|
158 |
|
159 // TImap4GetMailOptions specific Enumerations |
|
160 //_LIT(KStrEGetImap4EmailHeaders, "TImap4GetMailOptions::EGetImap4EmailHeaders"); |
|
161 _LIT(KStrEGetImap4EmailBodyText, "TImap4GetMailOptions::EGetImap4EmailBodyText"); |
|
162 _LIT(KStrEGetImap4EmailBodyTextAndAttachments, "TImap4GetMailOptions::EGetImap4EmailBodyTextAndAttachments"); |
|
163 _LIT(KStrEGetImap4EmailAttachments, "TImap4GetMailOptions::EGetImap4EmailAttachments"); |
|
164 _LIT(KStrEGetImap4EmailBodyAlternativeText, "TImap4GetMailOptions::EGetImap4EmailBodyAlternativeText"); |
|
165 |
|
166 |
|
167 // TFolderSyncType specific Enumerations |
|
168 _LIT(KStrEUseCombination, "TFolderSyncType::EUseCombination"); |
|
169 _LIT(KStrEUseLocal, "TFolderSyncType::EUseLocal"); |
|
170 //_LIT(KStrEUseRemote, "TFolderSyncType::EUseRemote"); |
|
171 |
|
172 |
|
173 // TFolderSubscribeType specific Enumerations |
|
174 //_LIT(KStrEUpdateNeither, "TFolderSubscribeType::EUpdateNeither"); |
|
175 _LIT(KStrEUpdateLocal, "TFolderSubscribeType::EUpdateLocal"); |
|
176 _LIT(KStrEUpdateRemote, "TFolderSubscribeType::EUpdateRemote"); |
|
177 _LIT(KStrEUpdateBoth, "TFolderSubscribeType::EUpdateBoth"); |
|
178 |
|
179 |
|
180 // TImImap4PartialMailOptions specific Enumerations |
|
181 //_LIT(KStrENoSizeLimits, "TImImap4PartialMailOptions::ENoSizeLimits"); |
|
182 _LIT(KStrEBodyTextOnly, "TImImap4PartialMailOptions::EBodyTextOnly"); |
|
183 _LIT(KStrEAttachmentsOnly, "TImImap4PartialMailOptions::EAttachmentsOnly"); |
|
184 _LIT(KStrEBodyTextAndAttachments, "TImImap4PartialMailOptions::EBodyTextAndAttachments"); |
|
185 _LIT(KStrECumulative, "TImImap4PartialMailOptions::ECumulative"); |
|
186 _LIT(KStrEBodyAlternativeText, "TImImap4PartialMailOptions::EBodyAlternativeText"); |
|
187 |
|
188 |
|
189 // TMsgOutboxBodyEncoding specific Enumerations |
|
190 //_LIT(KStrEMsgOutboxDefault, "TMsgOutboxBodyEncoding::EMsgOutboxDefault"); |
|
191 _LIT(KStrEMsgOutboxNoAlgorithm, "TMsgOutboxBodyEncoding::EMsgOutboxNoAlgorithm"); |
|
192 _LIT(KStrEMsgOutboxMIME, "TMsgOutboxBodyEncoding::EMsgOutboxMIME"); |
|
193 _LIT(KStrEMsgOutboxMHTMLAsMIME, "TMsgOutboxBodyEncoding::EMsgOutboxMHTMLAsMIME"); |
|
194 _LIT(KStrEMsgOutboxMHTMLAlternativeAsMIME, "TMsgOutboxBodyEncoding::EMsgOutboxMHTMLAlternativeAsMIME"); |
|
195 |
|
196 |
|
197 // TImSMTPSendMessageOption specific Enumerations |
|
198 //_LIT(KStrESendMessageImmediately , "TImSMTPSendMessageOption::ESendMessageImmediately "); |
|
199 _LIT(KStrESendMessageOnNextConnection, "TImSMTPSendMessageOption::ESendMessageOnNextConnection"); |
|
200 _LIT(KStrESendMessageOnRequest, "TImSMTPSendMessageOption::ESendMessageOnRequest"); |
|
201 |
|
202 |
|
203 // TImSMTPSendCopyToSelf specific Enumerations |
|
204 //_LIT(KStrESendNoCopy, "TImSMTPSendCopyToSelf::ESendNoCopy"); |
|
205 _LIT(KStrESendCopyAsToRecipient, "TImSMTPSendCopyToSelf::ESendCopyAsToRecipient"); |
|
206 _LIT(KStrESendCopyAsCcRecipient, "TImSMTPSendCopyToSelf::ESendCopyAsCcRecipient"); |
|
207 _LIT(KStrESendCopyAsBccRecipient, "TImSMTPSendCopyToSelf::ESendCopyAsBccRecipient"); |
|
208 |
|
209 |
|
210 // TPop3GetMailOptions specific Enumerations |
|
211 //_LIT(KStrEGetPop3EmailHeaders , "TPop3GetMailOptions::EGetPop3EmailHeaders"); |
|
212 _LIT(KStrEGetPop3EmailMessages, "TPop3GetMailOptions::EGetPop3EmailMessages"); |
|
213 |
|
214 |
|
215 // RAM Usage Logging Eventcodes |
|
216 _LIT(KStrImapRamUsageStart, "TInstrumentationPoint::EImapRamUsageStart"); |
|
217 _LIT(KStrImapRamUsageStop, "TInstrumentationPoint::EImapRamUsageStop"); |
|
218 _LIT(KStrPopRamUsageStart, "TInstrumentationPoint::EPopRamUsageStart"); |
|
219 _LIT(KStrPopRamUsageStop, "TInstrumentationPoint::EPopRamUsageStop"); |
|
220 _LIT(KStrSmtpRamUsageStart, "TInstrumentationPoint::ESmtpRamUsageStart"); |
|
221 _LIT(KStrSmtpRamUsageStop, "TInstrumentationPoint::ESmtpRamUsageStop"); |
|
222 _LIT(KStrSmtpRamUsageCreateMessageStart, "TInstrumentationPoint::ESmtpRamUsageCreateMessageStart"); |
|
223 _LIT(KStrSmtpRamUsageCreateMessageStop, "TInstrumentationPoint::ESmtpRamUsageCreateMessageStop"); |
|
224 _LIT(KStrSmtpRamUsageSendMessageStart, "TInstrumentationPoint::ESmtpRamUsageSendMessageStart"); |
|
225 _LIT(KStrSmtpRamUsageSendMessageStop, "TInstrumentationPoint::ESmtpRamUsageSendMessageStop"); |
|
226 _LIT(KStrSmtpCreateMessageSpeedStart, "TInstrumentationPoint::ESmtpCreateMessageSpeedStart"); |
|
227 _LIT(KStrSmtpCreateMessageSpeedStop, "TInstrumentationPoint::ESmtpCreateMessageSpeedStop"); |
|
228 _LIT(KStrSmtpSendMessageSpeedStart, "TInstrumentationPoint::ESmtpSendMessageSpeedStart"); |
|
229 _LIT(KStrSmtpSendMessageSpeedStop, "TInstrumentationPoint::ESmtpSendMessageSpeedStop"); |
|
230 _LIT(KStrImapDownloadMessageSpeedStart, "TInstrumentationPoint::EImapDownloadMessageSpeedStart"); |
|
231 _LIT(KStrImapDownloadMessageSpeedStop, "TInstrumentationPoint::EImapDownloadMessageSpeedStop"); |
|
232 |
|
233 // Bearer types |
|
234 _LIT(KStrBearerTypeUnknown, "Unknown"); |
|
235 _LIT(KStrBearerTypeCsd, "CSD"); |
|
236 _LIT(KStrBearerTypeWcdma, "Wcdma"); |
|
237 _LIT(KStrBearerTypeLan, "LAN"); |
|
238 _LIT(KStrBearerTypeCdma2000, "Cdma2000"); |
|
239 _LIT(KStrBearerTypeVirtual, "Virtual"); |
|
240 _LIT(KStrBearerTypePan, "PAN"); |
|
241 _LIT(KStrBearerTypeWlan, "WLAN"); |
|
242 _LIT(KStrBearerTypePsd, "PSD"); |
|
243 _LIT(KStrBearerTypeCsdLan, "CSDLAN"); |
|
244 |
|
245 /** |
|
246 CT_MsgUtilsEnumConverter() |
|
247 Constructor |
|
248 */ |
|
249 EXPORT_C CT_MsgUtilsEnumConverter::CT_MsgUtilsEnumConverter() |
|
250 { |
|
251 } |
|
252 |
|
253 /** |
|
254 ~CT_MsgUtilsEnumConverter() |
|
255 Destructor |
|
256 */ |
|
257 CT_MsgUtilsEnumConverter::~CT_MsgUtilsEnumConverter() |
|
258 { |
|
259 } |
|
260 |
|
261 |
|
262 /** |
|
263 FindFolderIdByName() |
|
264 Returns the ID of the local folder based on the folder name. |
|
265 If the folder name given does not match then it returns -1. |
|
266 |
|
267 @param aFolderName |
|
268 Folder name whose ID need to be returned. Folder name is assumed to be in string form |
|
269 of the standard folder ID. Eg., GlobalInBoxIndexEntryId |
|
270 |
|
271 @return |
|
272 ID of the folder |
|
273 */ |
|
274 EXPORT_C TMsvId CT_MsgUtilsEnumConverter::FindFolderIdByName(TDesC& aFolderName) |
|
275 { |
|
276 TMsvId folderId; |
|
277 |
|
278 STR_SWITCH(aFolderName) |
|
279 |
|
280 STR_CASE(KStrGlobalInBoxIndexEntryId) |
|
281 { |
|
282 folderId = KMsvGlobalInBoxIndexEntryId; |
|
283 break; |
|
284 } |
|
285 STR_CASE(KStrGlobalOutBoxIndexEntryId) |
|
286 { |
|
287 folderId = KMsvGlobalOutBoxIndexEntryId; |
|
288 break; |
|
289 } |
|
290 STR_CASE(KStrSentEntryId) |
|
291 { |
|
292 folderId = KMsvSentEntryId; |
|
293 break; |
|
294 } |
|
295 STR_CASE(KStrDraftEntryId) |
|
296 { |
|
297 folderId = KMsvDraftEntryId; |
|
298 break; |
|
299 } |
|
300 STR_CASE(KStrDeletedEntryFolderEntryId) |
|
301 { |
|
302 folderId = KMsvDeletedEntryFolderEntryId; |
|
303 break; |
|
304 } |
|
305 STR_CASE(KStrRootIndexEntryId) |
|
306 { |
|
307 folderId = KMsvRootIndexEntryId; |
|
308 break; |
|
309 } |
|
310 STR_CASE(KStrTempIndexEntryId) |
|
311 { |
|
312 folderId = KMsvTempIndexEntryId; |
|
313 break; |
|
314 } |
|
315 STR_CASE(KStrLocalServiceIndexEntryId) |
|
316 { |
|
317 folderId = KMsvLocalServiceIndexEntryId; |
|
318 break; |
|
319 } |
|
320 STR_CASE(KStrUnknownServiceIndexEntryId) |
|
321 { |
|
322 folderId = KMsvUnknownServiceIndexEntryId; |
|
323 break; |
|
324 } |
|
325 STR_CASE(KStrFirstFreeEntryId) |
|
326 { |
|
327 folderId = KFirstFreeEntryId; |
|
328 break; |
|
329 } |
|
330 DEFAULT_CASE() // match not found |
|
331 { |
|
332 folderId = KErrNotFound; |
|
333 } |
|
334 |
|
335 STR_SWITCH_END() |
|
336 |
|
337 return folderId; |
|
338 } |
|
339 |
|
340 |
|
341 /** |
|
342 ConvertDesToTPop3Cmds() |
|
343 Returns the corresponding Pop3 Command |
|
344 |
|
345 @param aPopCmdName |
|
346 POP command name |
|
347 |
|
348 @return |
|
349 POP3-specific commands |
|
350 */ |
|
351 EXPORT_C TPop3Cmds CT_MsgUtilsEnumConverter::ConvertDesToTPop3Cmds(const TDesC& aPopCmdName) |
|
352 { |
|
353 TPop3Cmds ret = KPOP3MTMConnect; |
|
354 |
|
355 STR_SWITCH(aPopCmdName) |
|
356 |
|
357 STR_CASE(KStrPOP3MTMIsConnected) |
|
358 { |
|
359 ret = KPOP3MTMIsConnected; |
|
360 break; |
|
361 } |
|
362 STR_CASE(KStrPOP3MTMConnect) |
|
363 { |
|
364 ret = KPOP3MTMConnect; |
|
365 break; |
|
366 } |
|
367 STR_CASE(KStrPOP3MTMDisconnect ) |
|
368 { |
|
369 ret = KPOP3MTMDisconnect; |
|
370 break; |
|
371 } |
|
372 STR_CASE(KStrPOP3MTMCopyNewMailWhenAlreadyConnected ) |
|
373 { |
|
374 ret = KPOP3MTMCopyNewMailWhenAlreadyConnected; |
|
375 break; |
|
376 } |
|
377 STR_CASE(KStrPOP3MTMConnectAndCopyNewMailAndStayOnline) |
|
378 { |
|
379 ret = KPOP3MTMConnectAndCopyNewMailAndStayOnline; |
|
380 break; |
|
381 } |
|
382 STR_CASE(KStrPOP3MTMConnectAndCopyNewMailAndDisconnect) |
|
383 { |
|
384 ret = KPOP3MTMConnectAndCopyNewMailAndDisconnect; |
|
385 break; |
|
386 } |
|
387 STR_CASE(KStrPOP3MTMMoveNewMailWhenAlreadyConnected) |
|
388 { |
|
389 ret = KPOP3MTMMoveNewMailWhenAlreadyConnected; |
|
390 break; |
|
391 } |
|
392 STR_CASE(KStrPOP3MTMConnectAndMoveNewMailAndStayOnline) |
|
393 { |
|
394 ret = KPOP3MTMConnectAndMoveNewMailAndStayOnline; |
|
395 break; |
|
396 } |
|
397 STR_CASE(KStrPOP3MTMConnectAndMoveNewMailAndDisconnect) |
|
398 { |
|
399 ret = KPOP3MTMConnectAndMoveNewMailAndDisconnect; |
|
400 break; |
|
401 } |
|
402 STR_CASE(KStrPOP3MTMCopyMailSelectionWhenAlreadyConnected) |
|
403 { |
|
404 ret = KPOP3MTMCopyMailSelectionWhenAlreadyConnected; |
|
405 break; |
|
406 } |
|
407 STR_CASE(KStrPOP3MTMConnectAndCopyMailSelectionAndStayOnline) |
|
408 { |
|
409 ret = KPOP3MTMConnectAndCopyMailSelectionAndStayOnline; |
|
410 break; |
|
411 } |
|
412 STR_CASE(KStrPOP3MTMConnectAndCopyMailSelectionAndDisconnect) |
|
413 { |
|
414 ret = KPOP3MTMConnectAndCopyMailSelectionAndDisconnect; |
|
415 break; |
|
416 } |
|
417 STR_CASE(KStrPOP3MTMMoveMailSelectionWhenAlreadyConnected) |
|
418 { |
|
419 ret = KPOP3MTMMoveMailSelectionWhenAlreadyConnected; |
|
420 break; |
|
421 } |
|
422 STR_CASE(KStrPOP3MTMConnectAndMoveMailSelectionAndStayOnline) |
|
423 { |
|
424 ret = KPOP3MTMConnectAndMoveMailSelectionAndStayOnline; |
|
425 break; |
|
426 } |
|
427 STR_CASE(KStrPOP3MTMConnectAndMoveMailSelectionAndDisconnect) |
|
428 { |
|
429 ret = KPOP3MTMConnectAndMoveMailSelectionAndDisconnect; |
|
430 break; |
|
431 } |
|
432 STR_CASE(KStrPOP3MTMCopyAllMailWhenAlreadyConnected) |
|
433 { |
|
434 ret = KPOP3MTMCopyAllMailWhenAlreadyConnected; |
|
435 break; |
|
436 } |
|
437 STR_CASE(KStrPOP3MTMConnectAndCopyAllMailAndStayOnline) |
|
438 { |
|
439 ret = KPOP3MTMConnectAndCopyAllMailAndStayOnline; |
|
440 break; |
|
441 } |
|
442 STR_CASE(KStrPOP3MTMConnectAndCopyAllMailAndDisconnect) |
|
443 { |
|
444 ret = KPOP3MTMConnectAndCopyAllMailAndDisconnect; |
|
445 break; |
|
446 } |
|
447 STR_CASE(KStrPOP3MTMMoveAllMailWhenAlreadyConnected) |
|
448 { |
|
449 ret = KPOP3MTMMoveAllMailWhenAlreadyConnected; |
|
450 break; |
|
451 } |
|
452 STR_CASE(KStrPOP3MTMConnectAndMoveAllMailAndStayOnline) |
|
453 { |
|
454 ret = KPOP3MTMConnectAndMoveAllMailAndStayOnline; |
|
455 break; |
|
456 } |
|
457 STR_CASE(KStrPOP3MTMConnectAndMoveAllMailAndDisconnect) |
|
458 { |
|
459 ret = KPOP3MTMConnectAndMoveAllMailAndDisconnect; |
|
460 break; |
|
461 } |
|
462 STR_CASE(KStrPOP3MTMCancelOfflineOperations) |
|
463 { |
|
464 ret = KPOP3MTMCancelOfflineOperations; |
|
465 break; |
|
466 } |
|
467 STR_CASE(KStrPOP3MTMCancelSendOnNextConnection) |
|
468 { |
|
469 ret = KPOP3MTMCancelSendOnNextConnection; |
|
470 break; |
|
471 } |
|
472 STR_CASE(KStrPOP3MTMCreateNewEmailMessage) |
|
473 { |
|
474 ret = KPOP3MTMCreateNewEmailMessage; |
|
475 break; |
|
476 } |
|
477 STR_CASE(KStrPOP3MTMCreateReplyEmailMessage) |
|
478 { |
|
479 ret = KPOP3MTMCreateReplyEmailMessage; |
|
480 break; |
|
481 } |
|
482 STR_CASE(KStrPOP3MTMCreateForwardEmailMessage) |
|
483 { |
|
484 ret = KPOP3MTMCreateForwardEmailMessage; |
|
485 break; |
|
486 } |
|
487 STR_CASE(KStrPOP3MTMCreateForwardAsAttachmentEmailMessage) |
|
488 { |
|
489 ret = KPOP3MTMCreateForwardAsAttachmentEmailMessage; |
|
490 break; |
|
491 } |
|
492 STR_CASE(KStrPOP3MTMCreateReceiptEmailMessage) |
|
493 { |
|
494 ret = KPOP3MTMCreateReceiptEmailMessage; |
|
495 break; |
|
496 } |
|
497 STR_CASE(KStrPOP3MTMPopulate) |
|
498 { |
|
499 ret = KPOP3MTMPopulate; |
|
500 break; |
|
501 } |
|
502 STR_CASE(KStrPOP3MTMPopulateNew) |
|
503 { |
|
504 ret = KPOP3MTMPopulateNew; |
|
505 break; |
|
506 } |
|
507 STR_CASE(KStrPOP3MTMPopulateAll) |
|
508 { |
|
509 ret = KPOP3MTMPopulateAll; |
|
510 break; |
|
511 } |
|
512 |
|
513 DEFAULT_CASE() |
|
514 { |
|
515 ret = KPOP3MTMConnect; |
|
516 } |
|
517 |
|
518 STR_SWITCH_END() |
|
519 |
|
520 return ret; |
|
521 } |
|
522 |
|
523 |
|
524 /** |
|
525 ConvertDesToTImap4Cmds() |
|
526 Returns the corresponding IMAP4 Command |
|
527 |
|
528 @param aImapCmdName |
|
529 IMAP command name |
|
530 |
|
531 @return |
|
532 IMAP4-specific commands |
|
533 */ |
|
534 EXPORT_C TImap4Cmds CT_MsgUtilsEnumConverter::ConvertDesToTImap4Cmds(TDesC& aImapCmdName) |
|
535 { |
|
536 TImap4Cmds ret; |
|
537 STR_SWITCH(aImapCmdName) |
|
538 |
|
539 STR_CASE(KStrIMAP4MTMIsConnected) |
|
540 { |
|
541 ret = KIMAP4MTMIsConnected; |
|
542 break; |
|
543 } |
|
544 STR_CASE(KStrIMAP4MTMConnect) |
|
545 { |
|
546 ret = KIMAP4MTMConnect; |
|
547 break; |
|
548 } |
|
549 STR_CASE(KStrIMAP4MTMConnectAndSynchronise) |
|
550 { |
|
551 ret = KIMAP4MTMConnectAndSynchronise; |
|
552 break; |
|
553 } |
|
554 STR_CASE(KStrIMAP4MTMCancelBackgroundSynchronise) |
|
555 { |
|
556 ret = KIMAP4MTMCancelBackgroundSynchronise; |
|
557 break; |
|
558 } |
|
559 STR_CASE(KStrIMAP4MTMStartBatch) |
|
560 { |
|
561 ret = KIMAP4MTMStartBatch; |
|
562 break; |
|
563 } |
|
564 STR_CASE(KStrIMAP4MTMEndBatch) |
|
565 { |
|
566 ret = KIMAP4MTMEndBatch; |
|
567 break; |
|
568 } |
|
569 STR_CASE(KStrIMAP4MTMBusy) |
|
570 { |
|
571 ret = KIMAP4MTMBusy; |
|
572 break; |
|
573 } |
|
574 STR_CASE(KStrIMAP4MTMSelect) |
|
575 { |
|
576 ret = KIMAP4MTMSelect; |
|
577 break; |
|
578 } |
|
579 STR_CASE(KStrIMAP4MTMSynchronise) |
|
580 { |
|
581 ret = KIMAP4MTMSynchronise; |
|
582 break; |
|
583 } |
|
584 STR_CASE(KStrIMAP4MTMSyncTree) |
|
585 { |
|
586 ret = KIMAP4MTMSyncTree; |
|
587 break; |
|
588 } |
|
589 STR_CASE(KStrIMAP4MTMReserved10) |
|
590 { |
|
591 ret = KIMAP4MTMReserved10; |
|
592 break; |
|
593 } |
|
594 STR_CASE(KStrIMAP4MTMFullSync) |
|
595 { |
|
596 ret = KIMAP4MTMFullSync; |
|
597 break; |
|
598 } |
|
599 STR_CASE(KStrIMAP4MTMDisconnect) |
|
600 { |
|
601 ret = KIMAP4MTMDisconnect; |
|
602 break; |
|
603 } |
|
604 STR_CASE(KStrIMAP4MTMLocalSubscribe) |
|
605 { |
|
606 ret = KIMAP4MTMLocalSubscribe; |
|
607 break; |
|
608 } |
|
609 STR_CASE(KStrIMAP4MTMLocalUnsubscribe) |
|
610 { |
|
611 ret = KIMAP4MTMLocalUnsubscribe; |
|
612 break; |
|
613 } |
|
614 STR_CASE(KStrIMAP4MTMReserved15) |
|
615 { |
|
616 ret = KIMAP4MTMReserved15; |
|
617 break; |
|
618 } |
|
619 STR_CASE(KStrIMAP4MTMReserved16) |
|
620 { |
|
621 ret = KIMAP4MTMReserved16; |
|
622 break; |
|
623 } |
|
624 STR_CASE(KStrIMAP4MTMInboxNewSync) |
|
625 { |
|
626 ret = KIMAP4MTMInboxNewSync; |
|
627 break; |
|
628 } |
|
629 STR_CASE(KStrIMAP4MTMFolderFullSync) |
|
630 { |
|
631 ret = KIMAP4MTMFolderFullSync; |
|
632 break; |
|
633 } |
|
634 STR_CASE(KStrIMAP4MTMWaitForBackground) |
|
635 { |
|
636 ret = KIMAP4MTMWaitForBackground; |
|
637 break; |
|
638 } |
|
639 STR_CASE(KStrIMAP4MTMRenameFolder) |
|
640 { |
|
641 ret = KIMAP4MTMRenameFolder; |
|
642 break; |
|
643 } |
|
644 STR_CASE(KStrIMAP4MTMUndeleteAll) |
|
645 { |
|
646 ret = KIMAP4MTMUndeleteAll; |
|
647 break; |
|
648 } |
|
649 |
|
650 STR_CASE(KStrIMAP4MTMCancelOffLineOperations) |
|
651 { |
|
652 ret = KIMAP4MTMCancelOffLineOperations; |
|
653 break; |
|
654 } |
|
655 STR_CASE(KStrIMAP4MTMPopulate) |
|
656 { |
|
657 ret = KIMAP4MTMPopulate; |
|
658 break; |
|
659 } |
|
660 STR_CASE(KStrIMAP4MTMSyncSubscription) |
|
661 { |
|
662 ret = KIMAP4MTMSyncSubscription; |
|
663 break; |
|
664 } |
|
665 STR_CASE(KStrIMAP4MTMConnectAndSyncCompleteAfterConnect) |
|
666 { |
|
667 ret = KIMAP4MTMConnectAndSyncCompleteAfterConnect; |
|
668 break; |
|
669 } |
|
670 STR_CASE(KStrIMAP4MTMConnectAndSyncCompleteAfterFullSync) |
|
671 { |
|
672 ret = KIMAP4MTMConnectAndSyncCompleteAfterFullSync; |
|
673 break; |
|
674 } |
|
675 STR_CASE(KStrIMAP4MTMConnectAndSyncCompleteAfterDisconnect) |
|
676 { |
|
677 ret = KIMAP4MTMConnectAndSyncCompleteAfterDisconnect; |
|
678 break; |
|
679 } |
|
680 STR_CASE(KStrIMAP4MTMCancelSendOnNextConnection) |
|
681 { |
|
682 ret = KIMAP4MTMCancelSendOnNextConnection; |
|
683 break; |
|
684 } |
|
685 STR_CASE(KStrIMAP4MTMCopyNewMailWhenAlreadyConnected) |
|
686 { |
|
687 ret = KIMAP4MTMCopyNewMailWhenAlreadyConnected; |
|
688 break; |
|
689 } |
|
690 STR_CASE(KStrIMAP4MTMConnectAndCopyNewMailAndStayOnline) |
|
691 { |
|
692 ret = KIMAP4MTMConnectAndCopyNewMailAndStayOnline; |
|
693 break; |
|
694 } |
|
695 STR_CASE(KStrIMAP4MTMConnectAndCopyNewMailAndDisconnect) |
|
696 { |
|
697 ret = KIMAP4MTMConnectAndCopyNewMailAndDisconnect; |
|
698 break; |
|
699 } |
|
700 STR_CASE(KStrIMAP4MTMMoveNewMailWhenAlreadyConnected) |
|
701 { |
|
702 ret = KIMAP4MTMMoveNewMailWhenAlreadyConnected; |
|
703 break; |
|
704 } |
|
705 STR_CASE(KStrIMAP4MTMConnectAndMoveNewMailAndStayOnline) |
|
706 { |
|
707 ret = KIMAP4MTMConnectAndMoveNewMailAndStayOnline; |
|
708 break; |
|
709 } |
|
710 STR_CASE(KStrIMAP4MTMConnectAndMoveNewMailAndDisconnect) |
|
711 { |
|
712 ret = KIMAP4MTMConnectAndMoveNewMailAndDisconnect; |
|
713 break; |
|
714 } |
|
715 STR_CASE(KStrIMAP4MTMCopyMailSelectionWhenAlreadyConnected) |
|
716 { |
|
717 ret = KIMAP4MTMCopyMailSelectionWhenAlreadyConnected; |
|
718 break; |
|
719 } |
|
720 STR_CASE(KStrIMAP4MTMConnectAndCopyMailSelectionAndStayOnline) |
|
721 { |
|
722 ret = KIMAP4MTMConnectAndCopyMailSelectionAndStayOnline; |
|
723 break; |
|
724 } |
|
725 STR_CASE(KStrIMAP4MTMConnectAndCopyMailSelectionAndDisconnect) |
|
726 { |
|
727 ret = KIMAP4MTMConnectAndCopyMailSelectionAndDisconnect; |
|
728 break; |
|
729 } |
|
730 STR_CASE(KStrIMAP4MTMMoveMailSelectionWhenAlreadyConnected) |
|
731 { |
|
732 ret = KIMAP4MTMMoveMailSelectionWhenAlreadyConnected; |
|
733 break; |
|
734 } |
|
735 STR_CASE(KStrIMAP4MTMConnectAndMoveMailSelectionAndStayOnline) |
|
736 { |
|
737 ret = KIMAP4MTMConnectAndMoveMailSelectionAndStayOnline; |
|
738 break; |
|
739 } |
|
740 STR_CASE(KStrIMAP4MTMConnectAndMoveMailSelectionAndDisconnect) |
|
741 { |
|
742 ret = KIMAP4MTMConnectAndMoveMailSelectionAndDisconnect; |
|
743 break; |
|
744 } |
|
745 STR_CASE(KStrIMAP4MTMCopyAllMailWhenAlreadyConnected) |
|
746 { |
|
747 ret = KIMAP4MTMCopyAllMailWhenAlreadyConnected; |
|
748 break; |
|
749 } |
|
750 STR_CASE(KStrIMAP4MTMConnectAndCopyAllMailAndStayOnline) |
|
751 { |
|
752 ret = KIMAP4MTMConnectAndCopyAllMailAndStayOnline; |
|
753 break; |
|
754 } |
|
755 STR_CASE(KStrIMAP4MTMConnectAndCopyAllMailAndDisconnect) |
|
756 { |
|
757 ret = KIMAP4MTMConnectAndCopyAllMailAndDisconnect; |
|
758 break; |
|
759 } |
|
760 STR_CASE(KStrIMAP4MTMMoveAllMailWhenAlreadyConnected) |
|
761 { |
|
762 ret = KIMAP4MTMMoveAllMailWhenAlreadyConnected; |
|
763 break; |
|
764 } |
|
765 STR_CASE(KStrIMAP4MTMConnectAndMoveAllMailAndStayOnline) |
|
766 { |
|
767 ret = KIMAP4MTMConnectAndMoveAllMailAndStayOnline; |
|
768 break; |
|
769 } |
|
770 STR_CASE(KStrIMAP4MTMConnectAndMoveAllMailAndDisconnect) |
|
771 { |
|
772 ret = KIMAP4MTMConnectAndMoveAllMailAndDisconnect; |
|
773 break; |
|
774 } |
|
775 STR_CASE(KStrIMAP4MTMPopulateMailSelectionWhenAlreadyConnected) |
|
776 { |
|
777 ret = KIMAP4MTMPopulateMailSelectionWhenAlreadyConnected; |
|
778 break; |
|
779 } |
|
780 STR_CASE(KStrIMAP4MTMConnectAndPopulateMailSelectionAndStayOnline) |
|
781 { |
|
782 ret = KIMAP4MTMConnectAndPopulateMailSelectionAndStayOnline; |
|
783 break; |
|
784 } |
|
785 STR_CASE(KStrIMAP4MTMConnectAndPopulateMailSelectionAndDisconnect) |
|
786 { |
|
787 ret = KIMAP4MTMConnectAndPopulateMailSelectionAndDisconnect; |
|
788 break; |
|
789 } |
|
790 STR_CASE(KStrIMAP4MTMPopulateNewMailWhenAlreadyConnected) |
|
791 { |
|
792 ret = KIMAP4MTMPopulateNewMailWhenAlreadyConnected; |
|
793 break; |
|
794 } |
|
795 STR_CASE(KStrIMAP4MTMPopulateAllMailWhenAlreadyConnected) |
|
796 { |
|
797 ret = KIMAP4MTMPopulateAllMailWhenAlreadyConnected; |
|
798 break; |
|
799 } |
|
800 STR_CASE(KStrIMAP4MTMConnectAndPopulateNewMailAndStayOnline) |
|
801 { |
|
802 ret = KIMAP4MTMConnectAndPopulateNewMailAndStayOnline; |
|
803 break; |
|
804 } |
|
805 STR_CASE(KStrIMAP4MTMConnectAndPopulateNewMailAndDisconnect) |
|
806 { |
|
807 ret = KIMAP4MTMConnectAndPopulateNewMailAndDisconnect; |
|
808 break; |
|
809 } |
|
810 STR_CASE(KStrIMAP4MTMConnectAndPopulateAllMailAndStayOnline) |
|
811 { |
|
812 ret = KIMAP4MTMConnectAndPopulateAllMailAndStayOnline; |
|
813 break; |
|
814 } |
|
815 STR_CASE(KStrIMAP4MTMConnectAndPopulateAllMailAndDisconnect) |
|
816 { |
|
817 ret = KIMAP4MTMConnectAndPopulateAllMailAndDisconnect; |
|
818 break; |
|
819 } |
|
820 STR_CASE(KStrIMAP4MTMCreateNewEmailMessage) |
|
821 { |
|
822 ret = KIMAP4MTMCreateNewEmailMessage; |
|
823 break; |
|
824 } |
|
825 STR_CASE(KStrIMAP4MTMCreateReplyEmailMessage) |
|
826 { |
|
827 ret = KIMAP4MTMCreateReplyEmailMessage; |
|
828 break; |
|
829 } |
|
830 STR_CASE(KStrIMAP4MTMCreateForwardEmailMessage) |
|
831 { |
|
832 ret = KIMAP4MTMCreateForwardEmailMessage; |
|
833 break; |
|
834 } |
|
835 STR_CASE(KStrIMAP4MTMCreateForwardAsAttachmentEmailMessage) |
|
836 { |
|
837 ret = KIMAP4MTMCreateForwardAsAttachmentEmailMessage; |
|
838 break; |
|
839 } |
|
840 STR_CASE(KStrIMAP4MTMCreateReceiptEmailMessage) |
|
841 { |
|
842 ret = KIMAP4MTMCreateReceiptEmailMessage; |
|
843 break; |
|
844 } |
|
845 DEFAULT_CASE() |
|
846 { |
|
847 ret = KIMAP4MTMConnectAndSynchronise; |
|
848 } |
|
849 |
|
850 STR_SWITCH_END() |
|
851 return ret; |
|
852 } |
|
853 |
|
854 |
|
855 /** |
|
856 ConvertDesToTSmtpCmdsL() |
|
857 Returns the corresponding SMTP Command |
|
858 |
|
859 @param aSmtpCmdName |
|
860 SMTP command name |
|
861 |
|
862 @return |
|
863 SMTP-specific commands |
|
864 */ |
|
865 EXPORT_C TSmtpCmds CT_MsgUtilsEnumConverter::ConvertDesToTSmtpCmdsL(TDesC& aSmtpCmdName) |
|
866 { |
|
867 TSmtpCmds ret = KSMTPMTMCreateNewEmailMessage; |
|
868 STR_SWITCH(aSmtpCmdName) |
|
869 |
|
870 STR_CASE(KStrSMTPMTMCreateNewEmailMessage) |
|
871 { |
|
872 ret = KSMTPMTMCreateNewEmailMessage; |
|
873 break; |
|
874 } |
|
875 STR_CASE(KStrSMTPMTMCreateReplyEmailMessage) |
|
876 { |
|
877 ret = KSMTPMTMCreateReplyEmailMessage; |
|
878 break; |
|
879 } |
|
880 STR_CASE(KStrSMTPMTMCreateForwardEmailMessage) |
|
881 { |
|
882 ret = KSMTPMTMCreateForwardEmailMessage; |
|
883 break; |
|
884 } |
|
885 STR_CASE(KStrSMTPMTMCreateForwardAsAttachmentEmailMessage) |
|
886 { |
|
887 ret = KSMTPMTMCreateForwardAsAttachmentEmailMessage; |
|
888 break; |
|
889 } |
|
890 STR_CASE(KStrSMTPMTMCreateReceiptEmailMessage) |
|
891 { |
|
892 ret = KSMTPMTMCreateReceiptEmailMessage; |
|
893 break; |
|
894 } |
|
895 STR_CASE(KStrSMTPMTMSendOnNextConnection) |
|
896 { |
|
897 ret = KSMTPMTMSendOnNextConnection; |
|
898 break; |
|
899 } |
|
900 |
|
901 DEFAULT_CASE() |
|
902 { |
|
903 User::Leave(KErrNotSupported); |
|
904 } |
|
905 |
|
906 STR_SWITCH_END() |
|
907 return ret; |
|
908 } |
|
909 |
|
910 |
|
911 /** |
|
912 ConvertDesToTCommDbDialogPref() |
|
913 Returns the corresponding TCommDbDialogPref Enumeration |
|
914 |
|
915 @param aDialogPrefStr |
|
916 @return |
|
917 TCommDbDialogPref enumeration |
|
918 */ |
|
919 EXPORT_C TCommDbDialogPref CT_MsgUtilsEnumConverter::ConvertDesToTCommDbDialogPref(TDesC& aDialogPrefStr) |
|
920 { |
|
921 TCommDbDialogPref dialogPref; |
|
922 |
|
923 STR_SWITCH(aDialogPrefStr) |
|
924 |
|
925 STR_CASE(KStrECommDbDialogPrefPrompt) |
|
926 { |
|
927 dialogPref = ECommDbDialogPrefPrompt; |
|
928 break; |
|
929 } |
|
930 STR_CASE(KStrECommDbDialogPrefWarn) |
|
931 { |
|
932 dialogPref = ECommDbDialogPrefWarn; |
|
933 break; |
|
934 } |
|
935 STR_CASE(KStrECommDbDialogPrefDoNotPrompt) |
|
936 { |
|
937 dialogPref = ECommDbDialogPrefDoNotPrompt; |
|
938 break; |
|
939 } |
|
940 STR_CASE(KStrECommDbDialogPrefPromptIfWrongMode) |
|
941 { |
|
942 dialogPref = ECommDbDialogPrefPromptIfWrongMode; |
|
943 break; |
|
944 } |
|
945 DEFAULT_CASE() |
|
946 { |
|
947 dialogPref = ECommDbDialogPrefUnknown; |
|
948 } |
|
949 STR_SWITCH_END() |
|
950 |
|
951 return dialogPref; |
|
952 } |
|
953 |
|
954 |
|
955 /** |
|
956 ConvertDesToTImap4GetMailOptions() |
|
957 Returns the corresponding TImap4GetMailOptions Enumeration |
|
958 |
|
959 @param aMailOption |
|
960 @return |
|
961 TImap4GetMailOptions enumeration |
|
962 */ |
|
963 EXPORT_C TImap4GetMailOptions CT_MsgUtilsEnumConverter::ConvertDesToTImap4GetMailOptions(TDesC& aMailOption) |
|
964 { |
|
965 TImap4GetMailOptions options = EGetImap4EmailAttachments; |
|
966 |
|
967 STR_SWITCH(aMailOption) |
|
968 |
|
969 STR_CASE(KStrEGetImap4EmailBodyText) |
|
970 { |
|
971 options = EGetImap4EmailBodyText; |
|
972 break; |
|
973 } |
|
974 STR_CASE(KStrEGetImap4EmailBodyTextAndAttachments) |
|
975 { |
|
976 options = EGetImap4EmailBodyTextAndAttachments; |
|
977 break; |
|
978 } |
|
979 STR_CASE(KStrEGetImap4EmailAttachments) |
|
980 { |
|
981 options = EGetImap4EmailAttachments; |
|
982 break; |
|
983 } |
|
984 STR_CASE(KStrEGetImap4EmailBodyAlternativeText) |
|
985 { |
|
986 options = EGetImap4EmailBodyAlternativeText; |
|
987 break; |
|
988 } |
|
989 DEFAULT_CASE() |
|
990 { |
|
991 options = EGetImap4EmailHeaders; |
|
992 } |
|
993 STR_SWITCH_END() |
|
994 |
|
995 return options; |
|
996 } |
|
997 |
|
998 |
|
999 /** |
|
1000 ConvertDesToTFolderSyncType() |
|
1001 Returns the corresponding TFolderSyncType Enumeration |
|
1002 |
|
1003 @param aFolderSyncType |
|
1004 @return |
|
1005 TFolderSyncType enumeration |
|
1006 */ |
|
1007 EXPORT_C TFolderSyncType CT_MsgUtilsEnumConverter::ConvertDesToTFolderSyncType(TDesC& aFolderSyncType) |
|
1008 { |
|
1009 TFolderSyncType syncType; |
|
1010 |
|
1011 STR_SWITCH(aFolderSyncType) |
|
1012 |
|
1013 STR_CASE(KStrEUseCombination) |
|
1014 { |
|
1015 syncType = EUseCombination; |
|
1016 break; |
|
1017 } |
|
1018 STR_CASE(KStrEUseLocal) |
|
1019 { |
|
1020 syncType = EUseLocal; |
|
1021 break; |
|
1022 } |
|
1023 |
|
1024 DEFAULT_CASE() |
|
1025 { |
|
1026 syncType = EUseRemote; |
|
1027 } |
|
1028 |
|
1029 STR_SWITCH_END() |
|
1030 |
|
1031 return syncType; |
|
1032 } |
|
1033 |
|
1034 |
|
1035 /** |
|
1036 ConvertDesToTFolderSubscribeType() |
|
1037 Returns the corresponding TFolderSubscribeType Enumeration |
|
1038 |
|
1039 @param aFolderSubscriberType |
|
1040 @return |
|
1041 TFolderSubscribeType enumeration |
|
1042 */ |
|
1043 EXPORT_C TFolderSubscribeType CT_MsgUtilsEnumConverter::ConvertDesToTFolderSubscribeType(TDesC& aFolderSubscriberType) |
|
1044 { |
|
1045 TFolderSubscribeType subscriberType; |
|
1046 |
|
1047 STR_SWITCH(aFolderSubscriberType) |
|
1048 |
|
1049 STR_CASE(KStrEUpdateLocal) |
|
1050 { |
|
1051 subscriberType = EUpdateLocal; |
|
1052 break; |
|
1053 } |
|
1054 STR_CASE(KStrEUpdateRemote) |
|
1055 { |
|
1056 subscriberType = EUpdateRemote; |
|
1057 break; |
|
1058 } |
|
1059 STR_CASE(KStrEUpdateBoth) |
|
1060 { |
|
1061 subscriberType = EUpdateBoth; |
|
1062 break; |
|
1063 } |
|
1064 |
|
1065 DEFAULT_CASE() |
|
1066 { |
|
1067 subscriberType = EUpdateNeither; |
|
1068 } |
|
1069 |
|
1070 STR_SWITCH_END() |
|
1071 |
|
1072 return subscriberType; |
|
1073 } |
|
1074 |
|
1075 |
|
1076 /** |
|
1077 ConvertDesToTImImap4PartialMailOptions() |
|
1078 Returns the corresponding TImImap4PartialMailOptions Enumeration |
|
1079 |
|
1080 @param aPartialMailOption |
|
1081 @return |
|
1082 TImImap4PartialMailOptions |
|
1083 */ |
|
1084 EXPORT_C TImImap4PartialMailOptions CT_MsgUtilsEnumConverter::ConvertDesToTImImap4PartialMailOptions(TDesC& aPartialMailOption) |
|
1085 { |
|
1086 TImImap4PartialMailOptions partialOption; |
|
1087 |
|
1088 STR_SWITCH(aPartialMailOption) |
|
1089 |
|
1090 STR_CASE(KStrEBodyTextOnly) |
|
1091 { |
|
1092 partialOption = EBodyTextOnly; |
|
1093 break; |
|
1094 } |
|
1095 STR_CASE(KStrEAttachmentsOnly) |
|
1096 { |
|
1097 partialOption = EAttachmentsOnly; |
|
1098 break; |
|
1099 } |
|
1100 STR_CASE(KStrEBodyTextAndAttachments) |
|
1101 { |
|
1102 partialOption = EBodyTextAndAttachments; |
|
1103 break; |
|
1104 } |
|
1105 STR_CASE(KStrECumulative) |
|
1106 { |
|
1107 partialOption = ECumulative; |
|
1108 break; |
|
1109 } |
|
1110 STR_CASE(KStrEBodyAlternativeText) |
|
1111 { |
|
1112 partialOption = EBodyAlternativeText; |
|
1113 break; |
|
1114 } |
|
1115 DEFAULT_CASE() |
|
1116 { |
|
1117 partialOption = ENoSizeLimits; |
|
1118 } |
|
1119 |
|
1120 STR_SWITCH_END() |
|
1121 |
|
1122 return partialOption; |
|
1123 } |
|
1124 |
|
1125 |
|
1126 /** |
|
1127 ConvertDesToTMsgOutboxBodyEncoding() |
|
1128 Returns the corresponding TMsgOutboxBodyEncoding Enumeration |
|
1129 |
|
1130 @param aOutboxBodyEncoding |
|
1131 @return |
|
1132 TMsgOutboxBodyEncoding |
|
1133 */ |
|
1134 EXPORT_C TMsgOutboxBodyEncoding CT_MsgUtilsEnumConverter::ConvertDesToTMsgOutboxBodyEncoding(TDesC& aOutboxBodyEncoding) |
|
1135 { |
|
1136 TMsgOutboxBodyEncoding bodyEncoding; |
|
1137 |
|
1138 STR_SWITCH(aOutboxBodyEncoding) |
|
1139 |
|
1140 STR_CASE(KStrEMsgOutboxNoAlgorithm) |
|
1141 { |
|
1142 bodyEncoding = EMsgOutboxNoAlgorithm; |
|
1143 break; |
|
1144 } |
|
1145 STR_CASE(KStrEMsgOutboxMIME) |
|
1146 { |
|
1147 bodyEncoding = EMsgOutboxMIME; |
|
1148 break; |
|
1149 } |
|
1150 STR_CASE(KStrEMsgOutboxMHTMLAsMIME) |
|
1151 { |
|
1152 bodyEncoding = EMsgOutboxMHTMLAsMIME; |
|
1153 break; |
|
1154 } |
|
1155 STR_CASE(KStrEMsgOutboxMHTMLAlternativeAsMIME) |
|
1156 { |
|
1157 bodyEncoding = EMsgOutboxMHTMLAlternativeAsMIME; |
|
1158 break; |
|
1159 } |
|
1160 DEFAULT_CASE() |
|
1161 { |
|
1162 bodyEncoding = EMsgOutboxDefault; |
|
1163 } |
|
1164 |
|
1165 STR_SWITCH_END() |
|
1166 |
|
1167 return bodyEncoding; |
|
1168 } |
|
1169 |
|
1170 |
|
1171 /** |
|
1172 ConvertDesToTImSMTPSendMessageOption() |
|
1173 Returns the corresponding TImSMTPSendMessageOption Enumeration |
|
1174 |
|
1175 @param aSendMsgOption |
|
1176 @return |
|
1177 TImSMTPSendMessageOption |
|
1178 */ |
|
1179 EXPORT_C TImSMTPSendMessageOption CT_MsgUtilsEnumConverter::ConvertDesToTImSMTPSendMessageOption(TDesC& aSendMsgOption) |
|
1180 { |
|
1181 TImSMTPSendMessageOption messageOption; |
|
1182 |
|
1183 STR_SWITCH(aSendMsgOption) |
|
1184 |
|
1185 STR_CASE(KStrESendMessageOnNextConnection) |
|
1186 { |
|
1187 messageOption = ESendMessageOnNextConnection; |
|
1188 break; |
|
1189 } |
|
1190 STR_CASE(KStrESendMessageOnRequest) |
|
1191 { |
|
1192 messageOption = ESendMessageOnRequest; |
|
1193 break; |
|
1194 } |
|
1195 DEFAULT_CASE() |
|
1196 { |
|
1197 messageOption = ESendMessageImmediately; |
|
1198 } |
|
1199 |
|
1200 STR_SWITCH_END() |
|
1201 |
|
1202 return messageOption; |
|
1203 } |
|
1204 |
|
1205 |
|
1206 /** |
|
1207 ConvertDesToTImSMTPSendCopyToSelf() |
|
1208 Returns the corresponding TImSMTPSendCopyToSelf Enumeration |
|
1209 |
|
1210 @param aSmtpCopyToSelf |
|
1211 @return |
|
1212 TImSMTPSendCopyToSelf |
|
1213 */ |
|
1214 EXPORT_C TImSMTPSendCopyToSelf CT_MsgUtilsEnumConverter::ConvertDesToTImSMTPSendCopyToSelf(TDesC& aSmtpCopyToSelf) |
|
1215 { |
|
1216 TImSMTPSendCopyToSelf copyToSelf; |
|
1217 |
|
1218 STR_SWITCH(aSmtpCopyToSelf) |
|
1219 |
|
1220 STR_CASE(KStrESendCopyAsToRecipient) |
|
1221 { |
|
1222 copyToSelf= ESendCopyAsToRecipient; |
|
1223 break; |
|
1224 } |
|
1225 STR_CASE(KStrESendCopyAsCcRecipient) |
|
1226 { |
|
1227 copyToSelf= ESendCopyAsCcRecipient; |
|
1228 break; |
|
1229 } |
|
1230 STR_CASE(KStrESendCopyAsBccRecipient) |
|
1231 { |
|
1232 copyToSelf= ESendCopyAsBccRecipient; |
|
1233 break; |
|
1234 } |
|
1235 DEFAULT_CASE() |
|
1236 { |
|
1237 copyToSelf= ESendNoCopy; |
|
1238 } |
|
1239 |
|
1240 STR_SWITCH_END() |
|
1241 |
|
1242 return copyToSelf; |
|
1243 } |
|
1244 |
|
1245 |
|
1246 /** |
|
1247 ConvertDesToTPop3GetMailOptions() |
|
1248 Returns the corresponding TPop3GetMailOptions Enumeration |
|
1249 |
|
1250 @param aPop3MailOption |
|
1251 @return |
|
1252 TPop3GetMailOptions |
|
1253 */ |
|
1254 EXPORT_C TPop3GetMailOptions CT_MsgUtilsEnumConverter::ConvertDesToTPop3GetMailOptions(TDesC& aPop3MailOption) |
|
1255 { |
|
1256 TPop3GetMailOptions popMailOption; |
|
1257 |
|
1258 STR_SWITCH(aPop3MailOption) |
|
1259 |
|
1260 STR_CASE(KStrEGetPop3EmailMessages) |
|
1261 { |
|
1262 popMailOption = EGetPop3EmailMessages; |
|
1263 break; |
|
1264 } |
|
1265 DEFAULT_CASE() |
|
1266 { |
|
1267 popMailOption = EGetPop3EmailHeaders; |
|
1268 } |
|
1269 |
|
1270 STR_SWITCH_END() |
|
1271 |
|
1272 return popMailOption; |
|
1273 } |
|
1274 |
|
1275 |
|
1276 /** |
|
1277 ConvertDesToEventCode() |
|
1278 Returns the corresponding TInstrumentationPoint Enumeration |
|
1279 |
|
1280 @param aEventCodeString |
|
1281 @return |
|
1282 TInstrumentationPoint |
|
1283 */ |
|
1284 EXPORT_C TInstrumentationPoint CT_MsgUtilsEnumConverter::ConvertDesToEventCode(TDesC& aEventCodeString) |
|
1285 { |
|
1286 TInstrumentationPoint eventCode; |
|
1287 |
|
1288 STR_SWITCH(aEventCodeString) |
|
1289 |
|
1290 STR_CASE(KStrImapRamUsageStart) |
|
1291 { |
|
1292 eventCode = EImapRamUsageStart; |
|
1293 break; |
|
1294 } |
|
1295 STR_CASE(KStrImapRamUsageStop) |
|
1296 { |
|
1297 eventCode = EImapRamUsageStop; |
|
1298 break; |
|
1299 } |
|
1300 STR_CASE(KStrPopRamUsageStart) |
|
1301 { |
|
1302 eventCode = EPopRamUsageStart; |
|
1303 break; |
|
1304 } |
|
1305 STR_CASE(KStrPopRamUsageStop) |
|
1306 { |
|
1307 eventCode = EPopRamUsageStop; |
|
1308 break; |
|
1309 } |
|
1310 STR_CASE(KStrSmtpRamUsageStart) |
|
1311 { |
|
1312 eventCode = ESmtpRamUsageStart; |
|
1313 break; |
|
1314 } |
|
1315 STR_CASE(KStrSmtpRamUsageStop) |
|
1316 { |
|
1317 eventCode = ESmtpRamUsageStop; |
|
1318 break; |
|
1319 } |
|
1320 STR_CASE(KStrSmtpRamUsageCreateMessageStart) |
|
1321 { |
|
1322 eventCode = ESmtpRamUsageCreateMessageStart; |
|
1323 break; |
|
1324 } |
|
1325 STR_CASE(KStrSmtpRamUsageCreateMessageStop) |
|
1326 { |
|
1327 eventCode = ESmtpRamUsageCreateMessageStop; |
|
1328 break; |
|
1329 } |
|
1330 STR_CASE(KStrSmtpRamUsageSendMessageStart) |
|
1331 { |
|
1332 eventCode = ESmtpRamUsageSendMessageStart; |
|
1333 break; |
|
1334 } |
|
1335 STR_CASE(KStrSmtpRamUsageSendMessageStop) |
|
1336 { |
|
1337 eventCode = ESmtpRamUsageSendMessageStop; |
|
1338 break; |
|
1339 } |
|
1340 STR_CASE(KStrSmtpCreateMessageSpeedStart) |
|
1341 { |
|
1342 eventCode = ESmtpCreateMessageSpeedStart; |
|
1343 break; |
|
1344 } |
|
1345 STR_CASE(KStrSmtpCreateMessageSpeedStop) |
|
1346 { |
|
1347 eventCode = ESmtpCreateMessageSpeedStop; |
|
1348 break; |
|
1349 } |
|
1350 STR_CASE(KStrSmtpSendMessageSpeedStart) |
|
1351 { |
|
1352 eventCode = ESmtpSendMessageSpeedStart; |
|
1353 break; |
|
1354 } |
|
1355 STR_CASE(KStrSmtpSendMessageSpeedStop) |
|
1356 { |
|
1357 eventCode = ESmtpSendMessageSpeedStop; |
|
1358 break; |
|
1359 } |
|
1360 STR_CASE(KStrImapDownloadMessageSpeedStart) |
|
1361 { |
|
1362 eventCode = EImapDownloadMessageSpeedStart; |
|
1363 break; |
|
1364 } |
|
1365 STR_CASE(KStrImapDownloadMessageSpeedStop) |
|
1366 { |
|
1367 eventCode = EImapDownloadMessageSpeedStop; |
|
1368 break; |
|
1369 } |
|
1370 |
|
1371 DEFAULT_CASE() |
|
1372 { |
|
1373 eventCode = EBadEventCode; |
|
1374 } |
|
1375 |
|
1376 STR_SWITCH_END() |
|
1377 |
|
1378 return eventCode; |
|
1379 } |
|
1380 |
|
1381 /** |
|
1382 ConvertDesToBearerTypes() |
|
1383 Returns the corresponding TUint32 representing bearer types |
|
1384 |
|
1385 @param aBearerTypesString Bearer types string |
|
1386 @return Bearer types enum |
|
1387 */ |
|
1388 EXPORT_C TUint32 CT_MsgUtilsEnumConverter::ConvertDesToBearerTypes(const TDesC& aBearerTypesString) |
|
1389 { |
|
1390 TUint32 bearerTypes; |
|
1391 |
|
1392 STR_SWITCH(aBearerTypesString) |
|
1393 |
|
1394 STR_CASE(KStrBearerTypeUnknown) |
|
1395 { |
|
1396 bearerTypes = KCommDbBearerUnknown; |
|
1397 break; |
|
1398 } |
|
1399 |
|
1400 STR_CASE(KStrBearerTypeCsd) |
|
1401 { |
|
1402 bearerTypes = KCommDbBearerCSD; |
|
1403 break; |
|
1404 } |
|
1405 |
|
1406 STR_CASE(KStrBearerTypeWcdma) |
|
1407 { |
|
1408 bearerTypes = KCommDbBearerWcdma; |
|
1409 break; |
|
1410 } |
|
1411 |
|
1412 STR_CASE(KStrBearerTypeLan) |
|
1413 { |
|
1414 bearerTypes = KCommDbBearerLAN; |
|
1415 break; |
|
1416 } |
|
1417 |
|
1418 STR_CASE(KStrBearerTypeCdma2000) |
|
1419 { |
|
1420 bearerTypes = KCommDbBearerCdma2000; |
|
1421 break; |
|
1422 } |
|
1423 |
|
1424 STR_CASE(KStrBearerTypeVirtual) |
|
1425 { |
|
1426 bearerTypes = KCommDbBearerVirtual; |
|
1427 break; |
|
1428 } |
|
1429 |
|
1430 STR_CASE(KStrBearerTypePan) |
|
1431 { |
|
1432 bearerTypes = KCommDbBearerPAN; |
|
1433 break; |
|
1434 } |
|
1435 |
|
1436 STR_CASE(KStrBearerTypeWlan) |
|
1437 { |
|
1438 bearerTypes = KCommDbBearerWLAN; |
|
1439 break; |
|
1440 } |
|
1441 |
|
1442 STR_CASE(KStrBearerTypePsd) |
|
1443 { |
|
1444 bearerTypes = KCommDbBearerPSD; |
|
1445 break; |
|
1446 } |
|
1447 |
|
1448 STR_CASE(KStrBearerTypeCsdLan) |
|
1449 { |
|
1450 bearerTypes = KCommDbBearerCSD | KCommDbBearerLAN; |
|
1451 break; |
|
1452 } |
|
1453 |
|
1454 DEFAULT_CASE() |
|
1455 { |
|
1456 bearerTypes = KCommDbBearerUnknown; |
|
1457 } |
|
1458 |
|
1459 STR_SWITCH_END() |
|
1460 |
|
1461 return bearerTypes; |
|
1462 } |