• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. KHtml
  • KDE Home
  • Contact Us

Quick Links

Skip menu "KHtml"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Dependencies
  • Related Pages

Class Picker

About

KHTML APIs

Maintainer
Martin Tobias Holmedahl Sandsmark
Supported platforms
FreeBSD, Linux, MacOSX, Windows
Community
IRC: #kde-devel on Freenode
Mailing list: kde-frameworks-devel
Use with CMake
find_package(KF5KHtml)
target_link_libraries(yourapp KF5::KHtml)
Use with QMake
QT += KHtml 
Clone
git clone git://anongit.kde.org/khtml.git
Browse source
KHtml on cgit.kde.org

KHtml

  • frameworks
  • frameworks
  • khtml
  • src
  • imload
imageloaderprovider.h
1 /*
2  Large image displaying library.
3 
4  Copyright (C) 2004 Maks Orlovich ([email protected])
5 
6  Permission is hereby granted, free of charge, to any person obtaining a copy
7  of this software and associated documentation files (the "Software"), to deal
8  in the Software without restriction, including without limitation the rights
9  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  copies of the Software, and to permit persons to whom the Software is
11  furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 
23 */
24 
25 #ifndef IMAGE_LOADER_PROVIDER_H
26 #define IMAGE_LOADER_PROVIDER_H
27 
28 #include <QByteArray>
29 
30 namespace khtmlImLoad
31 {
32 
33 class ImageLoader;
38 class ImageLoaderProvider
39 {
40 public:
41  virtual ~ImageLoaderProvider() {}
42  enum Type {
43  Efficient,
44  Foreign
45  };
46 
52  virtual Type type() = 0;
53 
57  virtual ImageLoader *loaderFor(const QByteArray &prefix) = 0;
58 };
59 
60 }
61 
62 #endif
QByteArray
khtmlImLoad::ImageLoader
A base class for decoders.
Definition: imageloader.h:40
khtmlImLoad
Definition: html_canvasimpl.h:59
khtmlImLoad::ImageLoaderProvider
To register new image formats, new copies of ImageLoaderProvider&#39;s must be created and registered wit...
Definition: imageloaderprovider.h:38
khtmlImLoad::ImageLoaderProvider::type
virtual Type type()=0
Returns the type of the loader.
khtmlImLoad::ImageLoaderProvider::loaderFor
virtual ImageLoader * loaderFor(const QByteArray &prefix)=0
Creates a loader for an image format that can decode a file starting with given data, or 0 if that&#39;s not possible.
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 5 2019 03:45:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

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