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 #include <qcstring.h>
00025 #include <qvaluelist.h>
00026 #include <qptrlist.h>
00027
00028 class KHTMLPageCachePrivate;
00029
00041 class KHTMLPageCache : public QObject
00042 {
00043 Q_OBJECT
00044 public:
00050 static KHTMLPageCache *self();
00051 ~KHTMLPageCache();
00052
00058 long createCacheEntry();
00059
00063 void addData(long id, const QByteArray &data);
00064
00069 void endData(long id);
00070
00074 void cancelEntry(long id);
00075
00080 bool isValid(long id);
00081
00086 void fetchData(long id, QObject *recvObj, const char *recvSlot);
00087
00091 void cancelFetch(QObject *recvObj);
00092
00096 void saveData(long id, QDataStream *str);
00097
00098 private slots:
00099 void sendData();
00100
00101 private:
00102 KHTMLPageCache();
00103
00104 static KHTMLPageCache *_self;
00105
00106 KHTMLPageCachePrivate *d;
00107 };
00108
00109 class KHTMLPageCacheDelivery : public QObject
00110 {
00111 friend class KHTMLPageCache;
00112 Q_OBJECT
00113 public:
00114 KHTMLPageCacheDelivery(int _fd)
00115 : fd(_fd) { }
00116 ~KHTMLPageCacheDelivery();
00117
00118 signals:
00119 void emitData(const QByteArray &data);
00120
00121 public:
00122 QObject *recvObj;
00123 int fd;
00124 };
00125
00126
00127 #endif
This file is part of the documentation for kdelibs Version 3.1.0.