• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messageviewer

  • MessageViewer
  • URLHandler
Public Member Functions | List of all members
MessageViewer::URLHandler Class Referenceabstract

#include <urlhandler.h>

Inherited by MessageViewer::URLHandlerManager::BodyPartURLHandlerManager.

Public Member Functions

virtual ~URLHandler ()
 
virtual bool handleClick (const KUrl &url, ViewerPrivate *w) const =0
 
virtual bool handleContextMenuRequest (const KUrl &url, const QPoint &p, ViewerPrivate *w) const =0
 
virtual bool handleDrag (const KUrl &url, ViewerPrivate *window) const
 
virtual bool handleShiftClick (const KUrl &url, ViewerPrivate *window) const
 
virtual QString statusBarMessage (const KUrl &url, ViewerPrivate *w) const =0
 
virtual bool willHandleDrag (const KUrl &url, ViewerPrivate *window) const
 

Detailed Description

An interface to reader link handlers.

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

The KMReaderWin parameters are temporary until such time as the Memento-store is in place.

Definition at line 51 of file urlhandler.h.

Constructor & Destructor Documentation

virtual MessageViewer::URLHandler::~URLHandler ( )
inlinevirtual

Definition at line 53 of file urlhandler.h.

Member Function Documentation

virtual bool MessageViewer::URLHandler::handleClick ( const KUrl &  url,
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.
virtual bool MessageViewer::URLHandler::handleContextMenuRequest ( const KUrl &  url,
const QPoint &  p,
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.
virtual bool MessageViewer::URLHandler::handleDrag ( const KUrl &  url,
ViewerPrivate *  window 
) const
inlinevirtual

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 106 of file urlhandler.h.

virtual bool MessageViewer::URLHandler::handleShiftClick ( const KUrl &  url,
ViewerPrivate *  window 
) const
inlinevirtual

Called when shift-clicking the link in the reader.

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

Definition at line 86 of file urlhandler.h.

virtual QString MessageViewer::URLHandler::statusBarMessage ( const KUrl &  url,
ViewerPrivate *  w 
) const
pure virtual

Called when hovering over a link.

Returns
a string to be shown in the status bar while hoverin over this link.
virtual bool MessageViewer::URLHandler::willHandleDrag ( const KUrl &  url,
ViewerPrivate *  window 
) const
inlinevirtual
Returns
should return true if this URLHandler will handle the drag

Definition at line 95 of file urlhandler.h.


The documentation for this class was generated from the following file:
  • urlhandler.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal