KNewStuff

downloadjob.h
1 /*
2  SPDX-FileCopyrightText: 2016 Dan Leinir Turthra Jensen <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef DOWNLOADJOB_H
8 #define DOWNLOADJOB_H
9 
10 #include "filecopyjob.h"
11 
12 namespace KNSCore
13 {
14 
15 class DownloadJob : public FileCopyJob
16 {
17  Q_OBJECT
18 public:
19  explicit DownloadJob(const QUrl& source, const QUrl& destination, int permissions=-1, JobFlags flags = DefaultFlags, QObject* parent = nullptr);
20  explicit DownloadJob(QObject* parent = nullptr);
21  ~DownloadJob() override;
22 
23  Q_SCRIPTABLE void start() override;
24 
25 protected Q_SLOTS:
26  void handleWorkerCompleted();
27  void handleWorkerError(const QString& error);
28 private:
29  class Private;
30  Private* d;
31 };
32 
33 }
34 
35 #endif//DOWNLOADJOB_H
Contains the core functionality for handling interaction with NewStuff providers. ...
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 22:43:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.