Search for usage in LXR

khtmlImLoad::ImageLoaderProvider Class Referenceabstract

#include <imageloaderprovider.h>

Inherited by khtmlImLoad::GIFLoaderProvider, khtmlImLoad::JPEGLoaderProvider, khtmlImLoad::PNGLoaderProvider, and khtmlImLoad::QImageIOLoaderProvider.

Public Types

enum  Type { Efficient, Foreign }

Public Member Functions

virtual ImageLoaderloaderFor (const QByteArray &prefix)=0
virtual Type type ()=0

Detailed Description

To register new image formats, new copies of ImageLoaderProvider's must be created and registered with ImageManager::loaderDatabase().

Definition at line 38 of file imageloaderprovider.h.

Member Function Documentation

◆ loaderFor()

virtual ImageLoader* khtmlImLoad::ImageLoaderProvider::loaderFor ( const QByteArray prefix)
pure virtual

Creates a loader for an image format that can decode a file starting with given data, or 0 if that's not possible.

◆ type()

virtual Type khtmlImLoad::ImageLoaderProvider::type ( )
pure virtual

Returns the type of the loader.

An "efficient" loader does not duplicate any data, and will therefore be preferred; while a "foreign" loader has to duplicate a large amount of image data to fit in w/the original framework, and should therefore only be used when a better loader is not available

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:57:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.