Disable clipboardsharing in view only mode.
[kdenetwork.git] / kget / core / kgetkjobadapter.h
blob6e4902bbf59c5f5c10efc968cb6d862f1bf338a8
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"
17 #include <kio/job.h>
19 /**
20 * Allows kget to register all transfers in kuiserver as kjobs
22 class KGetKJobAdapter : public KJob
24 public:
25 KGetKJobAdapter(QObject *parent, TransferHandler *transfer);
26 ~KGetKJobAdapter();
28 void start() {};
30 qulonglong processedAmount(Unit unit) const;
31 qulonglong totalAmount(Unit unit) const;
32 unsigned long percent() const;
34 public slots:
35 void slotUpdateDescription();
37 private:
38 TransferHandler *m_transferHandler;
40 #endif