MimeTreeParser::BodyPartFormatterFactory

Search for usage in LXR

MimeTreeParser::BodyPartFormatterFactory Class Reference

#include <bodypartformatterfactory.h>

Public Member Functions

QList< const Interface::BodyPartFormatter * > formattersForType (const QString &mimeType) const
 

Static Public Member Functions

static BodyPartFormatterFactoryinstance ()
 

Protected Member Functions

void insert (const QString &mimeType, const Interface::BodyPartFormatter *formatter, int priority)
 
virtual void loadPlugins ()
 

Detailed Description

The place to obtain BodyPartFormatter candidates for a given mime type.

Definition at line 27 of file bodypartformatterfactory.h.

Constructor & Destructor Documentation

◆ BodyPartFormatterFactory()

BodyPartFormatterFactory::BodyPartFormatterFactory ( )

Definition at line 79 of file bodypartformatterfactory.cpp.

Member Function Documentation

◆ formattersForType()

QList< const Interface::BodyPartFormatter * > BodyPartFormatterFactory::formattersForType ( const QString & mimeType) const
nodiscard

Returns all suitable formatters for the given mimetype.

The candidates are ordered by priority, with the catch-call formatter coming last.

Definition at line 97 of file bodypartformatterfactory.cpp.

◆ insert()

void BodyPartFormatterFactory::insert ( const QString & mimeType,
const Interface::BodyPartFormatter * formatter,
int priority )
protected

Definition at line 92 of file bodypartformatterfactory.cpp.

◆ instance()

BodyPartFormatterFactory * BodyPartFormatterFactory::instance ( )
static

Definition at line 86 of file bodypartformatterfactory.cpp.

◆ loadPlugins()

void BodyPartFormatterFactory::loadPlugins ( )
protectedvirtual

Definition at line 138 of file bodypartformatterfactory.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.