7#ifndef KPACKAGE_LOADER_H
8#define KPACKAGE_LOADER_H
10#include <kpackage/package.h>
12#include <kpackage/package_export.h>
16class PackageLoaderPrivate;
54 QList<KPluginMetaData>
listPackages(
const QString &packageFormat,
const QString &packageRoot = QString());
69 const QString &packageRoot = QString(),
70 std::function<
bool(
const KPluginMetaData &)> filter = std::function<
bool(
const KPluginMetaData &)>());
92#if KPACKAGE_BUILD_DEPRECATED_SINCE(5, 86)
100 KPACKAGE_DEPRECATED_VERSION(5, 86,
"deprecated for lack of usage. Use default package loader instead")
110#if KPACKAGE_BUILD_DEPRECATED_SINCE(5, 86)
124 KPACKAGE_DEPRECATED_VERSION(5, 86,
"deprecated for lack of usage. Use default package loading instead")
125 virtual
Package internalLoadPackage(const QString &packageFormat);
133 PackageLoaderPrivate *
const d;
This is an abstract base class which defines an interface to which the package loading logic can comm...
Definition packageloader.h:31
QList< KPluginMetaData > findPackages(const QString &packageFormat, const QString &packageRoot=QString(), std::function< bool(const KPluginMetaData &)> filter=std::function< bool(const KPluginMetaData &)>())
List package of a certain type that match a certain filter function.
Package loadPackage(const QString &packageFormat, const QString &packagePath=QString())
Load a Package plugin.
static PackageLoader * self()
Return the active plugin loader.
void addKnownPackageStructure(const QString &packageFormat, KPackage::PackageStructure *structure)
Adds a new known package structure that can be used by the functions to load packages such as loadPac...
KPackage::PackageStructure * loadPackageStructure(const QString &packageFormat)
Loads a PackageStructure for a given format.
QList< KPluginMetaData > listPackages(const QString &packageFormat, const QString &packageRoot=QString())
List all available packages of a certain type.
This class is used to define the filesystem structure of a package type.
Definition packagestructure.h:42
object representing an installed package
Definition package.h:67