messageviewer
Enumerations | |
enum | HtmlMode { Normal, Html, MultipartPlain, MultipartHtml } |
Functions | |
QList< KMime::Content * > MESSAGEVIEWER_EXPORT | allContents (const KMime::Content *message) |
bool MESSAGEVIEWER_EXPORT | checkOverwrite (const KUrl &url, QWidget *w) |
MESSAGEVIEWER_EXPORT KAction * | createAppAction (const KService::Ptr &service, bool singleOffer, QActionGroup *actionGroup, QObject *parent) |
QList< KMime::Content * > MESSAGEVIEWER_EXPORT | extractAttachments (const KMime::Message *message) |
QString MESSAGEVIEWER_EXPORT | fileNameForMimetype (const QString &mimeType, int iconSize, const QString &fallbackFileName1=QString(), const QString &fallbackFileName2=QString()) |
int MESSAGEVIEWER_EXPORT | getWritePermissions () |
bool MESSAGEVIEWER_EXPORT | handleUrlWithQDesktopServices (const KUrl &url) |
MESSAGEVIEWER_EXPORT KMimeType::Ptr | mimetype (const QString &name) |
bool MESSAGEVIEWER_EXPORT | saveAttachments (const KMime::Content::List &contents, QWidget *parent, KUrl ¤tFolder) |
bool MESSAGEVIEWER_EXPORT | saveContent (QWidget *parent, KMime::Content *content, const KUrl &url) |
bool MESSAGEVIEWER_EXPORT | saveContents (QWidget *parent, const QList< KMime::Content * > &contents, KUrl ¤tFolder) |
bool MESSAGEVIEWER_EXPORT | saveMessageInMbox (const QList< Akonadi::Item > &retrievedMsgs, QWidget *parent, bool appendMessages=false) |
bool MESSAGEVIEWER_EXPORT | speakSelectedText (const QString &text, QWidget *parent) |
Detailed Description
The Util namespace contains a collection of helper functions use in various places.
Enumeration Type Documentation
Describes the type of the displayed message.
This depends on the MIME structure of the mail and on whether HTML mode is enabled (which is decided by htmlMail())
Function Documentation
QList< KMime::Content * > MessageViewer::Util::allContents | ( | const KMime::Content * | message | ) |
bool MessageViewer::Util::checkOverwrite | ( | const KUrl & | url, |
QWidget * | w | ||
) |
KAction * MessageViewer::Util::createAppAction | ( | const KService::Ptr & | service, |
bool | singleOffer, | ||
QActionGroup * | actionGroup, | ||
QObject * | parent | ||
) |
QList< KMime::Content * > MessageViewer::Util::extractAttachments | ( | const KMime::Message * | message | ) |
QString MessageViewer::Util::fileNameForMimetype | ( | const QString & | mimeType, |
int | iconSize, | ||
const QString & | fallbackFileName1 = QString() , |
||
const QString & | fallbackFileName2 = QString() |
||
) |
Finds the filename of an icon based on the given mimetype or filenames.
Always use this functions when looking up icon names for mime types, don't use KMimeType directly.
Uses the IconNameCache internally to speed things up.
- Parameters
-
mimeType The primary mime type used to find the icon, e.g. "application/zip". Alias mimetypes are resolved. size Size of the requested icon, e.g. KIconLoader::Desktop fallbackFileName(1|2) When the icon is not found by the given mime type, use the file name extensions of these file names to look the icon up. Example: "test.zip"
- Returns
- the full file name of the icon file
int MessageViewer::Util::getWritePermissions | ( | ) |
bool MessageViewer::Util::handleUrlWithQDesktopServices | ( | const KUrl & | url | ) |
Delegates opening a URL to the QDesktopServices mechanisms for that on Windows and MacOSX.
Returns false if it did nothing (such as on other platforms).
KMimeType::Ptr MessageViewer::Util::mimetype | ( | const QString & | name | ) |
bool MessageViewer::Util::saveAttachments | ( | const KMime::Content::List & | contents, |
QWidget * | parent, | ||
KUrl & | currentFolder | ||
) |
bool MessageViewer::Util::saveContent | ( | QWidget * | parent, |
KMime::Content * | content, | ||
const KUrl & | url | ||
) |
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.