• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
tdehtml_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 __tdehtml_pagecache_h__
21#define __tdehtml_pagecache_h__
22
23#include <tqobject.h>
24#include <tqcstring.h>
25#include <tqvaluelist.h>
26#include <tqptrlist.h>
27
28class TDEHTMLPageCachePrivate;
29
41class TDEHTMLPageCache : public TQObject
42{
43 TQ_OBJECT
44public:
50 static TDEHTMLPageCache *self();
51 ~TDEHTMLPageCache();
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
105private slots:
106 void sendData();
107
108private:
109 TDEHTMLPageCache();
110
111 static TDEHTMLPageCache *_self;
112
113 TDEHTMLPageCachePrivate *d;
114};
115
116class TDEHTMLPageCacheDelivery : public TQObject
117{
118 friend class TDEHTMLPageCache;
119TQ_OBJECT
120public:
121 TDEHTMLPageCacheDelivery(int _fd)
122 : fd(_fd) { }
123 ~TDEHTMLPageCacheDelivery();
124
125signals:
126 void emitData(const TQByteArray &data);
127
128public:
129 TQObject *recvObj;
130 int fd;
131};
132
133
134#endif
TDEHTMLPageCache
Singleton Object that handles a binary cache on top of the http cache management of tdeio.
Definition: tdehtml_pagecache.h:42
TDEHTMLPageCache::createCacheEntry
long createCacheEntry()
Create a new cache entry.
Definition: tdehtml_pagecache.cpp:143
TDEHTMLPageCache::isValid
bool isValid(long id)
Definition: tdehtml_pagecache.cpp:185
TDEHTMLPageCache::addData
void addData(long id, const TQByteArray &data)
Add data to the cache entry with id id.
Definition: tdehtml_pagecache.cpp:158
TDEHTMLPageCache::endData
void endData(long id)
Signal end of data for the cache entry with id id.
Definition: tdehtml_pagecache.cpp:166
TDEHTMLPageCache::saveData
void saveData(long id, TQDataStream *str)
Save the data of cache entry id to the datastream str.
Definition: tdehtml_pagecache.cpp:272
TDEHTMLPageCache::isComplete
bool isComplete(long id)
Definition: tdehtml_pagecache.cpp:191
TDEHTMLPageCache::self
static TDEHTMLPageCache * self()
static "constructor".
Definition: tdehtml_pagecache.cpp:121
TDEHTMLPageCache::fetchData
void fetchData(long id, TQObject *recvObj, const char *recvSlot)
Fetch data for cache entry id and send it to slot recvSlot in the object recvObj.
Definition: tdehtml_pagecache.cpp:200
TDEHTMLPageCache::cancelEntry
void cancelEntry(long id)
Cancel the entry.
Definition: tdehtml_pagecache.cpp:174
TDEHTMLPageCache::cancelFetch
void cancelFetch(TQObject *recvObj)
Cancel sending data to recvObj.
Definition: tdehtml_pagecache.cpp:218

tdehtml

Skip menu "tdehtml"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.9.4
This website is maintained by Timothy Pearson.