|
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) |
|
bool MESSAGEVIEWER_EXPORT | saveContent (QWidget *parent, KMime::Content *content, const KUrl &url) |
|
bool MESSAGEVIEWER_EXPORT | saveContents (QWidget *parent, const QList< KMime::Content * > &contents) |
|
bool MESSAGEVIEWER_EXPORT | saveMessageInMbox (const QList< Akonadi::Item > &retrievedMsgs, QWidget *parent, bool appendMessages=false) |
|
bool MESSAGEVIEWER_EXPORT | speakSelectedText (const QString &text, QWidget *parent) |
|
The Util namespace contains a collection of helper functions use in various places.
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
Definition at line 93 of file util.cpp.