Plasma
package.cpp
44 Package::Package(PackageStructure *structure)
void addFileDefinition(const char *key, const QString &path, const QString &name)
Adds a file to the structure of the package.
Definition: package.cpp:219
void setRequired(const char *key, bool required)
Sets whether or not a given part of the structure is required or not.
Definition: package.cpp:229
QStringList entryList(const char *key) const
Get the list of files of a given type.
Definition: package.cpp:180
void setAllowExternalPaths(bool allow)
Sets whether or not external paths/symlinks can be followed by a package.
Definition: package.cpp:165
QList< const char * > requiredDirectories() const
Definition: package.cpp:255
static KPluginInfo fromMetaData(const KPluginMetaData &meta)
void setMimeTypes(const char *key, QStringList mimeTypes)
Define mimeTypes for a given part of the structure The path must already have been added using addDir...
Definition: package.cpp:239
void setContentsPrefixPaths(const QStringList &prefixPaths)
Sets the prefixes that all the contents in this package should appear under.
Definition: package.cpp:204
QString fromLocal8Bit(const char *str, int size)
KJob * install(const QString &sourcePackage, const QString &packageRoot=QString())
Installs a package matching this package structure.
Definition: package.cpp:288
bool isEmpty() const const
KJob * uninstall(const QString &packageName, const QString &packageRoot)
Uninstalls a package matching this package structure.
Definition: package.cpp:298
void setDefaultPackageRoot(const QString &packageRoot)
Sets preferred package root.
Definition: package.cpp:125
void removeDefinition(const char *key)
Removes a definition from the structure of the package.
Definition: package.cpp:224
void setFallbackPackage(const Plasma::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:130
void addDirectoryDefinition(const char *key, const QString &path, const QString &name)
Adds a directory to the structure of the package.
Definition: package.cpp:214
QList< const char * > requiredFiles() const
Definition: package.cpp:277
void setDefaultMimeTypes(QStringList mimeTypes)
Defines the default mimeTypes for any definitions that do not have associated mimeTypes.
Definition: package.cpp:234
void setPath(const QString &path)
Sets the path to the root of this package.
Definition: package.cpp:185
QString filePath(const char *key, const QString &filename=QString()) const
Get the path to a given file based on the key and an optional filename.
Definition: package.cpp:175
QStringList contentsPrefixPaths() const
Definition: package.cpp:199
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.