1 #ifndef LOADER_CLIENT_H
2 #define LOADER_CLIENT_H
4 #include <QtGui/QPixmap>
5 #include "dom/dom_string.h"
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
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
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
);