|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CREATORMAILBOXELEMENT_H_ |
|
21 #define CREATORMAILBOXELEMENT_H_ |
|
22 |
|
23 #include "creator_scriptelement.h" |
|
24 |
|
25 namespace creatormailbox |
|
26 { |
|
27 _LIT(Kmailbox, "mailbox"); |
|
28 _LIT(Kname, "name"); |
|
29 _LIT(Kincomingport, "incomingport"); |
|
30 _LIT(Kincomingsslwrapper, "incomingsslwrapper"); |
|
31 _LIT(Kincomingsecuresockets, "incomingsecuresockets"); |
|
32 _LIT(Kincomingloginname, "incomingloginname"); |
|
33 _LIT(Kincomingpassword, "incomingpassword"); |
|
34 _LIT(Kincomingservername, "incomingservername"); |
|
35 _LIT(Kincomingconnectionmethod, "incomingconnectionmethod"); |
|
36 _LIT(Kacknowledgereceipts, "acknowledgereceipts"); |
|
37 _LIT(Kattachmentsizelimit, "attachmentsizelimit"); |
|
38 _LIT(Kautosendonconnect, "autosendonconnect"); |
|
39 _LIT(Kbodytextsizelimit, "bodytextsizelimit"); |
|
40 _LIT(Kdeletemailsatdisconnect, "deletemailsatdisconnect"); |
|
41 _LIT(Kattachmentfetchsize, "attachmentfetchsize"); |
|
42 _LIT(Kincomingfolderpath, "incomingfolderpath"); |
|
43 _LIT(Kpathseparator, "pathseparator"); |
|
44 _LIT(Kgetemailoptions, "getemailoptions"); |
|
45 _LIT(Kimapidlecommand, "imapidlecommand"); |
|
46 _LIT(Kimapidletimeout, "imapidletimeout"); |
|
47 _LIT(Kmaxemailsize, "maxemailsize"); |
|
48 _LIT(Ksubscribetype, "subscribetype"); |
|
49 _LIT(Ksyncrate, "syncrate"); |
|
50 _LIT(Kfoldersynctype, "foldersynctype"); |
|
51 _LIT(Kmarkseeninsync, "markseeninsync"); |
|
52 _LIT(Kenableexpungemode, "enableexpungemode"); |
|
53 _LIT(Kuseapopsecurelogin, "useapopsecurelogin"); |
|
54 _LIT(Kinboxsynclimit, "inboxsynclimit"); |
|
55 _LIT(Kmailboxsynclimit, "mailboxsynclimit"); |
|
56 _LIT(Kdisconnectedusermode, "disconnectedusermode"); |
|
57 _LIT(Koutgoingport, "outgoingport"); |
|
58 _LIT(Koutgoingsslwrapper, "outgoingsslwrapper"); |
|
59 _LIT(Koutgoingsecuresockets, "outgoingsecuresockets"); |
|
60 _LIT(Koutgoingloginname, "outgoingloginname"); |
|
61 _LIT(Koutgoingpassword, "outgoingpassword"); |
|
62 _LIT(Koutgoingservername, "outgoingservername"); |
|
63 _LIT(Koutgoingconnectionmethod, "outgoingconnectionmethod"); |
|
64 _LIT(Kincludesignature, "includesignature"); |
|
65 _LIT(Kaddvcard, "addvcard"); |
|
66 _LIT(Kownemail, "ownemail"); |
|
67 _LIT(Kemailalias, "emailalias"); |
|
68 _LIT(Kreceiptaddress, "receiptaddress"); |
|
69 _LIT(Kreplytoaddress, "replytoaddress"); |
|
70 _LIT(Krequestreceipts, "requestreceipts"); |
|
71 _LIT(Ksmtpauth, "smtpauth"); |
|
72 _LIT(Kcopytoself, "copytoself"); |
|
73 _LIT(Ksendoption, "sendoption"); |
|
74 _LIT(Ktoccincludelimit, "toccincludelimit"); |
|
75 |
|
76 |
|
77 // Get email options: |
|
78 _LIT(Kgetheaders, "getheaders"); |
|
79 _LIT(Kgetbodytext, "getbodytext"); |
|
80 _LIT(Kgetbodytextandattachments, "getbodytextandattachments"); |
|
81 _LIT(Kgetattachments, "getattachments"); |
|
82 _LIT(Kgetbodyalternativetext, "getbodyalternativetext"); |
|
83 |
|
84 // Subscribe types: |
|
85 _LIT(Kupdateneither, "updateneither"); |
|
86 _LIT(Kupdatelocal, "updatelocal"); |
|
87 _LIT(Kupdateremote, "updateremote"); |
|
88 _LIT(Kupdateboth, "updateboth"); |
|
89 |
|
90 // Folder sync. types: |
|
91 _LIT(Kusecombination, "usecombination"); |
|
92 _LIT(Kuselocal, "uselocal"); |
|
93 _LIT(Kuseremote, "useremote"); |
|
94 |
|
95 // Send copy to self option: |
|
96 _LIT(Kno, "no"); |
|
97 _LIT(Kto, "to"); |
|
98 _LIT(Kcc, "cc"); |
|
99 _LIT(Kbcc, "bcc"); |
|
100 |
|
101 // Send option: |
|
102 _LIT(Kimmediately, "immediately"); |
|
103 _LIT(Konnextconnection, "onnextconnection"); |
|
104 _LIT(Konrequest, "onrequest"); |
|
105 |
|
106 // Mailbox types: |
|
107 _LIT(KMailboxType, "type"); |
|
108 _LIT(Kpop3, "pop3"); |
|
109 _LIT(Kimap4, "imap4"); |
|
110 _LIT(Ksyncml, "syncml"); |
|
111 } |
|
112 |
|
113 class CCreatorMailboxElement : public CCreatorScriptElement |
|
114 { |
|
115 public: |
|
116 static CCreatorMailboxElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC); |
|
117 void ExecuteCommandL(); |
|
118 |
|
119 protected: |
|
120 CCreatorMailboxElement(CCreatorEngine* aEngine); |
|
121 TBool SetTextParamL(const TDesC& aElemName, const TDesC& aElemContent, CMailboxesParameters* aParams, TBool aSetRandom ); |
|
122 TBool SetBooleanParamL(const TDesC& aElemName, const TDesC& aElemContent, CMailboxesParameters* aParams, TBool aSetRandom ); |
|
123 TBool SetIntegerParamL(const TDesC& aElemName, const TDesC& aElemContent, CMailboxesParameters* aParams, TBool aSetRandom ); |
|
124 TBool SetEnumParamL(const TDesC& aElemName, const TDesC& aElemContent, CMailboxesParameters* aParams, TBool aSetRandom ); |
|
125 |
|
126 TBool GetBooleanValueL(const TDesC& aElemContent, TBool aSetRandom); |
|
127 }; |
|
128 |
|
129 #endif /*CREATORMAILBOXELEMENT_H_*/ |