litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
/*
* Copyright 2010 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.googlecode.gwtphonegap.client.contacts;
import java.util.Date;
import com.googlecode.gwtphonegap.collection.shared.LightArray;
/**
* Contains properties that describe a contact, such as a user's personal or
* business contact.
*
* @author Daniel Kurka
*
*/
public interface Contact {
/**
* globally unique identifier. (DOMString)
*
* @return globally unique identifier. (DOMString)
*/
public String getId();
/**
* Set the name of this Contact, suitable for display to end-users.
* (DOMString)
*
* @param displayName
*/
public void setDisplayName(String displayName);
/**
* The name of this Contact, suitable for display to end-users. (DOMString)
*
* @return
*/
public String getDisplayName();
/**
* set the object containing all components of a persons name
*
* @param contactName
*/
public void setName(ContactName contactName);
/**
* An object containing all components of a persons name
*
* @return
*/
public ContactName getName();
/**
* A casual name to address the contact by. (DOMString)
*
* @param name
*/
public void setNickName(String name);
/**
* A casual name to address the contact by. (DOMString)
*
* @return
*/
public String getNickName();
/**
* An array of all the contact's phone numbers. (ContactField[])
*
* @return
*/
public LightArray<ContactField> getPhoneNumbers();
/**
* An array of all the contact's phone numbers. (ContactField[])
*
* @param array
*/
public void setPhoneNumbers(LightArray<ContactField> array);
/**
* An array of all the contact's email addresses. (ContactField[])
*
* @param emails
*/
public void setEmails(LightArray<ContactField> emails);
/**
* An array of all the contact's email addresses. (ContactField[])
*
* @return
*/
public LightArray<ContactField> getEmails();
/**
* An array of all the contact's addresses. (ContactAddresses[])
*
* @param contactAddresses
*/
public void setContactAddresses(LightArray<ContactAddress> contactAddresses);
/**
* An array of all the contact's addresses. (ContactAddresses[])
*
* @return
*/
public LightArray<ContactAddress> getContactAddresses();
/**
* An array of all the contact's IM addresses. (ContactField[])
*
* @param ims
*/
public void setIms(LightArray<ContactField> ims);
/**
* An array of all the contact's IM addresses. (ContactField[])
*
* @return
*/
public LightArray<ContactField> getIms();
/**
* An array of all the contact's organizations. (ContactOrganization[])
*
* @param organisations
*/
public void setOrganisations(LightArray<ContactOrganisation> organisations);
/**
* An array of all the contact's organizations. (ContactOrganization[])
*
* @return
*/
public LightArray<ContactOrganisation> getOrganisations();
/**
* he last date the contact was revised. (DOMString)
*
* @return
*/
public String getRevision();
/**
* The birthday of the contact. (Date)
*
* @return
*/
public Date getBirthDay();
/**
* The birthday of the contact. (Date)
*
* @param birthday
*/
public void setBirthDay(Date birthday);
/**
* The gender of the contact. (DOMString)
*
* @param gender
*/
public void setGender(String gender);
/**
* The gender of the contact. (DOMString)
*
* @return
*/
public String getGender();
/**
* A note about the contact. (DOMString)
*
* @param note
*/
public void setNote(String note);
/**
* A note about the contact. (DOMString)
*
* @return
*/
public String getNote();
/**
* An array of the contact's photos. (ContactField[])
*
* @param photos
*/
public void setPhotos(LightArray<ContactField> photos);
/**
* An array of the contact's photos. (ContactField[])
*
* @return
*/
public LightArray<ContactField> getPhotos();
/**
* An array of all the contacts user defined categories. (ContactField[])
*
* @param categories
*/
public void setCategories(LightArray<ContactField> categories);
/**
* An array of all the contacts user defined categories. (ContactField[])
*
* @return
*/
public LightArray<ContactField> getCategories();
/**
* An array of web pages associated to the contact. (ContactField[])
*
* @param urls
*/
public void setUrls(LightArray<ContactField> urls);
/**
* An array of web pages associated to the contact. (ContactField[])
*
* @return
*/
public LightArray<ContactField> getUrls();
/**
* The timezone of the conact. (DOMString)
*
* @param zone
*/
public void setTimeZone(String zone);
/**
* The timezone of the conact. (DOMString)
*
* @return
*/
public String getTimeZone();
/**
*
* @return a new Contact object that is a deep copy of the calling object,
* with the id property set to null.
*/
public Contact cloneContact();
/**
* Removes the contact from the device contacts database. An error callback
* is called with a ContactError object if the removal is unsuccessful.
*/
public void remove();
/**
* Saves a new contact to the device contacts database, or updates an
* existing contact if a contact with the same id already exists.
*/
public void save();
}
|
Revision |
Author |
Commited |
Message |
666
|
GeorgeS
|
Sun 13 May, 2012 18:11:48 +0000 |
|