Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
khtml
khtml
khtml
khtml_pagecache.h
1
/* This file is part of the KDE project
2
*
3
* Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
19
*/
20
#ifndef __khtml_pagecache_h__
21
#define __khtml_pagecache_h__
22
23
#include <tqobject.h>
24
#include <tqcstring.h>
25
#include <tqvaluelist.h>
26
#include <tqptrlist.h>
27
28
class
KHTMLPageCachePrivate;
29
41
class
KHTMLPageCache
:
public
TQObject
42
{
43
Q_OBJECT
44
public
:
50
static
KHTMLPageCache
*
self
();
51
~
KHTMLPageCache
();
52
58
long
createCacheEntry
();
59
63
void
addData
(
long
id
,
const
TQByteArray &data);
64
69
void
endData
(
long
id
);
70
74
void
cancelEntry
(
long
id
);
75
81
bool
isValid
(
long
id
);
82
87
bool
isComplete
(
long
id
);
88
93
void
fetchData
(
long
id
, TQObject *recvObj,
const
char
*recvSlot);
94
98
void
cancelFetch
(TQObject *recvObj);
99
103
void
saveData
(
long
id
, TQDataStream *str);
104
105
private
slots:
106
void
sendData();
107
108
private
:
109
KHTMLPageCache
();
110
111
static
KHTMLPageCache
*_self;
112
113
KHTMLPageCachePrivate *d;
114
};
115
116
class
KHTMLPageCacheDelivery :
public
TQObject
117
{
118
friend
class
KHTMLPageCache
;
119
Q_OBJECT
120
public
:
121
KHTMLPageCacheDelivery(
int
_fd)
122
: fd(_fd) { }
123
~KHTMLPageCacheDelivery();
124
125
signals:
126
void
emitData(
const
TQByteArray &data);
127
128
public
:
129
TQObject *recvObj;
130
int
fd;
131
};
132
133
134
#endif
khtml
Skip menu "khtml"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
khtml
Skip menu "khtml"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver