messagelib/messageviewer/src
#include <urlhandlermanager_p.h>

Public Member Functions | |
BodyPartURLHandlerManager () | |
~BodyPartURLHandlerManager () override | |
Q_REQUIRED_RESULT bool | handleClick (const QUrl &, ViewerPrivate *) const override |
Q_REQUIRED_RESULT bool | handleContextMenuRequest (const QUrl &, const QPoint &, ViewerPrivate *) const override |
void | registerHandler (const Interface::BodyPartURLHandler *handler, const QString &mimeType) |
Q_REQUIRED_RESULT QString | statusBarMessage (const QUrl &, ViewerPrivate *) const override |
void | unregisterHandler (const Interface::BodyPartURLHandler *handler) |
![]() | |
virtual | ~URLHandler () |
virtual bool | handleDrag (const QUrl &url, MessageViewer::ViewerPrivate *window) const |
virtual bool | handleShiftClick (const QUrl &url, MessageViewer::ViewerPrivate *window) const |
virtual bool | willHandleDrag (const QUrl &url, MessageViewer::ViewerPrivate *window) const |
Detailed Description
Definition at line 31 of file urlhandlermanager_p.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 34 of file urlhandlermanager_p.h.
|
override |
Definition at line 95 of file urlhandlermanager.cpp.
Member Function Documentation
|
overridevirtual |
Called when LMB-clicking on a link in the reader.
Should start processing equivalent to "opening" the link.
- Returns
- true if the click was handled by this URLHandler, false otherwise.
Implements MimeTreeParser::URLHandler.
Definition at line 179 of file urlhandlermanager.cpp.
|
overridevirtual |
Called when RMB-clicking on a link in the reader.
Should show a context menu at the specified point with the specified widget as parent.
- Returns
- true if the right-click was handled by this URLHandler, false otherwise.
Implements MimeTreeParser::URLHandler.
Definition at line 201 of file urlhandlermanager.cpp.
void BodyPartURLHandlerManager::registerHandler | ( | const Interface::BodyPartURLHandler * | handler, |
const QString & | mimeType | ||
) |
Definition at line 104 of file urlhandlermanager.cpp.
|
overridevirtual |
Called when hovering over a link.
- Returns
- a string to be shown in the status bar while hovering over this link.
Implements MimeTreeParser::URLHandler.
Definition at line 222 of file urlhandlermanager.cpp.
void BodyPartURLHandlerManager::unregisterHandler | ( | const Interface::BodyPartURLHandler * | handler | ) |
Definition at line 119 of file urlhandlermanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2019 The KDE developers.
Generated on Tue Dec 10 2019 03:27:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.