Disable clipboardsharing in view only mode.
[kdenetwork.git] / kget / core / download.h
blob63145154b7d4de1f518bcf435a3dc18733ed10e0
1 /* This file is part of the KDE project
3 Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de>
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 */
11 #ifndef DOWNLOAD_H
12 #define DOWNLOAD_H
14 #include "kget_export.h"
16 #include <QObject>
17 #include <QByteArray>
19 #include <KUrl>
21 #include <kio/job.h>
23 class KGET_EXPORT Download : public QObject
25 Q_OBJECT
26 public:
27 Download(const KUrl &srcUrl, const KUrl &destUrl);
28 ~Download();
30 Q_SIGNALS:
31 void finishedSuccessfully(KUrl dest, QByteArray data);
32 void finishedWithError();
34 private slots:
35 void slotResult(KJob * job);
36 void slotData(KIO::Job *job, const QByteArray& data);
38 private:
39 KIO::TransferJob *m_copyJob;
40 KUrl m_srcUrl;
41 KUrl m_destUrl;
42 KUrl m_destFile;
43 QByteArray m_data;
46 #endif