messageviewer
headerstyle_util.cpp
Go to the documentation of this file.
101 for ( SpamScores::const_iterator it = scores.constBegin(), end = scores.constEnd() ; it != end ; ++it )
103 MessageViewer::HeaderStyleUtil::drawSpamMeter( (*it).error(), (*it).score(), (*it).confidence(), (*it).spamHeader(), (*it).confidenceHeader() );
196 return QString::fromLatin1("<img src=\"%1\" width=\"%2\" height=\"%3\" style=\"border: 1px solid black;\" title=\"%4\"> ")
207 return QString::fromLatin1("data:image/%1;base64,%2").arg( QString::fromLatin1( "PNG" ), QString::fromLatin1( ba.toBase64() ) );
273 photo = photo.scaled( settings.photoWidth, settings.photoHeight, Qt::IgnoreAspectRatio, Qt::SmoothTransformation );
291 dynamic_cast<ContactDisplayMessageMemento*>( style->nodeHelper()->bodyPartMemento( message, "contactphoto" ) );
293 const QString email = QString::fromLatin1(KPIMUtils::firstEmailAddress( message->from()->as7BitString(false) ));
359 if( settings.photoURL.isEmpty() && message->headerByType( "X-Face" ) && useOtherPhotoSources ) {
QString directionOf(const QString &str)
Definition: headerstyle_util.cpp:45
bool loadFromData(const uchar *data, int len, const char *format)
QString drawSpamMeter(SpamError spamError, double percent, double confidence, const QString &filterHeader, const QString &confidenceHeader)
Definition: headerstyle_util.cpp:109
This class encapsulates the visual appearance of message headers.
Definition: headerstyle.h:60
QString dateString(KMime::Message *message, bool printing, bool shortDate)
Definition: headerstyle_util.cpp:54
bool save(const QString &fileName, const char *format, int quality) const
QString & prepend(QChar ch)
QList< KMime::Types::Mailbox > resentToList(KMime::Message *message)
Definition: headerstyle_util.cpp:244
Definition: spamheaderanalyzer.h:45
const_iterator constEnd() const
void setPixel(int x, int y, uint index_or_rgb)
xfaceSettings xface(const MessageViewer::HeaderStyle *style, KMime::Message *message)
Definition: headerstyle_util.cpp:279
int photoHeight
Definition: headerstyle_util.h:70
int photoWidth
Definition: headerstyle_util.h:69
UpdateMode
The display update mode: Force updates the display immediately, Delayed updates after some time (150m...
Definition: viewer.h:132
bool isNull() const
int length() const
void setColor(int index, QRgb colorValue)
QString dateShortStr(const KDateTime &dateTime)
Definition: headerstyle_util.cpp:219
void setNumColors(int numColors)
QString dateStr(const KDateTime &dateTime)
Definition: headerstyle_util.cpp:210
bool isRightToLeft() const
QString number(int n, int base)
void append(const T &value)
void updateXFaceSettings(QImage photo, xfaceSettings &settings)
Definition: headerstyle_util.cpp:263
void fill(uint pixelValue)
int width() const
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual bool open(QFlags< QIODevice::OpenModeFlag > flags)
Definition: kxface.h:521
QString subjectDirectionString(KMime::Message *message)
Definition: headerstyle_util.cpp:85
void setBodyPartMemento(KMime::Content *node, const QByteArray &which, Interface::BodyPartMemento *memento)
Definition: nodehelper.cpp:612
QString subjectString(KMime::Message *message, int flags)
Definition: headerstyle_util.cpp:69
QString imgToDataUrl(const QImage &image)
Definition: headerstyle_util.cpp:201
Interface::BodyPartMemento * bodyPartMemento(KMime::Content *node, const QByteArray &which) const
Definition: nodehelper.cpp:599
QString spamStatus(KMime::Message *message)
Definition: headerstyle_util.cpp:95
const_iterator constBegin() const
QByteArray fromBase64(const QByteArray &base64)
char * data()
QString fromLatin1(const char *str, int size)
int height() const
QObject * sourceObject() const
Definition: headerstyle.h:127
QByteArray toBase64() const
QList< KMime::Types::Mailbox > resentFromList(KMime::Message *message)
Definition: headerstyle_util.cpp:225
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString photoURL
Definition: headerstyle_util.h:68
QString strToHtml(const QString &str, int flags)
Definition: headerstyle_util.cpp:49
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
Definition: spamheaderanalyzer.h:49
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 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:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.