Disable clipboardsharing in view only mode.
[kdenetwork.git] / kget / core / kgetglobaljob.h
blob67b08e4c3c06af3de13b253866633f7a9e1c6f40
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.
9 */
10 #ifndef KGETGLOBALJOB_H
11 #define KGETGLOBALJOB_H
13 #include <kio/job.h>
14 #include <kio/filejob.h>
16 #include <QList>
18 #define DEFAULT_UPDATE_TIME 5000
20 class QTimer;
22 class KGetGlobalJob : public KJob
24 Q_OBJECT
25 public:
26 KGetGlobalJob(QObject *parent=0);
27 ~KGetGlobalJob();
29 void registerJob(KJob *);
30 void unregisterJob(KJob *);
32 void start() {};
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;
39 private slots:
40 void update();
42 private:
43 QList <KJob *> m_jobs;
45 QTimer *m_timer;
48 #endif