1 /* This file is part of the KDE project
3 Copyright (C) 2008 Javier Goday <jgoday @ gmail.com>
4 Idea by Copyright (C) 2008 Lukas Appelhans <l.appelhans@gmx.de>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
12 #ifndef KGETKJOBADAPTER_H
13 #define KGETKJOBADAPTER_H
15 #include "transferhandler.h"
20 * Allows kget to register all transfers in kuiserver as kjobs
22 class KGetKJobAdapter
: public KJob
25 KGetKJobAdapter(QObject
*parent
, TransferHandler
*transfer
);
30 qulonglong
processedAmount(Unit unit
) const;
31 qulonglong
totalAmount(Unit unit
) const;
32 unsigned long percent() const;
35 void slotUpdateDescription();
38 TransferHandler
*m_transferHandler
;