field.cpp
33 Private(int fieldId, int category = 0, const QString &label = QString(), const QString &key = QString(), const QString &app = QString())
560 for (it = Private::mDefaultFields.constBegin(); it != Private::mDefaultFields.constEnd(); ++it) {
648 Field *Field::createCustomField(const QString &label, int category, const QString &key, const QString &app)
QString custom(const QString &app, const QString &name) const
Return value of custom entry, identified by app and entry name.
Definition: addressee.cpp:2277
void setFormattedName(const QString &formattedName)
Set formatted name.
Definition: addressee.cpp:632
static void saveFields(KConfigGroup &cfg, const QString &identifier, const Field::List &fields)
Save the field settings to a config file.
Definition: field.cpp:578
static QString carPhoneLabel()
Return translated label for carPhone field.
Definition: addressee.cpp:938
static Field::List restoreFields(const KConfigGroup &cfg, const QString &identifier)
Load the field settings from a config file.
Definition: field.cpp:607
static QString businessAddressRegionLabel()
Return translated label for businessAddressRegion field.
Definition: addressee.cpp:893
QString toDisplayString(QFlags< QUrl::UrlFormattingOption > options) const
static QString givenNameLabel()
Return translated label for givenName field.
Definition: addressee.cpp:687
QString toString(Qt::DateFormat format) const
iterator begin()
static QString mobilePhoneLabel()
Return translated label for mobilePhone field.
Definition: addressee.cpp:923
void reserve(int alloc)
time_t date() const
static QString nickNameLabel()
Return translated label for nickName field.
Definition: addressee.cpp:798
static QString categoryLabel(int category)
Returns the translated label for category.
Definition: field.cpp:227
static QString homePhoneLabel()
Return translated label for homePhone field.
Definition: addressee.cpp:913
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
static QString homeAddressStreetLabel()
Return translated label for homeAddressStreet field.
Definition: addressee.cpp:843
typedef ConstIterator
static QString homeAddressLocalityLabel()
Return translated label for homeAddressLocality field.
Definition: addressee.cpp:853
int month() const
void setAdditionalName(const QString &additionalName)
Set additional names.
Definition: addressee.cpp:692
static QString homeFaxLabel()
Return translated label for homeFax field.
Definition: addressee.cpp:928
Address address(Address::Type type) const
Return address, which matches the given type.
Definition: addressee.cpp:2021
static QString businessAddressStreetLabel()
Return translated label for businessAddressStreet field.
Definition: addressee.cpp:878
QDate fromString(const QString &string, Qt::DateFormat format)
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
static QString businessAddressCountryLabel()
Return translated label for businessAddressCountry field.
Definition: addressee.cpp:903
QString i18nc(const char *context, const char *text, const TYPE &arg...)
static QString homeAddressLabelLabel()
Return translated label for homeAddressLabel field.
Definition: addressee.cpp:873
QString label(StandardShortcut id)
int day() const
static QString businessAddressLabelLabel()
Return translated label for businessAddressLabel field.
Definition: addressee.cpp:908
static QString businessAddressPostalCodeLabel()
Return translated label for businessAddressPostalCode field.
Definition: addressee.cpp:898
virtual bool setValue(KContacts::Addressee &addressee, const QString &value)
Sets the value of the field in the given Addressee.
Definition: field.cpp:386
Definition: contactgrouptool.h:29
static QString additionalNameLabel()
Return translated label for additionalName field.
Definition: addressee.cpp:707
virtual QString value(const KContacts::Addressee &addressee)
Returns a string representation of the value the field has in the given Addressee.
Definition: field.cpp:249
virtual bool equals(Field *field)
Returns, if the field is equal with field.
Definition: field.cpp:633
iterator end()
static QString formattedNameLabel()
Return translated label for formattedName field.
Definition: addressee.cpp:647
PhoneNumber phoneNumber(PhoneNumber::Type type) const
Return phone number, which matches the given type.
Definition: addressee.cpp:1757
static QString businessAddressLocalityLabel()
Return translated label for businessAddressLocality field.
Definition: addressee.cpp:888
static QString familyNameLabel()
Return translated label for familyName field.
Definition: addressee.cpp:667
bool isValid() const
QString i18n(const char *text, const TYPE &arg...)
void insertCustom(const QString &app, const QString &name, const QString &value)
Insert custom entry.
Definition: addressee.cpp:2257
Definition: address.h:32
QDate date() const
static QString businessPhoneLabel()
Return translated label for businessPhone field.
Definition: addressee.cpp:918
static QString homeAddressPostalCodeLabel()
Return translated label for homeAddressPostalCode field.
Definition: addressee.cpp:863
static QString homeAddressPostOfficeBoxLabel()
Return translated label for homeAddressPostOfficeBox field.
Definition: addressee.cpp:848
typedef ConstIterator
void setBirthday(const QDateTime &birthday, bool withTime=true)
Set birthday (date and time).
Definition: addressee.cpp:803
static QString businessAddressPostOfficeBoxLabel()
Return translated label for businessAddressPostOfficeBox field.
Definition: addressee.cpp:883
static QString homeAddressRegionLabel()
Return translated label for homeAddressRegion field.
Definition: addressee.cpp:858
static Field * createCustomField(const QString &label, int category, const QString &key, const QString &app)
Creates a custom field.
Definition: field.cpp:648
static QString businessFaxLabel()
Return translated label for businessFax field.
Definition: addressee.cpp:933
static QString birthdayLabel()
Return translated label for birthday field.
Definition: addressee.cpp:838
QString sortKey(const KContacts::Addressee &addressee)
Returns a string, that can be used for sorting.
Definition: field.cpp:439
static void createDefaultField(int id, int category=0)
Definition: field.cpp:546
static QString organizationLabel()
Return translated label for organization field.
Definition: addressee.cpp:1166
iterator end()
T readEntry(const QString &key, const T &aDefault) const
static QString departmentLabel()
Return translated label for department field.
Definition: addressee.cpp:1186
static QString homeAddressCountryLabel()
Return translated label for homeAddressCountry field.
Definition: addressee.cpp:868
iterator begin()
static void createField(int id, int category=0)
Definition: field.cpp:541
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sat Dec 14 2019 01:54:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sat Dec 14 2019 01:54:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.