MimeTreeParser::URLHandler

Search for usage in LXR

MimeTreeParser::URLHandler Class Referenceabstract

#include <urlhandler.h>

Public Member Functions

virtual bool handleClick (const QUrl &url, MessageViewer::ViewerPrivate *w) const =0
 
virtual bool handleContextMenuRequest (const QUrl &url, const QPoint &p, MessageViewer::ViewerPrivate *w) const =0
 
virtual bool handleDrag (const QUrl &url, MessageViewer::ViewerPrivate *window) const
 
virtual bool handleShiftClick (const QUrl &url, MessageViewer::ViewerPrivate *window) const
 
virtual QString statusBarMessage (const QUrl &url, MessageViewer::ViewerPrivate *w) const =0
 
virtual bool willHandleDrag (const QUrl &url, MessageViewer::ViewerPrivate *window) const
 

Detailed Description

An interface to reader link handlers.

Author
Marc Mutz mutz@.nosp@m.kde..nosp@m.org

Definition at line 29 of file urlhandler.h.

Member Function Documentation

◆ handleClick()

virtual bool MimeTreeParser::URLHandler::handleClick ( const QUrl & url,
MessageViewer::ViewerPrivate * w ) const
pure virtual

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.

◆ handleContextMenuRequest()

virtual bool MimeTreeParser::URLHandler::handleContextMenuRequest ( const QUrl & url,
const QPoint & p,
MessageViewer::ViewerPrivate * w ) const
pure virtual

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.

◆ handleDrag()

virtual bool MimeTreeParser::URLHandler::handleDrag ( const QUrl & url,
MessageViewer::ViewerPrivate * window ) const
inlinenodiscardvirtual

Called when starting a drag with the given URL.

If the drag is handled, you should create a drag object.

Returns
true if the click was handled by this URLHandler, false otherwise

Definition at line 87 of file urlhandler.h.

◆ handleShiftClick()

virtual bool MimeTreeParser::URLHandler::handleShiftClick ( const QUrl & url,
MessageViewer::ViewerPrivate * window ) const
inlinenodiscardvirtual

Called when shift-clicking the link in the reader.

Returns
true if the click was handled by this URLHandler, false otherwise

Definition at line 65 of file urlhandler.h.

◆ statusBarMessage()

virtual QString MimeTreeParser::URLHandler::statusBarMessage ( const QUrl & url,
MessageViewer::ViewerPrivate * w ) const
nodiscardpure virtual

Called when hovering over a link.

Returns
a string to be shown in the status bar while hovering over this link.

◆ willHandleDrag()

virtual bool MimeTreeParser::URLHandler::willHandleDrag ( const QUrl & url,
MessageViewer::ViewerPrivate * window ) const
inlinenodiscardvirtual
Returns
should return true if this URLHandler will handle the drag

Definition at line 75 of file urlhandler.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.