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)
This is an abstract base class which defines an interface to which the package loading logic can comm...
Definition packageloader.h:31
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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.