MessageViewer::URLHandlerManager

Search for usage in LXR

MessageViewer::URLHandlerManager Class Reference

#include <urlhandlermanager.h>

Public Member Functions

bool handleClick (const QUrl &url, ViewerPrivate *w=nullptr) const
 
bool handleContextMenuRequest (const QUrl &url, const QPoint &p, ViewerPrivate *w=nullptr) const
 
bool handleDrag (const QUrl &url, ViewerPrivate *window=nullptr) const
 
bool handleShiftClick (const QUrl &url, ViewerPrivate *window=nullptr) const
 
void registerHandler (const Interface::BodyPartURLHandler *handler, const QString &mimeType)
 
void registerHandler (const MimeTreeParser::URLHandler *handler)
 
QString statusBarMessage (const QUrl &url, ViewerPrivate *w=nullptr) const
 
void unregisterHandler (const Interface::BodyPartURLHandler *handler)
 
void unregisterHandler (const MimeTreeParser::URLHandler *handler)
 
bool willHandleDrag (const QUrl &url, ViewerPrivate *window=nullptr) const
 

Static Public Member Functions

static URLHandlerManagerinstance ()
 

Detailed Description

Singleton to manage the list of URLHandlers.

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

Definition at line 39 of file urlhandlermanager.h.

Constructor & Destructor Documentation

◆ ~URLHandlerManager()

URLHandlerManager::~URLHandlerManager ( )

Definition at line 239 of file urlhandlermanager.cpp.

Member Function Documentation

◆ handleClick()

bool URLHandlerManager::handleClick ( const QUrl & url,
ViewerPrivate * w = nullptr ) const
nodiscard

Definition at line 281 of file urlhandlermanager.cpp.

◆ handleContextMenuRequest()

bool URLHandlerManager::handleContextMenuRequest ( const QUrl & url,
const QPoint & p,
ViewerPrivate * w = nullptr ) const
nodiscard

Definition at line 326 of file urlhandlermanager.cpp.

◆ handleDrag()

bool URLHandlerManager::handleDrag ( const QUrl & url,
ViewerPrivate * window = nullptr ) const
nodiscard

Definition at line 315 of file urlhandlermanager.cpp.

◆ handleShiftClick()

bool URLHandlerManager::handleShiftClick ( const QUrl & url,
ViewerPrivate * window = nullptr ) const
nodiscard

Definition at line 292 of file urlhandlermanager.cpp.

◆ instance()

URLHandlerManager * URLHandlerManager::instance ( )
static

Definition at line 244 of file urlhandlermanager.cpp.

◆ registerHandler() [1/2]

void URLHandlerManager::registerHandler ( const Interface::BodyPartURLHandler * handler,
const QString & mimeType )

Definition at line 267 of file urlhandlermanager.cpp.

◆ registerHandler() [2/2]

void URLHandlerManager::registerHandler ( const MimeTreeParser::URLHandler * handler)

Definition at line 252 of file urlhandlermanager.cpp.

◆ statusBarMessage()

QString URLHandlerManager::statusBarMessage ( const QUrl & url,
ViewerPrivate * w = nullptr ) const
nodiscard

Definition at line 337 of file urlhandlermanager.cpp.

◆ unregisterHandler() [1/2]

void URLHandlerManager::unregisterHandler ( const Interface::BodyPartURLHandler * handler)

Definition at line 274 of file urlhandlermanager.cpp.

◆ unregisterHandler() [2/2]

void URLHandlerManager::unregisterHandler ( const MimeTreeParser::URLHandler * handler)

Definition at line 261 of file urlhandlermanager.cpp.

◆ willHandleDrag()

bool URLHandlerManager::willHandleDrag ( const QUrl & url,
ViewerPrivate * window = nullptr ) const
nodiscard

Definition at line 303 of file urlhandlermanager.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.