console/kabcclient
outputformatimpls.cpp
Go to the documentation of this file.
270 QStringList optionList = QString::fromLocal8Bit(options).split(QLatin1Char(','), QString::SkipEmptyParts);
353 stream << fromUnicode(m_codec, decorateEmail(addressee, addressee.preferredEmail())).constData();
383 QString EmailOutput::decorateEmail(const KABC::Addressee& addressee, const QString& email) const
411 QStringList optionList = QString::fromLocal8Bit(options).split(QLatin1Char(','), QString::SkipEmptyParts);
virtual bool setCodec(QTextCodec *codec)
Sets the text codec to use.
Definition: outputformatimpls.cpp:308
QByteArray fromUnicode(const QString &str) const
CSVOutput(CSVTemplateFactory *templateFactory)
Definition: outputformatimpls.cpp:683
virtual QByteArray name() const =0
virtual QString optionUsage() const
Returns a translate message about the available format options.
Definition: outputformatimpls.cpp:715
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
virtual bool setCodec(QTextCodec *codec)
Sets the text codec to use.
Definition: outputformatimpls.cpp:68
virtual bool writeAddresseeList(const KABC::AddresseeList &addresseeList, std::ostream &stream)
Writes the data from each addressee in the given list to the given output stream. ...
Definition: outputformatimpls.cpp:90
const_iterator constBegin() const
virtual QString description() const
Returns a translate description of the output format.
Definition: outputformatimpls.cpp:261
virtual bool setCodec(QTextCodec *codec)
Sets the text codec to use.
Definition: outputformatimpls.cpp:493
QMap< QString, QString > templateNames()
Returns a set of available templates.
Definition: csvtemplatefactory.cpp:96
virtual QString optionUsage() const
Returns a translate message about the available format options.
Definition: outputformatimpls.cpp:289
QString join(const QString &separator) const
virtual QString description() const
Returns a translate description of the output format.
Definition: outputformatimpls.cpp:696
virtual bool writeAddressee(const KABC::Addressee &addressee, std::ostream &stream)
Writes the data of a given addressee to the given output stream.
Definition: outputformatimpls.cpp:756
virtual bool writeAddressee(const KABC::Addressee &addressee, std::ostream &stream)
Writes the data of a given addressee to the given output stream.
Definition: outputformatimpls.cpp:79
virtual bool writeAddressee(const KABC::Addressee &addressee, std::ostream &stream)
Writes the data of a given addressee to the given output stream.
Definition: outputformatimpls.cpp:181
virtual bool setOptions(const QByteArray &options)
Configures the output format.
Definition: outputformatimpls.cpp:268
virtual bool writeAddresseeList(const KABC::AddresseeList &addresseeList, std::ostream &stream)
Writes the data from each addressee in the given list to the given output stream. ...
Definition: outputformatimpls.cpp:362
virtual bool setOptions(const QByteArray &options)
Configures the output format.
Definition: outputformatimpls.cpp:131
virtual bool setOptions(const QByteArray &options)
Configures the output format.
Definition: outputformatimpls.cpp:60
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
QString fromUtf8(const char *str, int size)
virtual QString description() const
Returns a translate description of the output format.
Definition: outputformatimpls.cpp:402
virtual bool writeAddresseeList(const KABC::AddresseeList &addresseeList, std::ostream &stream)
Writes the data from each addressee in the given list to the given output stream. ...
Definition: outputformatimpls.cpp:217
virtual bool setCodec(QTextCodec *codec)
Sets the text codec to use.
Definition: outputformatimpls.cpp:745
bool isEmpty() const
virtual bool setOptions(const QByteArray &options)
Configures the output format.
Definition: outputformatimpls.cpp:409
const_iterator constEnd() const
const char * constData() const
virtual QString optionUsage() const
Returns a translate message about the available format options.
Definition: outputformatimpls.cpp:444
QByteArray fromUnicode(QTextCodec *codec, const QString &text)
Definition: outputformatimpls.cpp:44
QString fieldText(int column, const KABC::Addressee &addressee) const
Returns the specified field of the given addressee formatted as a string.
Definition: csvtemplate.cpp:113
QByteArray toLocal8Bit() const
CSVTemplate * createCachedTemplate(const QString &name)
Creates a template handler for a given name and caches the instance.
Definition: csvtemplatefactory.cpp:74
virtual bool writeAddresseeList(const KABC::AddresseeList &addresseeList, std::ostream &stream)
Writes the data from each addressee in the given list to the given output stream. ...
Definition: outputformatimpls.cpp:630
static CSVTemplate * defaultTemplate()
Returns the template with default setup.
Definition: csvtemplate.cpp:429
const Key key(const T &value) const
QString & replace(int position, int n, QChar after)
virtual QString description() const
Returns a translate description of the output format.
Definition: outputformatimpls.cpp:124
virtual QString optionUsage() const
Returns a translate message about the available format options.
Definition: outputformatimpls.cpp:143
QTextCodec * codecForName(const QByteArray &name)
int length() const
char * data()
QString fromLatin1(const char *str, int size)
const_iterator constEnd() const
virtual bool setOptions(const QByteArray &options)
Configures the output format.
Definition: outputformatimpls.cpp:703
const_iterator constBegin() const
virtual bool writeAddressee(const KABC::Addressee &addressee, std::ostream &stream)
Writes the data of a given addressee to the given output stream.
Definition: outputformatimpls.cpp:504
virtual QString description() const
Returns a translate description of the output format.
Definition: outputformatimpls.cpp:53
virtual bool setCodec(QTextCodec *codec)
Sets the text codec to use.
Definition: outputformatimpls.cpp:159
virtual bool writeAddresseeList(const KABC::AddresseeList &addresseeList, std::ostream &stream)
Writes the data from each addressee in the given list to the given output stream. ...
Definition: outputformatimpls.cpp:778
virtual bool writeAddressee(const KABC::Addressee &addressee, std::ostream &stream)
Writes the data of a given addressee to the given output stream.
Definition: outputformatimpls.cpp:319
const T value(const Key &key) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:23 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:31:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.