KPackage

kpackagetool.h
1/*
2 SPDX-FileCopyrightText: 2008 Aaron Seigo <aseigo@kde.org>
3 SPDX-FileCopyrightText: 2012 Sebastian Kügler <sebas@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef PACKAGETOOL_H
9#define PACKAGETOOL_H
10
11#include "package.h"
12#include "packagejob.h"
13#include <QCoreApplication>
14
16class KJob;
17
18namespace KPackage
19{
20class PackageToolPrivate;
21
22class PackageTool : public QCoreApplication
23{
25
26public:
27 PackageTool(int &argc, char **argv, QCommandLineParser *parser);
28 ~PackageTool() override;
29
30 void listPackages(const QString &kpackageType, const QString &path = QString());
31 void showPackageInfo(const QString &pluginName);
32 void showAppstreamInfo(const QString &pluginName);
33 QString resolvePackageRootWithOptions();
34
35private Q_SLOTS:
36 void runMain();
37 void packageInstalled(KPackage::PackageJob *job);
38 void packageUninstalled(KPackage::PackageJob *job);
39
40private:
41 PackageToolPrivate *d;
42};
43
44}
45
46#endif
KJob subclass that allows async install/update/uninstall operations for packages.
Definition packagejob.h:27
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:48 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.