khtml_pagecache.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __khtml_pagecache_h__
00021 #define __khtml_pagecache_h__
00022
00023 #include <qobject.h>
00024
00025 class KHTMLPageCachePrivate;
00026
00038 class KHTMLPageCache : public QObject
00039 {
00040 Q_OBJECT
00041 public:
00047 static KHTMLPageCache *self();
00048 ~KHTMLPageCache();
00049
00055 long createCacheEntry();
00056
00060 void addData(long id, const QByteArray &data);
00061
00066 void endData(long id);
00067
00071 void cancelEntry(long id);
00072
00077 bool isValid(long id);
00078
00083 void fetchData(long id, QObject *recvObj, const char *recvSlot);
00084
00088 void cancelFetch(QObject *recvObj);
00089
00093 void saveData(long id, QDataStream *str);
00094
00095 private slots:
00096 void sendData();
00097
00098 private:
00099 KHTMLPageCache();
00100
00101 static KHTMLPageCache *_self;
00102
00103 KHTMLPageCachePrivate *d;
00104 };
00105
00106 class KHTMLPageCacheDelivery : public QObject
00107 {
00108 friend class KHTMLPageCache;
00109 Q_OBJECT
00110 public:
00111 KHTMLPageCacheDelivery(int _fd)
00112 : fd(_fd) { }
00113 ~KHTMLPageCacheDelivery();
00114
00115 signals:
00116 void emitData(const QByteArray &data);
00117
00118 public:
00119 QObject *recvObj;
00120 int fd;
00121 };
00122
00123
00124 #endif
This file is part of the documentation for kdelibs Version 3.1.5.