KPackage
package.h
124 * Get the url to a given file based on the key and an optional filename, is the file:// or qrc:// format
This class is used to define the filesystem structure of a package type.
Definition packagestructure.h:38
void setContentsPrefixPaths(const QStringList &prefixPaths)
Sets the prefixes that all the contents in this package should appear under.
Definition package.cpp:568
QByteArray cryptographicHash(QCryptographicHash::Algorithm algorithm) const
Definition package.cpp:588
void setRequired(const QByteArray &key, bool required)
Sets whether or not a given part of the structure is required or not.
Definition package.cpp:678
void setMimeTypes(const QByteArray &key, const QStringList &mimeTypes)
Define mimeTypes for a given part of the structure The path must already have been added using addDir...
Definition package.cpp:698
void setPath(const QString &path)
Sets the path to the root of this package.
Definition package.cpp:439
QUrl fileUrl(const QByteArray &key, const QString &filename=QString()) const
Get the url to a given file based on the key and an optional filename, is the file:// or qrc:// forma...
Definition package.cpp:372
void addDirectoryDefinition(const QByteArray &key, const QString &path)
Adds a directory to the structure of the package.
Definition package.cpp:625
QStringList entryList(const QByteArray &key) const
Get the list of files of a given type.
Definition package.cpp:383
QList< QByteArray > requiredDirectories() const
Definition package.cpp:719
void setMetadata(const KPluginMetaData &data)
Sets the metadata for the KPackage.
Definition package.cpp:167
void addFileDefinition(const QByteArray &key, const QString &path)
Adds a file to the structure of the package.
Definition package.cpp:645
void setDefaultPackageRoot(const QString &packageRoot)
Sets preferred package root.
Definition package.cpp:133
QString filePath(const QByteArray &key, const QString &filename=QString()) const
Get the path to a given file based on the key and an optional filename.
Definition package.cpp:292
void setAllowExternalPaths(bool allow)
Sets whether or not external paths/symlinks can be followed by a package.
Definition package.cpp:173
KPackage::Package fallbackPackage() const
Definition package.cpp:153
void removeDefinition(const QByteArray &key)
Removes a definition from the structure of the package.
Definition package.cpp:665
QStringList contentsPrefixPaths() const
Definition package.cpp:563
void setFallbackPackage(const KPackage::Package &package)
Sets the fallback package root path If a file won't be found in this package, it will search it in th...
Definition package.cpp:142
QStringList mimeTypes(const QByteArray &key) const
Definition package.cpp:114
void setDefaultMimeTypes(const QStringList &mimeTypes)
Defines the default mimeTypes for any definitions that do not have associated mimeTypes.
Definition package.cpp:692
Algorithm
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.