22 #ifndef KABC_ADDRESSEE_H
23 #define KABC_ADDRESSEE_H
25 #include <QtCore/QDateTime>
26 #include <QtCore/QStringList>
27 #include <QtCore/QSharedDataPointer>
31 #include "kabc/address.h"
34 #include "kabc/phonenumber.h"
35 #include "kabc/picture.h"
36 #include "kabc/secrecy.h"
37 #include "kabc/sound.h"
38 #include "kabc/email.h"
39 #include "kabc/lang.h"
40 #include "kabc/gender.h"
41 #include "kabc/timezone.h"
42 #include "kabc/calendarurl.h"
43 #include "kabc/addresseelist.h"
47 #ifndef KDEPIM_NO_KRESOURCES
123 bool operator==(
const Addressee & )
const;
131 bool operator!=(
const Addressee & )
const;
136 bool isEmpty()
const;
143 void setUid(
const QString &uid );
158 void setName(
const QString &name );
173 void setFormattedName(
const QString &formattedName );
183 static QString formattedNameLabel();
188 void setFamilyName(
const QString &familyName );
198 static QString familyNameLabel();
203 void setGivenName(
const QString &givenName );
213 static QString givenNameLabel();
218 void setAdditionalName(
const QString &additionalName );
223 QString additionalName()
const;
228 static QString additionalNameLabel();
233 void setPrefix(
const QString &prefix );
248 void setSuffix(
const QString &suffix );
263 void setNickName(
const QString &nickName );
273 static QString nickNameLabel();
278 void setBirthday(
const QDateTime &birthday );
288 static QString birthdayLabel();
293 static QString homeAddressStreetLabel();
298 static QString homeAddressPostOfficeBoxLabel();
303 static QString homeAddressLocalityLabel();
308 static QString homeAddressRegionLabel();
313 static QString homeAddressPostalCodeLabel();
318 static QString homeAddressCountryLabel();
323 static QString homeAddressLabelLabel();
328 static QString businessAddressStreetLabel();
333 static QString businessAddressPostOfficeBoxLabel();
338 static QString businessAddressLocalityLabel();
343 static QString businessAddressRegionLabel();
348 static QString businessAddressPostalCodeLabel();
353 static QString businessAddressCountryLabel();
358 static QString businessAddressLabelLabel();
363 static QString homePhoneLabel();
368 static QString businessPhoneLabel();
373 static QString mobilePhoneLabel();
383 static QString businessFaxLabel();
388 static QString carPhoneLabel();
408 void setMailer(
const QString &mailer );
423 void setTimeZone(
const TimeZone &timeZone );
433 static QString timeZoneLabel();
438 void setGeo(
const Geo &geo );
453 void setTitle(
const QString &title );
468 void setRole(
const QString &role );
483 void setOrganization(
const QString &organization );
493 static QString organizationLabel();
498 void setDepartment(
const QString &department );
508 static QString departmentLabel();
513 void setNote(
const QString ¬e );
528 void setProductId(
const QString &productId );
538 static QString productIdLabel();
543 void setRevision(
const QDateTime &revision );
553 static QString revisionLabel();
558 void setSortString(
const QString &sortString );
568 static QString sortStringLabel();
573 void setUrl(
const KUrl &url );
588 void setSecrecy(
const Secrecy &secrecy );
593 Secrecy secrecy()
const;
603 void setLogo(
const Picture &logo );
618 void setPhoto(
const Picture &photo );
633 void setSound(
const Sound &sound );
650 void setNameFromString(
const QString & );
679 void insertEmail(
const QString &email,
bool preferred=
false );
686 void removeEmail(
const QString &email );
692 QString preferredEmail()
const;
712 void insertPhoneNumber(
const PhoneNumber &phoneNumber );
720 void removePhoneNumber(
const PhoneNumber &phoneNumber );
727 PhoneNumber phoneNumber( PhoneNumber::Type type )
const;
755 void insertKey(
const Key &key );
763 void removeKey(
const Key &key );
813 void insertAddress(
const Address &address );
821 void removeAddress(
const Address &address );
828 Address address( Address::Type type )
const;
852 void insertCategory(
const QString & );
857 void removeCategory(
const QString & );
862 bool hasCategory(
const QString & )
const;
925 static void parseEmailAddress(
const QString &rawEmail,
QString &fullName,
933 #ifndef KDEPIM_NO_KRESOURCES
939 void setResource(
Resource *resource );
952 void setChanged(
bool value );
957 bool changed()
const;
976 bool operator< (
const Addressee &addr )
const;
988 void removeLang(
const QString &language);
989 void insertLang(
const Lang &language);
993 void setGender(
const KABC::Gender &gender);
994 KABC::Gender gender()
const;
997 void setKind(
const QString &kind);
999 void insertCalendarUrl(
const KABC::CalendarUrl &calendarUrl);
1017 void insertExtraUrl(
const KUrl &url);
1020 void insertMember(
const QString &member);
1024 void insertRelationShip(
const QString &related);
1028 void insertSourceUrl(
const KUrl &url);
1029 void setSourcesUrlList(
const QList<KUrl> &urlList);
1044 #define KABC_ADDRESSEE_METATYPE_DEFINED 1
Class that holds a Sound clip for a contact.
Postal address information.
A class to store a picture of an addressee.
a QValueList of Addressee, with sorting functionality
Sort method for sorting an addressee list.
A class to store an encryption key.
QDataStream & operator<<(QDataStream &stream, const Address &address)
Serializes the address object into the stream.
QMap< QString, Addressee > Map
A map from unique identifier to addressee.
QDataStream & operator>>(QDataStream &stream, Address &address)
Initializes the address object from the stream.
AddresseeList List
A list of addressee objects.