KMail::Interface::BodyPartURLHandler Class Reference
An interface to body part reader link handlers. More...
#include <bodyparturlhandler.h>
Public Member Functions
- virtual bool handleClick (BodyPart *part, const QString &path, Callback &c) const =0
- virtual bool handleContextMenuRequest (BodyPart *part, const QString &path, const QPoint &p) const =0
- virtual QString statusBarMessage (BodyPart *part, const QString &path) const =0
Detailed Description
An interface to body part reader link handlers.
- Author:
- Marc Mutz <mutz@kde.org>
- See also:
- URLHandler interface, designed to make bodypart-dependent link operations possible without exposing KMail-internal classes.
You can create a link whose handling is passed to this handler by using BodyPart::makeLink( const QString & path ). path is what * is passed back to the methods of this interface.
Note that the BodyPart interface does not provide a means of learning the content type of the body part passed. This is intentional. It is expected that either separate BodyPartURLHandlers are created for these purposes or else the information encoded into the path parameter by the BodyPartFormatter.
Member Function Documentation
|
Called when LMB-clicking on a link in the reader. Should start processing equivalent to "opening" the link.
|
|
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.
|
|
Called when hovering over a link.
|
The documentation for this class was generated from the following file:
- bodyparturlhandler.h