1 /* This file is part of the KDE project
3 Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU 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.
10 #ifndef KGETGLOBALJOB_H
11 #define KGETGLOBALJOB_H
14 #include <kio/filejob.h>
18 #define DEFAULT_UPDATE_TIME 5000
22 class KGetGlobalJob
: public KJob
26 KGetGlobalJob(QObject
*parent
=0);
29 void registerJob(KJob
*);
30 void unregisterJob(KJob
*);
34 // reimplement this functions from KJob to query all the child jobs
35 qulonglong
processedAmount(Unit unit
) const;
36 qulonglong
totalAmount(Unit unit
) const;
37 unsigned long percent() const;
43 QList
<KJob
*> m_jobs
;