don't discard iframe children.
[kdelibs.git] / khtml / misc / loader_jpeg.h
blob94d112711ad73694e40e4d79743e96f30ce0b9a0
1 /*
2 This file is part of the KDE libraries
4 Copyright (C) 2000 Dirk Mueller (mueller@kde.org)
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:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
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.
23 This is a helper for progressive loading of JPEG's.
26 #ifndef _khtml_loader_jpeg_h
27 #define _khtml_loader_jpeg_h
29 #if 0 // TODO wait
31 #include <qasyncimageio.h>
33 namespace khtml
35 /**
36 * @internal
38 * An incremental loader factory for JPEG's.
40 class KJPEGFormatType : public QImageFormatType
42 public:
43 QImageFormat* decoderFor(const uchar* buffer, int length);
44 const char* formatName() const;
49 #endif
51 // -----------------------------------------------------------------------------
53 #endif // _khtml_loader_jpeg_h