author | zautrix <zautrix> | 2004-09-19 11:44:45 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-19 11:44:45 (UTC) |
commit | 5a78d90ce7a9824e52e70f40f41aa6e17f0d3d0d (patch) (unidiff) | |
tree | 45ccbce00f69f5bb75878b4cbb0ffa38260628d4 /kabc/addressee.h | |
parent | eea0ff04703dffdbe8b67a0dc9f592597d7450c1 (diff) | |
download | kdepimpi-5a78d90ce7a9824e52e70f40f41aa6e17f0d3d0d.zip kdepimpi-5a78d90ce7a9824e52e70f40f41aa6e17f0d3d0d.tar.gz kdepimpi-5a78d90ce7a9824e52e70f40f41aa6e17f0d3d0d.tar.bz2 |
more AB sync
-rw-r--r-- | kabc/addressee.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kabc/addressee.h b/kabc/addressee.h index 59fcbd8..3ba7777 100644 --- a/kabc/addressee.h +++ b/kabc/addressee.h | |||
@@ -1,309 +1,309 @@ | |||
1 | /*** Warning! This file has been generated by the script makeaddressee ***/ | 1 | /*** Warning! This file has been generated by the script makeaddressee ***/ |
2 | /* | 2 | /* |
3 | This file is part of libkabc. | 3 | This file is part of libkabc. |
4 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or |
7 | modify it under the terms of the GNU Library General Public | 7 | modify it under the terms of the GNU Library General Public |
8 | License as published by the Free Software Foundation; either | 8 | License as published by the Free Software Foundation; either |
9 | version 2 of the License, or (at your option) any later version. | 9 | version 2 of the License, or (at your option) any later version. |
10 | 10 | ||
11 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | Library General Public License for more details. | 14 | Library General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU Library General Public License | 16 | You should have received a copy of the GNU Library General Public License |
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to |
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | Boston, MA 02111-1307, USA. | 19 | Boston, MA 02111-1307, USA. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | /* | 22 | /* |
23 | Enhanced Version of the file for platform independent KDE tools. | 23 | Enhanced Version of the file for platform independent KDE tools. |
24 | Copyright (c) 2004 Ulf Schenk | 24 | Copyright (c) 2004 Ulf Schenk |
25 | 25 | ||
26 | $Id$ | 26 | $Id$ |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #ifndef KABC_ADDRESSEE_H | 29 | #ifndef KABC_ADDRESSEE_H |
30 | #define KABC_ADDRESSEE_H | 30 | #define KABC_ADDRESSEE_H |
31 | 31 | ||
32 | #include <qdatetime.h> | 32 | #include <qdatetime.h> |
33 | #include <qstring.h> | 33 | #include <qstring.h> |
34 | #include <qstringlist.h> | 34 | #include <qstringlist.h> |
35 | #include <qvaluelist.h> | 35 | #include <qvaluelist.h> |
36 | 36 | ||
37 | #include <ksharedptr.h> | 37 | #include <ksharedptr.h> |
38 | #include <kurl.h> | 38 | #include <kurl.h> |
39 | 39 | ||
40 | #include "address.h" | 40 | #include "address.h" |
41 | #include "agent.h" | 41 | #include "agent.h" |
42 | #include "geo.h" | 42 | #include "geo.h" |
43 | #include "key.h" | 43 | #include "key.h" |
44 | #include "phonenumber.h" | 44 | #include "phonenumber.h" |
45 | #include "picture.h" | 45 | #include "picture.h" |
46 | #include "secrecy.h" | 46 | #include "secrecy.h" |
47 | #include "sound.h" | 47 | #include "sound.h" |
48 | #include "timezone.h" | 48 | #include "timezone.h" |
49 | 49 | ||
50 | namespace KABC { | 50 | namespace KABC { |
51 | 51 | ||
52 | class Resource; | 52 | class Resource; |
53 | 53 | ||
54 | /** | 54 | /** |
55 | @short address book entry | 55 | @short address book entry |
56 | 56 | ||
57 | This class represents an entry in the address book. | 57 | This class represents an entry in the address book. |
58 | 58 | ||
59 | The data of this class is implicitly shared. You can pass this class by value. | 59 | The data of this class is implicitly shared. You can pass this class by value. |
60 | 60 | ||
61 | If you need the name of a field for presenting it to the user you should use | 61 | If you need the name of a field for presenting it to the user you should use |
62 | the functions ending in Label(). They return a translated string which can be | 62 | the functions ending in Label(). They return a translated string which can be |
63 | used as label for the corresponding field. | 63 | used as label for the corresponding field. |
64 | 64 | ||
65 | About the name fields: | 65 | About the name fields: |
66 | 66 | ||
67 | givenName() is the first name and familyName() the last name. In some | 67 | givenName() is the first name and familyName() the last name. In some |
68 | countries the family name comes first, that's the reason for the | 68 | countries the family name comes first, that's the reason for the |
69 | naming. formattedName() is the full name with the correct formatting. | 69 | naming. formattedName() is the full name with the correct formatting. |
70 | It is used as an override, when the correct formatting can't be generated | 70 | It is used as an override, when the correct formatting can't be generated |
71 | from the other name fields automatically. | 71 | from the other name fields automatically. |
72 | 72 | ||
73 | realName() returns a fully formatted name(). It uses formattedName, if set, | 73 | realName() returns a fully formatted name(). It uses formattedName, if set, |
74 | otherwise it constucts the name from the name fields. As fallback, if | 74 | otherwise it constucts the name from the name fields. As fallback, if |
75 | nothing else is set it uses name(). | 75 | nothing else is set it uses name(). |
76 | 76 | ||
77 | name() is the NAME type of RFC2426. It can be used as internal name for the | 77 | name() is the NAME type of RFC2426. It can be used as internal name for the |
78 | data enty, but shouldn't be used for displaying the data to the user. | 78 | data enty, but shouldn't be used for displaying the data to the user. |
79 | */ | 79 | */ |
80 | class Addressee | 80 | class Addressee |
81 | { | 81 | { |
82 | friend QDataStream &operator<<( QDataStream &, const Addressee & ); | 82 | friend QDataStream &operator<<( QDataStream &, const Addressee & ); |
83 | friend QDataStream &operator>>( QDataStream &, Addressee & ); | 83 | friend QDataStream &operator>>( QDataStream &, Addressee & ); |
84 | 84 | ||
85 | public: | 85 | public: |
86 | typedef QValueList<Addressee> List; | 86 | typedef QValueList<Addressee> List; |
87 | 87 | ||
88 | /** | 88 | /** |
89 | Construct an empty address book entry. | 89 | Construct an empty address book entry. |
90 | */ | 90 | */ |
91 | Addressee(); | 91 | Addressee(); |
92 | ~Addressee(); | 92 | ~Addressee(); |
93 | 93 | ||
94 | Addressee( const Addressee & ); | 94 | Addressee( const Addressee & ); |
95 | Addressee &operator=( const Addressee & ); | 95 | Addressee &operator=( const Addressee & ); |
96 | 96 | ||
97 | bool operator==( const Addressee & ) const; | 97 | bool operator==( const Addressee & ) const; |
98 | bool operator!=( const Addressee & ) const; | 98 | bool operator!=( const Addressee & ) const; |
99 | // sync stuff | 99 | // sync stuff |
100 | void setTempSyncStat(int id); | 100 | void setTempSyncStat(int id); |
101 | int tempSyncStat() const; | 101 | int tempSyncStat() const; |
102 | void setIDStr( const QString & ); | 102 | void setIDStr( const QString & ); |
103 | QString IDStr() const; | 103 | QString IDStr() const; |
104 | void setID( const QString &, const QString & ); | 104 | void setID( const QString &, const QString & ); |
105 | QString getID( const QString & ); | 105 | QString getID( const QString & ); |
106 | void setCsum( const QString &, const QString & ); | 106 | void setCsum( const QString &, const QString & ); |
107 | QString getCsum( const QString & ); | 107 | QString getCsum( const QString & ); |
108 | void removeID(const QString &); | 108 | void removeID(const QString &); |
109 | void computeCsum(const QString &dev); | 109 | void computeCsum(const QString &dev); |
110 | ulong getCsum4List( const QStringList & attList); | 110 | ulong getCsum4List( const QStringList & attList); |
111 | /** | 111 | /** |
112 | Return, if the address book entry is empty. | 112 | Return, if the address book entry is empty. |
113 | */ | 113 | */ |
114 | bool isEmpty() const; | 114 | bool isEmpty() const; |
115 | void setExternalUID( const QString &id ); | 115 | void setExternalUID( const QString &id ); |
116 | QString externalUID() const; | 116 | QString externalUID() const; |
117 | void mergeContact( Addressee ad ); | 117 | void mergeContact( const Addressee& ad ); |
118 | /** | 118 | /** |
119 | Set unique identifier. | 119 | Set unique identifier. |
120 | */ | 120 | */ |
121 | void setUid( const QString &uid ); | 121 | void setUid( const QString &uid ); |
122 | /** | 122 | /** |
123 | Return unique identifier. | 123 | Return unique identifier. |
124 | */ | 124 | */ |
125 | QString uid() const; | 125 | QString uid() const; |
126 | /** | 126 | /** |
127 | Return translated label for uid field. | 127 | Return translated label for uid field. |
128 | */ | 128 | */ |
129 | static QString uidLabel(); | 129 | static QString uidLabel(); |
130 | 130 | ||
131 | /** | 131 | /** |
132 | Set name. | 132 | Set name. |
133 | */ | 133 | */ |
134 | void setName( const QString &name ); | 134 | void setName( const QString &name ); |
135 | /** | 135 | /** |
136 | Return name. | 136 | Return name. |
137 | */ | 137 | */ |
138 | QString name() const; | 138 | QString name() const; |
139 | /** | 139 | /** |
140 | Return translated label for name field. | 140 | Return translated label for name field. |
141 | */ | 141 | */ |
142 | static QString nameLabel(); | 142 | static QString nameLabel(); |
143 | 143 | ||
144 | /** | 144 | /** |
145 | Set formatted name. | 145 | Set formatted name. |
146 | */ | 146 | */ |
147 | void setFormattedName( const QString &formattedName ); | 147 | void setFormattedName( const QString &formattedName ); |
148 | /** | 148 | /** |
149 | Return formatted name. | 149 | Return formatted name. |
150 | */ | 150 | */ |
151 | QString formattedName() const; | 151 | QString formattedName() const; |
152 | /** | 152 | /** |
153 | Return translated label for formattedName field. | 153 | Return translated label for formattedName field. |
154 | */ | 154 | */ |
155 | static QString formattedNameLabel(); | 155 | static QString formattedNameLabel(); |
156 | 156 | ||
157 | /** | 157 | /** |
158 | Set family name. | 158 | Set family name. |
159 | */ | 159 | */ |
160 | void setFamilyName( const QString &familyName ); | 160 | void setFamilyName( const QString &familyName ); |
161 | /** | 161 | /** |
162 | Return family name. | 162 | Return family name. |
163 | */ | 163 | */ |
164 | QString familyName() const; | 164 | QString familyName() const; |
165 | /** | 165 | /** |
166 | Return translated label for familyName field. | 166 | Return translated label for familyName field. |
167 | */ | 167 | */ |
168 | static QString familyNameLabel(); | 168 | static QString familyNameLabel(); |
169 | 169 | ||
170 | /** | 170 | /** |
171 | Set given name. | 171 | Set given name. |
172 | */ | 172 | */ |
173 | void setGivenName( const QString &givenName ); | 173 | void setGivenName( const QString &givenName ); |
174 | /** | 174 | /** |
175 | Return given name. | 175 | Return given name. |
176 | */ | 176 | */ |
177 | QString givenName() const; | 177 | QString givenName() const; |
178 | /** | 178 | /** |
179 | Return translated label for givenName field. | 179 | Return translated label for givenName field. |
180 | */ | 180 | */ |
181 | static QString givenNameLabel(); | 181 | static QString givenNameLabel(); |
182 | 182 | ||
183 | /** | 183 | /** |
184 | Set additional names. | 184 | Set additional names. |
185 | */ | 185 | */ |
186 | void setAdditionalName( const QString &additionalName ); | 186 | void setAdditionalName( const QString &additionalName ); |
187 | /** | 187 | /** |
188 | Return additional names. | 188 | Return additional names. |
189 | */ | 189 | */ |
190 | QString additionalName() const; | 190 | QString additionalName() const; |
191 | /** | 191 | /** |
192 | Return translated label for additionalName field. | 192 | Return translated label for additionalName field. |
193 | */ | 193 | */ |
194 | static QString additionalNameLabel(); | 194 | static QString additionalNameLabel(); |
195 | 195 | ||
196 | /** | 196 | /** |
197 | Set honorific prefixes. | 197 | Set honorific prefixes. |
198 | */ | 198 | */ |
199 | void setPrefix( const QString &prefix ); | 199 | void setPrefix( const QString &prefix ); |
200 | /** | 200 | /** |
201 | Return honorific prefixes. | 201 | Return honorific prefixes. |
202 | */ | 202 | */ |
203 | QString prefix() const; | 203 | QString prefix() const; |
204 | /** | 204 | /** |
205 | Return translated label for prefix field. | 205 | Return translated label for prefix field. |
206 | */ | 206 | */ |
207 | static QString prefixLabel(); | 207 | static QString prefixLabel(); |
208 | 208 | ||
209 | /** | 209 | /** |
210 | Set honorific suffixes. | 210 | Set honorific suffixes. |
211 | */ | 211 | */ |
212 | void setSuffix( const QString &suffix ); | 212 | void setSuffix( const QString &suffix ); |
213 | /** | 213 | /** |
214 | Return honorific suffixes. | 214 | Return honorific suffixes. |
215 | */ | 215 | */ |
216 | QString suffix() const; | 216 | QString suffix() const; |
217 | /** | 217 | /** |
218 | Return translated label for suffix field. | 218 | Return translated label for suffix field. |
219 | */ | 219 | */ |
220 | static QString suffixLabel(); | 220 | static QString suffixLabel(); |
221 | 221 | ||
222 | /** | 222 | /** |
223 | Set nick name. | 223 | Set nick name. |
224 | */ | 224 | */ |
225 | void setNickName( const QString &nickName ); | 225 | void setNickName( const QString &nickName ); |
226 | /** | 226 | /** |
227 | Return nick name. | 227 | Return nick name. |
228 | */ | 228 | */ |
229 | QString nickName() const; | 229 | QString nickName() const; |
230 | /** | 230 | /** |
231 | Return translated label for nickName field. | 231 | Return translated label for nickName field. |
232 | */ | 232 | */ |
233 | static QString nickNameLabel(); | 233 | static QString nickNameLabel(); |
234 | 234 | ||
235 | /** | 235 | /** |
236 | Set birthday. | 236 | Set birthday. |
237 | */ | 237 | */ |
238 | void setBirthday( const QDateTime &birthday ); | 238 | void setBirthday( const QDateTime &birthday ); |
239 | /** | 239 | /** |
240 | Return birthday. | 240 | Return birthday. |
241 | */ | 241 | */ |
242 | QDateTime birthday() const; | 242 | QDateTime birthday() const; |
243 | /** | 243 | /** |
244 | Return translated label for birthday field. | 244 | Return translated label for birthday field. |
245 | */ | 245 | */ |
246 | static QString birthdayLabel(); | 246 | static QString birthdayLabel(); |
247 | 247 | ||
248 | /** | 248 | /** |
249 | Return translated label for homeAddressStreet field. | 249 | Return translated label for homeAddressStreet field. |
250 | */ | 250 | */ |
251 | static QString homeAddressStreetLabel(); | 251 | static QString homeAddressStreetLabel(); |
252 | 252 | ||
253 | /** | 253 | /** |
254 | Return translated label for homeAddressLocality field. | 254 | Return translated label for homeAddressLocality field. |
255 | */ | 255 | */ |
256 | static QString homeAddressLocalityLabel(); | 256 | static QString homeAddressLocalityLabel(); |
257 | 257 | ||
258 | /** | 258 | /** |
259 | Return translated label for homeAddressRegion field. | 259 | Return translated label for homeAddressRegion field. |
260 | */ | 260 | */ |
261 | static QString homeAddressRegionLabel(); | 261 | static QString homeAddressRegionLabel(); |
262 | 262 | ||
263 | /** | 263 | /** |
264 | Return translated label for homeAddressPostalCode field. | 264 | Return translated label for homeAddressPostalCode field. |
265 | */ | 265 | */ |
266 | static QString homeAddressPostalCodeLabel(); | 266 | static QString homeAddressPostalCodeLabel(); |
267 | 267 | ||
268 | /** | 268 | /** |
269 | Return translated label for homeAddressCountry field. | 269 | Return translated label for homeAddressCountry field. |
270 | */ | 270 | */ |
271 | static QString homeAddressCountryLabel(); | 271 | static QString homeAddressCountryLabel(); |
272 | 272 | ||
273 | /** | 273 | /** |
274 | Return translated label for homeAddressLabel field. | 274 | Return translated label for homeAddressLabel field. |
275 | */ | 275 | */ |
276 | static QString homeAddressLabelLabel(); | 276 | static QString homeAddressLabelLabel(); |
277 | 277 | ||
278 | /** | 278 | /** |
279 | Return translated label for businessAddressStreet field. | 279 | Return translated label for businessAddressStreet field. |
280 | */ | 280 | */ |
281 | static QString businessAddressStreetLabel(); | 281 | static QString businessAddressStreetLabel(); |
282 | 282 | ||
283 | /** | 283 | /** |
284 | Return translated label for businessAddressLocality field. | 284 | Return translated label for businessAddressLocality field. |
285 | */ | 285 | */ |
286 | static QString businessAddressLocalityLabel(); | 286 | static QString businessAddressLocalityLabel(); |
287 | 287 | ||
288 | /** | 288 | /** |
289 | Return translated label for businessAddressRegion field. | 289 | Return translated label for businessAddressRegion field. |
290 | */ | 290 | */ |
291 | static QString businessAddressRegionLabel(); | 291 | static QString businessAddressRegionLabel(); |
292 | 292 | ||
293 | /** | 293 | /** |
294 | Return translated label for businessAddressPostalCode field. | 294 | Return translated label for businessAddressPostalCode field. |
295 | */ | 295 | */ |
296 | static QString businessAddressPostalCodeLabel(); | 296 | static QString businessAddressPostalCodeLabel(); |
297 | 297 | ||
298 | /** | 298 | /** |
299 | Return translated label for businessAddressCountry field. | 299 | Return translated label for businessAddressCountry field. |
300 | */ | 300 | */ |
301 | static QString businessAddressCountryLabel(); | 301 | static QString businessAddressCountryLabel(); |
302 | 302 | ||
303 | /** | 303 | /** |
304 | Return translated label for businessAddressLabel field. | 304 | Return translated label for businessAddressLabel field. |
305 | */ | 305 | */ |
306 | static QString businessAddressLabelLabel(); | 306 | static QString businessAddressLabelLabel(); |
307 | 307 | ||
308 | /** | 308 | /** |
309 | Return translated label for homePhone field. | 309 | Return translated label for homePhone field. |