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

kopete/libkopete

  • Kopete
  • MimeTypeHandler
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Kopete::MimeTypeHandler Class Reference

#include <kopetemimetypehandler.h>

Inheritance diagram for Kopete::MimeTypeHandler:
Inheritance graph
[legend]

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

Kopete::MimeTypeHandler::MimeTypeHandler ( bool  canAcceptRemoteFiles = false)
protected

Definition at line 51 of file kopetemimetypehandler.cpp.

Kopete::MimeTypeHandler::~MimeTypeHandler ( )
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.

bool Kopete::MimeTypeHandler::dispatchURL ( const KUrl &  url)
static

Finds a MimeTypeHandler for a given URL, and tells that handler to handle it.

Parameters
urlthe url to dispatch
Returns
true if a handler was registered for the mime type, false otherwise

Definition at line 112 of file kopetemimetypehandler.cpp.

void Kopete::MimeTypeHandler::handleURL ( const KUrl &  url) const
virtual
Deprecated:

Reimplemented in Kopete::EmoticonMimeTypeHandler.

Definition at line 187 of file kopetemimetypehandler.cpp.

void Kopete::MimeTypeHandler::handleURL ( const QString &  mimeType,
const KUrl &  url 
) const
virtual

Handles the URL url, which has the mime type mimeType.

Parameters
mimeTypeThe mime type of the URL
urlThe 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.

bool Kopete::MimeTypeHandler::registerAsMimeHandler ( const QString &  mimeType)
protected

Register this object as the handler of type mimeType.

Parameters
mimeTypethe 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.

bool Kopete::MimeTypeHandler::registerAsProtocolHandler ( const QString &  protocol)
protected

Register this object as the handler of type protocol.

Parameters
protocolthe 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:
  • kopetemimetypehandler.h
  • kopetemimetypehandler.cpp
This file is part of the KDE documentation.
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.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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