don't discard iframe children.
[kdelibs.git] / khtml / misc / loader_client.h
blob3e6466531d541cf8da7aa4bcca515672d74852ad
1 #ifndef LOADER_CLIENT_H
2 #define LOADER_CLIENT_H
4 #include <QtGui/QPixmap>
5 #include "dom/dom_string.h"
7 namespace khtml {
8 class CachedObject;
9 class CachedImage;
11 /**
12 * @internal
14 * a client who wants to load stylesheets, images or scripts from the web has to
15 * inherit from this class and overload one of the 3 functions
18 class CachedObjectClient
20 public:
21 virtual ~CachedObjectClient();
22 // clipped pixmap (if it is not yet completely loaded,
23 // size of the complete (finished loading) pixmap
24 // rectangle of the part that has been loaded very recently
25 // pointer to us
26 // return whether we need manual update
27 // don't ref() or deref() elements in setPixmap!!
28 virtual void updatePixmap(const QRect&, CachedImage *);
29 virtual void setStyleSheet(const DOM::DOMString &/*url*/, const DOM::DOMString &/*sheet*/, const DOM::DOMString &/*charset*/, const DOM::DOMString &/*mimetype*/);
30 virtual void notifyFinished(CachedObject * /*finishedObj*/);
31 virtual void error(int err, const QString &text);
35 #endif