messageviewer
urlhandlermanager.cpp
Go to the documentation of this file.
243 void URLHandlerManager::BodyPartURLHandlerManager::registerHandler( const Interface::BodyPartURLHandler * handler ) {
250 void URLHandlerManager::BodyPartURLHandlerManager::unregisterHandler( const Interface::BodyPartURLHandler * handler ) {
255 static KMime::Content * partNodeFromXKMailUrl( const KUrl & url, ViewerPrivate * w, QString * path ) {
276 bool URLHandlerManager::BodyPartURLHandlerManager::handleClick( const KUrl & url, ViewerPrivate * w ) const {
293 bool URLHandlerManager::BodyPartURLHandlerManager::handleContextMenuRequest( const KUrl & url, const QPoint & p, ViewerPrivate * w ) const {
307 QString URLHandlerManager::BodyPartURLHandlerManager::statusBarMessage( const KUrl & url, ViewerPrivate * w ) const {
406 bool URLHandlerManager::handleContextMenuRequest( const KUrl & url, const QPoint & p, ViewerPrivate * w ) const {
574 if ( url.protocol() == QLatin1String( "kmail" ) && url.path() == QLatin1String( "levelquote" ) )
644 lst << QLatin1String("-parent-windowid") << QString::number((qlonglong)w->viewer()->mainWindow()->winId() ) << QLatin1String("-query") << keyId;
686 job->setQuery( Akonadi::ContactSearchJob::ContactUid, uid, Akonadi::ContactSearchJob::ExactMatch );
721 menu->addAction( KIcon( QLatin1String("view-pim-contacts") ), i18n( "&Open in Address Book" ) );
831 f.setPermissions(QFile::ReadOwner|QFile::WriteOwner|QFile::ReadUser|QFile::ReadGroup|QFile::ReadOther);
848 bool AttachmentURLHandler::handleContextMenuRequest( const KUrl & url, const QPoint & p, ViewerPrivate * w ) const
895 bool ShowAuditLogURLHandler::handleContextMenuRequest( const KUrl & url, const QPoint &, ViewerPrivate * w ) const {
923 if ( url.protocol() == QLatin1String( "data" ) && url.path().startsWith( QLatin1String("image") ) )
926 const QString imagePath = KStandardDirs::locate( "data", QLatin1String("libmessageviewer/pics/") );
951 if ( KMessageBox::warningYesNo( 0, i18nc( "@info", "Do you really want to execute <filename>%1</filename>?",
952 url.pathOrUrl() ), QString(), KGuiItem(i18n("Execute")), KStandardGuiItem::cancel() ) != KMessageBox::Yes)
void setShowSignatureDetails(bool showDetails=true)
Show signature details.
bool foundSMIMEData(const QString &aUrl, QString &displayName, QString &libName, QString &keyId)
Definition: urlhandlermanager.cpp:591
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString statusBarMessage(const KUrl &url, ViewerPrivate *w=0) const
Definition: urlhandlermanager.cpp:415
an implementation of the BodyPart interface using KMime::Content's
Definition: partnodebodypart.h:55
void setMimeData(QMimeData *data)
Qt::DropAction start(QFlags< Qt::DropAction > request)
void registerHandler(const URLHandler *handler)
Definition: urlhandlermanager.cpp:348
void goResourceOnline()
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
bool handleShiftClick(const KUrl &url, ViewerPrivate *window=0) const
Definition: urlhandlermanager.cpp:378
void setPixmap(const QPixmap &pixmap)
bool startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid)
void scrollToAttachment(KMime::Content *node)
void setDecryptMessageOverwrite(bool overwrite=true)
Enforce message decryption.
void setHtmlLoadExtOverride(bool override)
Override default load external references setting.
bool htmlLoadExtOverride() const
Get the load external references override setting.
~URLHandlerManager()
Definition: urlhandlermanager.cpp:343
KMime::Content * nodeFromUrl(const KUrl &url)
Returns message part from given URL or null if invalid.
bool MESSAGEVIEWER_EXPORT saveContents(QWidget *parent, const QList< KMime::Content * > &contents, KUrl ¤tFolder)
Definition: util.cpp:190
int size() const
bool isNull() const
void clear()
Private class for the Viewer, the main widget in the messageviewer library.
Definition: viewer_p.h:180
QString number(int n, int base)
Definition: stl_util.h:38
QClipboard * clipboard()
void scrollToAnchor(const QString &anchor)
Definition: mailwebview_textbrowser.cpp:168
int toInt(bool *ok, int base) const
bool isEmpty() const
void goOnline()
An interface to body part reader link handlers.
Definition: bodyparturlhandler.h:71
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void setShowRawToltecMail(bool showRawToltecMail)
Definition: viewer_p.h:423
Singleton to manage the list of URLHandlers.
Definition: urlhandlermanager.h:59
MailWebView * htmlPart() const
Access to the MailWebView used for the viewer.
Definition: viewer_p.h:213
WId winId() const
bool handleContextMenuRequest(const KUrl &url, const QPoint &p, ViewerPrivate *w=0) const
Definition: urlhandlermanager.cpp:406
QString fromPercentEncoding(const QByteArray &input)
const QTextCodec * overrideCodec() const
Get codec corresponding to the currently selected override character encoding.
KUrl tempFileUrlFromNode(const KMime::Content *node)
Returns the temporary file path and name where this node was saved, or an empty url if it wasn't save...
Definition: nodehelper.cpp:259
void setDisplayFormatMessageOverwrite(Viewer::DisplayFormatMessage format)
Override default html mail setting.
QString toLower() const
void slotLevelQuote(int l)
void showOpenAttachmentFolderWidget(const KUrl &url)
Definition: viewer.cpp:709
QString writeNodeToTempFile(KMime::Content *node)
Writes the given message part to a temporary file and returns the name of this file or QString() if w...
Definition: nodehelper.cpp:218
static KMime::Content * partNodeFromXKMailUrl(const KUrl &url, ViewerPrivate *w, QString *path)
Definition: urlhandlermanager.cpp:255
void setShowAttachmentQuicklist(bool showAttachmentQuicklist=true)
QString mid(int position, int n) const
void showAttachmentPopup(KMime::Content *node, const QString &name, const QPoint &p)
void setShowFullToAddressList(bool showFullToAddressList=true)
Show or hide the full list of "To" addresses.
void update(MessageViewer::Viewer::UpdateMode updateMode=Viewer::Delayed)
Re-parse the current message.
bool handleDrag(const KUrl &url, ViewerPrivate *window=0) const
Definition: urlhandlermanager.cpp:397
int length() const
static QString iconName(KMime::Content *node, int size=KIconLoader::Desktop)
Definition: nodehelper.cpp:471
void setShowFullCcAddressList(bool showFullCcAddressList=true)
Show or hide the full list of "To" addresses.
void openAttachment(KMime::Content *node, const QString &fileName)
Open the attachment pointed to the node.
void setText(const QString &text, Mode mode)
Definition: viewer.h:133
Definition: viewer.h:111
bool isNodeDisplayedEmbedded(KMime::Content *node) const
Definition: nodehelper.cpp:633
bool handleClick(const KUrl &url, ViewerPrivate *w=0) const
Definition: urlhandlermanager.cpp:370
bool MESSAGEVIEWER_EXPORT handleUrlWithQDesktopServices(const KUrl &url)
Delegates opening a URL to the QDesktopServices mechanisms for that on Windows and MacOSX...
Definition: util.cpp:142
static QString fileName(const KMime::Content *node)
Returns a usable filename for a node, that can be the filename from the content disposition header...
Definition: nodehelper.cpp:588
void unregisterHandler(const URLHandler *handler)
Definition: urlhandlermanager.cpp:355
bool willHandleDrag(const KUrl &url, ViewerPrivate *window=0) const
Definition: urlhandlermanager.cpp:387
singleShot
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.