KPackage
packageloader.h
54 QList<KPluginMetaData> listPackages(const QString &packageFormat, const QString &packageRoot = QString());
60 QList<KPluginMetaData> listPackagesMetadata(const QString &packageFormat, const QString &packageRoot = QString());
63 * List all available packages of a certain type. This should be used in case the package structure modifies the metadata or you need to access the
72 QList<Package> listKPackages(const QString &packageFormat, const QString &packageRoot = QString());
88 std::function<bool(const KPluginMetaData &)> filter = std::function<bool(const KPluginMetaData &)>());
108 void addKnownPackageStructure(const QString &packageFormat, KPackage::PackageStructure *structure);
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.
Definition packageloader.cpp:233
Package loadPackage(const QString &packageFormat, const QString &packagePath=QString())
Load a Package plugin.
Definition packageloader.cpp:51
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...
Definition packageloader.cpp:281
KPackage::PackageStructure * loadPackageStructure(const QString &packageFormat)
Loads a PackageStructure for a given format.
Definition packageloader.cpp:245
QList< KPluginMetaData > listPackages(const QString &packageFormat, const QString &packageRoot=QString())
List all available packages of a certain type.
Definition packageloader.cpp:132
QList< Package > listKPackages(const QString &packageFormat, const QString &packageRoot=QString())
List all available packages of a certain type.
Definition packageloader.cpp:68
QList< KPluginMetaData > listPackagesMetadata(const QString &packageFormat, const QString &packageRoot=QString())
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition packageloader.cpp:227
This class is used to define the filesystem structure of a package type.
Definition packagestructure.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:19 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:19 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.