|
1 /* |
|
2 * Copyright (c) 2010 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 |
|
21 #ifndef CREATORCONTACTELEMENT_H_ |
|
22 #define CREATORCONTACTELEMENT_H_ |
|
23 |
|
24 #include "creator_scriptelement.h" |
|
25 |
|
26 namespace creatorcontact |
|
27 { |
|
28 _LIT(KContact, "contact"); |
|
29 _LIT(KContactSet, "contact-set"); |
|
30 _LIT(KContactGroup, "contactgroup"); |
|
31 _LIT(KMembers, "members"); |
|
32 _LIT(KName, "name"); |
|
33 |
|
34 // Contact field elements: |
|
35 _LIT(KFirstname, "firstname"); |
|
36 _LIT(KLastname, "lastname"); |
|
37 _LIT(KFirstnameReading, "firstnamereading"); |
|
38 _LIT(KLastnameReading, "lastnamereading"); |
|
39 _LIT(KPrefix, "prefix"); |
|
40 _LIT(KSuffix, "suffix"); |
|
41 _LIT(KSecondname, "secondname"); |
|
42 _LIT(KLandphoneHome, "landphonehome"); |
|
43 |
|
44 _LIT(KMobilephoneHome, "mobilephonehome"); |
|
45 _LIT(KVideonumberHome, "videonumberhome"); |
|
46 _LIT(KFaxnumberHome, "faxnumberhome"); |
|
47 _LIT(KVoipHome, "voiphome"); |
|
48 _LIT(KEmailHome, "emailhome"); |
|
49 _LIT(KUrlHome, "urlhome"); |
|
50 _LIT(KAddrlabelHome, "addrlabelhome"); |
|
51 _LIT(KAddrpoHome, "addrpohome"); |
|
52 |
|
53 _LIT(KAddrextHome, "addrexthome"); |
|
54 _LIT(KAddrstreetHome, "addrstreethome"); |
|
55 _LIT(KAddrlocalHome, "addrlocalhome"); |
|
56 _LIT(KAddrregionHome, "addrregionhome"); |
|
57 _LIT(KAddrpostcodeHome, "addrpostcodehome"); |
|
58 _LIT(KAddrcountryHome, "addrcountryhome"); |
|
59 _LIT(KJobtitle, "jobtitle"); |
|
60 _LIT(KCompanyname, "company"); |
|
61 |
|
62 _LIT(KLandphoneWork, "landphonework"); |
|
63 _LIT(KMobilephoneWork, "mobilephonework"); |
|
64 _LIT(KVideonumberWork, "videonumberwork"); |
|
65 _LIT(KFaxnumberWork, "faxnumberwork"); |
|
66 _LIT(KVoipWork, "voipwork"); |
|
67 _LIT(KEmailWork, "emailwork"); |
|
68 _LIT(KUrlWork, "urlwork"); |
|
69 _LIT(KAddrlabelWork, "addrlabelwork"); |
|
70 |
|
71 _LIT(KAddrpoWork, "addrpowork"); |
|
72 _LIT(KAddrextWork, "addrextwork"); |
|
73 _LIT(KAddrstreetWork, "addrstreetwork"); |
|
74 _LIT(KAddrlocalWork, "addrlocalwork"); |
|
75 _LIT(KAddrregionWork, "addrregionwork"); |
|
76 _LIT(KAddrpostcodeWork, "addrpostcodework"); |
|
77 _LIT(KAddrcountryWork, "addrcountrywork"); |
|
78 _LIT(KLandphoneGen, "landphonegen"); |
|
79 |
|
80 _LIT(KMobilephoneGen, "mobilephonegen"); |
|
81 _LIT(KVideonumberGen, "videonumbergen"); |
|
82 _LIT(KFaxnumberGen, "faxnumbergen"); |
|
83 _LIT(KVoipGen, "voipgen"); |
|
84 _LIT(KPoc, "poc"); |
|
85 _LIT(KSwis, "swis"); |
|
86 _LIT(KSip, "sip"); |
|
87 _LIT(KEmailGen, "emailgen"); |
|
88 |
|
89 _LIT(KUrlGen, "urlgen"); |
|
90 _LIT(KAddrlabelGen, "addrlabelgen"); |
|
91 _LIT(KAddrpoGen, "addrpogen"); |
|
92 _LIT(KAddrextGen, "addrextgen"); |
|
93 _LIT(KAddrstreetGen, "addrstreetgen"); |
|
94 _LIT(KAddrlocalGen, "addrlocalgen"); |
|
95 _LIT(KAddrregionGen, "addrregiongen"); |
|
96 _LIT(KAddrpostcodeGen, "addrpostcodegen"); |
|
97 |
|
98 _LIT(KAddrcountryGen, "addrcountrygen"); |
|
99 _LIT(KPagerNumber, "pagernumber"); |
|
100 _LIT(KDtmfString, "dtmfstring"); |
|
101 _LIT(KWvAddress, "wvaddress"); |
|
102 _LIT(KDate, "date"); |
|
103 _LIT(KNote, "note"); |
|
104 _LIT(KThumbnailPath, "thumbnailpath"); |
|
105 _LIT(KThumbnailId, "thumbnailid"); |
|
106 _LIT(KRingTone, "ringtonepath"); |
|
107 _LIT(KRingToneId, "ringtoneid"); |
|
108 |
|
109 _LIT(KCallerobjImg, "callerobjimg"); |
|
110 _LIT(KCallerobjText, "callerobjtext"); |
|
111 _LIT(KMiddlename, "middlename"); |
|
112 _LIT(KDepartment, "department"); |
|
113 _LIT(KAsstname, "asstname"); |
|
114 _LIT(KSpouse, "spouse"); |
|
115 _LIT(KChildren, "children"); |
|
116 _LIT(KAsstphone, "asstphone"); |
|
117 |
|
118 _LIT(KCarphone, "caphone"); |
|
119 _LIT(KAnniversary, "anniversary"); |
|
120 _LIT(KSyncclass, "synchronization"); |
|
121 _LIT(KLocPrivacy, "locprivacy"); |
|
122 _LIT(KGenlabel, "genlabel"); |
|
123 } |
|
124 /** |
|
125 * Contact elements |
|
126 */ |
|
127 |
|
128 /** |
|
129 * Base class for contact elements |
|
130 */ |
|
131 class CCreatorContactElementBase : public CCreatorScriptElement |
|
132 { |
|
133 public: |
|
134 static CCreatorContactElementBase* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC); |
|
135 protected: |
|
136 CCreatorContactElementBase(CCreatorEngine* aEngine); |
|
137 }; |
|
138 |
|
139 /** |
|
140 * Contact element |
|
141 */ |
|
142 class CCreatorContactElement : public CCreatorContactElementBase |
|
143 { |
|
144 public: |
|
145 static CCreatorContactElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC); |
|
146 void ExecuteCommandL(); |
|
147 protected: |
|
148 CCreatorContactElement(CCreatorEngine* aEngine); |
|
149 }; |
|
150 |
|
151 /** |
|
152 * Contact-set element |
|
153 */ |
|
154 class CCreatorContactSetElement : public CCreatorContactElementBase |
|
155 { |
|
156 public: |
|
157 static CCreatorContactSetElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC); |
|
158 void ExecuteCommandL(); |
|
159 virtual void AddToCacheL(); |
|
160 protected: |
|
161 CCreatorContactSetElement(CCreatorEngine* aEngine); |
|
162 }; |
|
163 |
|
164 /** |
|
165 * Contact group element |
|
166 */ |
|
167 class CCreatorContactGroupElement : public CCreatorContactElementBase |
|
168 { |
|
169 public: |
|
170 static CCreatorContactGroupElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC); |
|
171 void ExecuteCommandL(); |
|
172 protected: |
|
173 CCreatorContactGroupElement(CCreatorEngine* aEngine); |
|
174 }; |
|
175 |
|
176 /** |
|
177 * Contact field element |
|
178 */ |
|
179 class CCreatorContactFieldElement : public CCreatorScriptElement |
|
180 { |
|
181 public: |
|
182 static CCreatorContactFieldElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC); |
|
183 protected: |
|
184 CCreatorContactFieldElement(CCreatorEngine* aEngine); |
|
185 }; |
|
186 |
|
187 #endif /*CREATORCONTACTELEMENT_H_*/ |