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 238 of file urlhandlermanager.cpp.

Member Function Documentation

◆ handleClick()

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

Definition at line 280 of file urlhandlermanager.cpp.

◆ handleContextMenuRequest()

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

Definition at line 325 of file urlhandlermanager.cpp.

◆ handleDrag()

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

Definition at line 314 of file urlhandlermanager.cpp.

◆ handleShiftClick()

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

Definition at line 291 of file urlhandlermanager.cpp.

◆ instance()

URLHandlerManager * URLHandlerManager::instance ( )
static

Definition at line 243 of file urlhandlermanager.cpp.

◆ registerHandler() [1/2]

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

Definition at line 266 of file urlhandlermanager.cpp.

◆ registerHandler() [2/2]

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

Definition at line 251 of file urlhandlermanager.cpp.

◆ statusBarMessage()

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

Definition at line 336 of file urlhandlermanager.cpp.

◆ unregisterHandler() [1/2]

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

Definition at line 273 of file urlhandlermanager.cpp.

◆ unregisterHandler() [2/2]

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

Definition at line 260 of file urlhandlermanager.cpp.

◆ willHandleDrag()

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

Definition at line 302 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 Fri Jul 12 2024 11:49:56 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.