kabc
ldifconverter.cpp
77 bool LDIFConverter::addresseeAndContactGroupToLDIF( const AddresseeList &addrList, const ContactGroup::List &contactGroupList, QString &str )
106 bool LDIFConverter::contactGroupToLDIF( const ContactGroup::List &contactGroupList, QString &str )
245 bool LDIFConverter::LDIFToAddressee( const QString &str, AddresseeList &addrList, ContactGroup::List &contactGroupList,
277 evaluatePair( a, homeAddr, workAddr, fieldname, value, birthday, birthmonth, birthyear, contactGroup );
void setCodec(QTextCodec *codec)
void setName(const QString &name)
Sets the i18n'd name of the contact group.
Definition: contactgroup.cpp:354
QString custom(const QString &app, const QString &name) const
Return value of custom entry, identified by app and entry name.
Definition: addressee.cpp:1949
void setEmail(const QString &email)
Sets the email address of the contact data object.
Definition: contactgroup.cpp:267
void insertEmail(const QString &email, bool preferred=false)
Insert an email address.
Definition: addressee.cpp:1420
void insertPhoneNumber(const PhoneNumber &phoneNumber)
Insert a phone number.
Definition: addressee.cpp:1525
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:288
void setFormattedName(const QString &formattedName)
Set formatted name.
Definition: addressee.cpp:570
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString simplified() const
static QByteArray assembleLine(const QString &fieldname, const QByteArray &value, uint linelen=0, bool url=false)
Assembles fieldname and value into a valid Ldif line, BASE64 encodes the value if necessary and optio...
Definition: ldif.cpp:71
unsigned int dataCount() const
Returns the number of contact data objects in this group.
Definition: contactgroup.cpp:389
void setStreet(const QString &street)
Sets the street (including house number).
Definition: address.cpp:388
int month() const
QDate fromString(const QString &string, Qt::DateFormat format)
static QString ISOtoCountry(const QString &ISOname)
Returns a localized country name for a ISO code.
Definition: address.cpp:651
Data & data(unsigned int index)
Returns the contact data object at the given index.
Definition: contactgroup.cpp:427
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
QString fromUtf8(const char *str, int size)
PhoneNumber phoneNumber(PhoneNumber::Type type) const
Return phone number, which matches the given type.
Definition: addressee.cpp:1551
int toInt(bool *ok, int base) const
bool isEmpty() const
QString dateToVCardString(const QDateTime &dateTime)
Helper functions.
Definition: vcardconverter.cpp:105
bool isEmpty() const
QString trimmed() const
QDateTime VCardStringToDate(const QString &dateString)
Converts a date string as it is used in VCard and LDIF files to a QDateTime value.
Definition: vcardconverter.cpp:115
int day() const
void setPostOfficeBox(const QString &postOfficeBox)
Sets the post office box.
Definition: address.cpp:356
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void append(const ContactReference &reference)
Appends a new contact reference to the contact group.
Definition: contactgroup.cpp:441
bool isValid() const
bool LDIFToAddressee(const QString &str, AddresseeList &addrList, const QDateTime &dt=QDateTime::currentDateTime())
Converts a LDIF string to a list of addressees.
Definition: ldifconverter.cpp:327
int year() const
Definition: contactgrouptool.h:30
void setName(const QString &name)
Sets the name of the contact data object.
Definition: contactgroup.cpp:257
QString toLower() const
bool isValid() const
QDateTime currentDateTime()
QByteArray toLatin1() const
QString mid(int position, int n) const
QDate date() const
bool addresseeToLDIF(const AddresseeList &addrList, QString &str)
Converts a list of addressees to a LDIF string.
Definition: ldifconverter.cpp:54
QString email() const
Returns the email address of the contact data object.
Definition: contactgroup.cpp:272
QTextCodec * codecForName(const QByteArray &name)
typedef ConstIterator
int length() const
QString fromLatin1(const char *str, int size)
int indexOf(const QRegExp &rx, int from) const
unsigned int count() const
Returns the number of contacts in this group.
Definition: contactgroup.cpp:374
const_iterator constEnd() const
bool evaluatePair(Addressee &a, Address &homeAddr, Address &workAddr, QString &fieldname, QString &value, int &birthday, int &birthmonth, int &birthyear, ContactGroup &contactGroup)
Definition: ldifconverter.cpp:334
const_iterator constBegin() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Address address(Address::Type type) const
Return address, which matches the given type.
Definition: addressee.cpp:1802
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.