kopete/libkopete
#include <kopetemimetypehandler.h>
Public Member Functions | |
virtual | ~MimeTypeHandler () |
bool | canAcceptRemoteFiles () const |
virtual KDE_DEPRECATED void | handleURL (const KUrl &url) const |
virtual void | handleURL (const QString &mimeType, const KUrl &url) const |
const QStringList | mimeTypes () const |
const QStringList | protocols () const |
Static Public Member Functions | |
static bool | dispatchURL (const KUrl &url) |
Protected Member Functions | |
MimeTypeHandler (bool canAcceptRemoteFiles=false) | |
bool | registerAsMimeHandler (const QString &mimeType) |
bool | registerAsProtocolHandler (const QString &protocol) |
Detailed Description
A handler for some set of mime-types A mime type handler is responsible for handling requests to open files of certain mime types presented to the main application.
Definition at line 36 of file kopetemimetypehandler.h.
Constructor & Destructor Documentation
|
protected |
Definition at line 51 of file kopetemimetypehandler.cpp.
|
virtual |
Definition at line 56 of file kopetemimetypehandler.cpp.
Member Function Documentation
bool Kopete::MimeTypeHandler::canAcceptRemoteFiles | ( | ) | const |
Returns true if this handler can accept remote files direcltly; If false, remote files are downloaded via KIO::NetAccess before being passed to handleURL.
Definition at line 107 of file kopetemimetypehandler.cpp.
|
static |
Finds a MimeTypeHandler for a given URL, and tells that handler to handle it.
- Parameters
-
url the url to dispatch
- Returns
- true if a handler was registered for the mime type, false otherwise
Definition at line 112 of file kopetemimetypehandler.cpp.
|
virtual |
Reimplemented in Kopete::EmoticonMimeTypeHandler.
Definition at line 187 of file kopetemimetypehandler.cpp.
|
virtual |
Handles the URL url
, which has the mime type mimeType
.
- Parameters
-
mimeType The mime type of the URL url The url to handle
Reimplemented in Kopete::EmoticonMimeTypeHandler.
Definition at line 181 of file kopetemimetypehandler.cpp.
const QStringList Kopete::MimeTypeHandler::mimeTypes | ( | ) | const |
Returns a list of mime types this object is registered to handle.
Definition at line 97 of file kopetemimetypehandler.cpp.
const QStringList Kopete::MimeTypeHandler::protocols | ( | ) | const |
Returns a list of protocols this object is registered to handle.
Definition at line 102 of file kopetemimetypehandler.cpp.
|
protected |
Register this object as the handler of type mimeType
.
- Parameters
-
mimeType the mime type to handle
- Returns
- true if registration succeeded, false if another handler is already set for this mime type.
Definition at line 67 of file kopetemimetypehandler.cpp.
|
protected |
Register this object as the handler of type protocol
.
- Parameters
-
protocol the protocol to handle
- Returns
- true if registration succeeded, false if another handler is already set for this protocol.
Definition at line 82 of file kopetemimetypehandler.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.