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

messagelib/messageviewer/src

  • MessageViewer
  • BodyPartURLHandlerManager
Public Member Functions | List of all members
MessageViewer::BodyPartURLHandlerManager Class Reference

#include <urlhandlermanager_p.h>

Inheritance diagram for MessageViewer::BodyPartURLHandlerManager:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from MimeTreeParser::URLHandler
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

MessageViewer::BodyPartURLHandlerManager::BodyPartURLHandlerManager ( )
inline

Definition at line 34 of file urlhandlermanager_p.h.

BodyPartURLHandlerManager::~BodyPartURLHandlerManager ( )
override

Definition at line 95 of file urlhandlermanager.cpp.

Member Function Documentation

bool BodyPartURLHandlerManager::handleClick ( const QUrl &  url,
ViewerPrivate *  w 
) const
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.

bool BodyPartURLHandlerManager::handleContextMenuRequest ( const QUrl &  url,
const QPoint &  p,
ViewerPrivate *  w 
) const
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.

QString BodyPartURLHandlerManager::statusBarMessage ( const QUrl &  url,
ViewerPrivate *  w 
) const
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:
  • urlhandlermanager_p.h
  • urlhandlermanager.cpp
This file is part of the KDE documentation.
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.

messagelib/messageviewer/src

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

pim API Reference

Skip menu "pim API Reference"
  • akonadi-calendar-tools
  •   konsolekalendar
  • akregator
  •   src
  • kalarmcal
  •   src
  •     lib
  • kdepim-runtime
  •   agents
  •   src
  • kleopatra
  •   src
  • kmailtransport
  • knotes
  • kontact
  • kontactinterface
  • kpimtextedit
  • ksmtp
  • ktnef
  • libkgapi
  • libkleo
  •   src
  •     src
  •     src

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