• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • core
download.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de>
4 
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 
11 #ifndef DOWNLOAD_H
12 #define DOWNLOAD_H
13 
14 #include "kget_export.h"
15 
16 #include <QObject>
17 #include <QByteArray>
18 
19 #include <KUrl>
20 
21 #include <kio/job.h>
22 
23 class KGET_EXPORT Download : public QObject
24 {
25  Q_OBJECT
26  public:
27  Download(const KUrl &srcUrl, const KUrl &destUrl);
28  ~Download();
29 
30  Q_SIGNALS:
31  void finishedSuccessfully(KUrl dest, QByteArray data);
32  void finishedWithError();
33 
34  private slots:
35  void slotResult(KJob * job);
36  void slotData(KIO::Job *job, const QByteArray& data);
37 
38  private:
39  KIO::TransferJob *m_copyJob;
40  KUrl m_srcUrl;
41  KUrl m_destUrl;
42  KUrl m_destFile;
43  QByteArray m_data;
44 };
45 
46 #endif
Download
Definition: download.h:23
QObject
kget_export.h
KGET_EXPORT
#define KGET_EXPORT
Definition: kget_export.h:24
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal