KPackage
packageloader.cpp
68QList<Package> PackageLoader::listKPackages(const QString &packageFormat, const QString &packageRoot)
122 if (packageFormat.isEmpty() || !package.metadata().isValid() || readKPackageType(package.metadata()) == packageFormat) {
132QList<KPluginMetaData> PackageLoader::listPackages(const QString &packageFormat, const QString &packageRoot)
195 QDirIterator it(plugindir, QStringList{QStringLiteral("metadata.json")}, QDir::Files, QDirIterator::Subdirectories);
227QList<KPluginMetaData> PackageLoader::listPackagesMetadata(const QString &packageFormat, const QString &packageRoot)
233PackageLoader::findPackages(const QString &packageFormat, const QString &packageRoot, std::function<bool(const KPluginMetaData &)> filter)
281void PackageLoader::addKnownPackageStructure(const QString &packageFormat, KPackage::PackageStructure *structure)
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
void setPath(const QString &path)
Sets the path to the root of this package.
Definition package.cpp:439
QString pluginId() const
bool isValid() const
static KPluginMetaData fromJsonFile(const QString &jsonFile)
qint64 currentMSecsSinceEpoch()
Dirs
bool isAbsolutePath(const QString &path)
Subdirectories
QFileInfo fileInfo() const const
QString filePath() const const
bool hasNext() const const
QString next()
QString fileName() const const
bool contains(const QSet< T > &other) const const
GenericDataLocation
QStringList standardLocations(StandardLocation type)
bool isEmpty() const const
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.