2 Large image displaying library.
4 Copyright (C) 2004 Maks Orlovich (maksim@kde.org)
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 namespace khtmlImLoad
{
38 The updater class helps manage timers, to permit update messages to be coalesced (so we don't
39 bug KHTML, or whatever use every 5 pico-seconds.
41 class Updater
: public QObject
48 The frames should call this function as they start having data to emit.
49 The updater will call back their notifyPerformUpdate() function when a sufficient
50 amount of time has passed.
52 void haveUpdates(Image
* frame
);
55 Called by image when it's destroyed, and hence should be purged
58 void destroyed(Image
* frame
);
64 bool updatesPending();
65 QVector
<Image
*> frames
[10];
72 // kate: indent-width 4; replace-tabs on; tab-width 4; space-indent on;