KNewStuff

kpackagejob.h
1 /*
2  SPDX-FileCopyrightText: 2020 Dan Leinir Turthra Jensen <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef KPACKAGEJOB_H
8 #define KPACKAGEJOB_H
9 
10 #include <KCoreAddons/KJob>
11 
12 namespace KNSCore {
13 
23 class KPackageJob : public KJob
24 {
25  Q_OBJECT
26 public:
35  static KPackageJob *install(const QString &sourcePackage, const QString &packageRoot, const QString &serviceType);
45  static KPackageJob *update(const QString &sourcePackage, const QString &packageRoot, const QString &serviceType);
54  static KPackageJob *uninstall(const QString &packageName, const QString &packageRoot, const QString &serviceType);
55 
56  virtual ~KPackageJob();
57 
62  Q_SLOT void start() override;
63 private:
64  explicit KPackageJob(QObject* parent = nullptr);
65  class Private;
66  Private* d;
67 };
68 
69 }
70 
71 #endif//KPACKAGEJOB_H
static KPackageJob * uninstall(const QString &packageName, const QString &packageRoot, const QString &serviceType)
Create a job for removing the given installed package.
Contains the core functionality for handling interaction with NewStuff providers. ...
static KPackageJob * update(const QString &sourcePackage, const QString &packageRoot, const QString &serviceType)
Create a job for updating the given package, or installing it if it is not already, the given package into the package root, and treat it as the given service type.
A job for performing basic actions on KPackage packages asynchronously.
Definition: kpackagejob.h:23
Q_OBJECTQ_OBJECT
Q_SLOTQ_SLOT
static KPackageJob * install(const QString &sourcePackage, const QString &packageRoot, const QString &serviceType)
Create a job for installing the given package into the package root, and treat it as the given servic...
Q_SLOT void start() override
Start the process asynchronously.
QObject * parent() const const
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.