KContacts
ldifconverter.cpp
79bool LDIFConverter::addresseeAndContactGroupToLDIF(const AddresseeList &addrList, const ContactGroup::List &contactGroupList, QString &str)
151 ldif_out(t, QStringLiteral("dn"), QStringLiteral("cn=%1,mail=%2").arg(addr.formattedName().simplified(), addr.preferredEmail()));
179 ldif_out(t, QStringLiteral("facsimiletelephonenumber"), addr.phoneNumber(PhoneNumber::Fax).number());
231 ldif_out(t, QStringLiteral("department"), addr.custom(QStringLiteral("KADDRESSBOOK"), QStringLiteral("X-Department")));
259bool LDIFConverter::LDIFToAddressee(const QString &str, AddresseeList &addrList, ContactGroup::List &contactGroupList, const QDateTime &dt)
291 evaluatePair(a, homeAddr, workAddr, fieldname, value, birthday, birthmonth, birthyear, contactGroup);
646 qCWarning(KCONTACTS_LOG) << QStringLiteral("LDIFConverter: Unknown field for '%1': '%2=%3'\n").arg(a.formattedName(), fieldname, value);
void setStreet(const QString &street)
Sets the street (including house number).
Definition address.cpp:243
void setPostOfficeBox(const QString &postOfficeBox)
Sets the post office box.
Definition address.cpp:211
void setBirthday(const QDateTime &birthday, bool withTime=true)
Set birthday (date and time).
Definition addressee.cpp:825
void insertPhoneNumber(const PhoneNumber &phoneNumber)
Insert a phone number.
Definition addressee.cpp:1748
QString custom(const QString &app, const QString &name) const
Return value of custom entry, identified by app and entry name.
Definition addressee.cpp:2274
Address address(Address::Type type) const
Return address, which matches the given type.
Definition addressee.cpp:2019
PhoneNumber phoneNumber(PhoneNumber::Type type) const
Return phone number, which matches the given type.
Definition addressee.cpp:1776
This class represents a contact data object.
Definition contactgroup.h:224
void setName(const QString &name)
Sets the name of the contact data object.
Definition contactgroup.cpp:238
void setEmail(const QString &email)
Sets the email address of the contact data object.
Definition contactgroup.cpp:248
QString email() const
Returns the email address of the contact data object.
Definition contactgroup.cpp:253
void append(const ContactReference &reference)
Appends a new contact reference to the contact group.
Definition contactgroup.cpp:417
void setName(const QString &name)
Sets the i18n'd name of the contact group.
Definition contactgroup.cpp:335
Data & data(int index)
Returns the contact data object at the given index.
Definition contactgroup.cpp:403
int dataCount() const
Returns the number of contact data objects in this group.
Definition contactgroup.cpp:370
static KCountry fromAlpha2(const char *alpha2Code)
KCONTACTS_EXPORT bool LDIFToAddressee(const QString &str, AddresseeList &addrList, QList< KContacts::ContactGroup > &contactGroupList, const QDateTime &dt=QDateTime::currentDateTime())
Converts a LDIF string to a list of addressees.
KCONTACTS_EXPORT bool addresseeToLDIF(const AddresseeList &addrList, QString &str)
Converts a list of addressees to a LDIF string.
Definition ldifconverter.cpp:121
KCONTACTS_EXPORT bool contactGroupToLDIF(const ContactGroup::List &contactGroupList, QString &str)
Converts a list of contact group to a LDIF string.
Definition ldifconverter.cpp:108
KCONTACTS_EXPORT bool addresseeAndContactGroupToLDIF(const AddresseeList &addrList, const QList< KContacts::ContactGroup > &contactGroupList, QString &str)
Converts a list of addressees and contactgrouplist to a LDIF string.
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QString name(StandardAction id)
KGuiItem ok()
const QList< QKeySequence > & end()
int day() const const
bool isValid(int year, int month, int day)
int month() const const
int year() const const
QDateTime currentDateTime()
QDate date() const const
bool isValid() const const
WriteOnly
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
qsizetype count() const const
bool isEmpty() const const
QString arg(Args &&... args) const const
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
QString number(double n, char format, int precision)
QString simplified() const const
QStringList split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
int toInt(bool *ok, int base) const const
QByteArray toLatin1() const const
QString toLower() const const
QStringView mid(qsizetype start, qsizetype length) const const
QString toString() const const
QStringView trimmed() const const
bool isEmpty() const const
QString toDisplayString(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.