diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 15:57:34 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 15:57:34 -0600 |
commit | 7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch) | |
tree | c76702a7f6310fbe9d437e347535422e836e94e9 /tdehtml/misc/loader_client.h | |
parent | a2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff) | |
parent | 27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff) | |
download | tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tdehtml/misc/loader_client.h')
-rw-r--r-- | tdehtml/misc/loader_client.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tdehtml/misc/loader_client.h b/tdehtml/misc/loader_client.h new file mode 100644 index 000000000..d61a52b51 --- /dev/null +++ b/tdehtml/misc/loader_client.h @@ -0,0 +1,35 @@ +#ifndef LOADER_CLIENT_H +#define LOADER_CLIENT_H + +#include <tqpixmap.h> +#include "dom/dom_string.h" + +namespace tdehtml { + class CachedObject; + class CachedImage; + + /** + * @internal + * + * a client who wants to load stylesheets, images or scripts from the web has to + * inherit from this class and overload one of the 3 functions + * + */ + class CachedObjectClient + { + public: + virtual ~CachedObjectClient(); + // clipped pixmap (if it is not yet completely loaded, + // size of the complete (finished loading) pixmap + // rectangle of the part that has been loaded very recently + // pointer to us + // return whether we need manual update + // don't ref() or deref() elements in setPixmap!! + virtual void setPixmap(const TQPixmap &, const TQRect&, CachedImage *); + virtual void setStyleSheet(const DOM::DOMString &/*url*/, const DOM::DOMString &/*sheet*/, const DOM::DOMString &/*charset*/); + virtual void notifyFinished(CachedObject * /*finishedObj*/); + virtual void error(int err, const TQString &text); + }; +} + +#endif |