Plasma
packagestructure.cpp
Go to the documentation of this file.
293 QStringList PackageStructurePrivate::entryList(const QString &prefix, const QString &requestedPath)
330 void PackageStructure::addFileDefinition(const char *key, const QString &path, const QString &name)
629 } else if (mimetype->is("application/x-compressed-tar") || mimetype->is("application/x-gzip") ||
630 mimetype->is("application/x-xz-compressed-tar") || mimetype->is("application/x-lzma-compressed-tar") ||
634 kWarning() << "Could not open package file, unsupported archive format:" << d->path << mimetype->name();
QList< const char * > files() const
The individual files, by key, that are defined for this package.
Definition: packagestructure.cpp:246
QString name(const char *key) const
Definition: packagestructure.cpp:377
void write(KConfigBase *config) const
Write this package structure to a config file.
Definition: packagestructure.cpp:506
QString contentsPrefix() const
Definition: packagestructure.cpp:533
QStringList entryList(const char *key)
Get the list of files of a given type.
Definition: packagestructure.cpp:272
QStringList contentsPrefixPaths() const
Definition: packagestructure.cpp:544
void setServicePrefix(const QString &servicePrefix)
Sets service prefix.
Definition: packagestructure.cpp:596
void setDefaultMimetypes(QStringList mimetypes)
Defines the default mimetypes for any definitions that do not have associated mimetypes.
Definition: packagestructure.cpp:407
void newWidgetBrowserFinished()
Emitted when the new widget browser process completes.
PackageStructure::Ptr defaultPackageStructure(ComponentType type)
Definition: scriptengine.cpp:254
static PackageStructure::Ptr packageStructure()
Definition: theme.cpp:590
void addFileDefinition(const char *key, const QString &path, const QString &name)
Adds a file to the structure of the package.
Definition: packagestructure.cpp:330
Definition: plasma.h:232
static bool uninstallPackage(const QString &package, const QString &packageRoot, const QString &servicePrefix)
Uninstalls a package.
Definition: package.cpp:628
static bool installPackage(const QString &package, const QString &packageRoot, const QString &servicePrefix)
Installs a package.
Definition: package.cpp:464
PackageStructure & operator=(const PackageStructure &rhs)
Assignment operator.
Definition: packagestructure.cpp:204
void setRequired(const char *key, bool required)
Sets whether or not a given part of the structure is required or not.
Definition: packagestructure.cpp:387
void setContentsPrefix(const QString &prefix)
Sets the prefix that all the contents in this package should appear under.
Definition: packagestructure.cpp:538
virtual void createNewWidgetBrowser(QWidget *parent=0)
When called, the package plugin should display a window to the user that they can use to browser...
Definition: packagestructure.cpp:575
QString defaultPackageRoot() const
Definition: packagestructure.cpp:581
PackageStructure(QObject *parent=0, const QString &type=i18nc("A non-functional package","Invalid"))
Default constructor for a package structure definition.
Definition: packagestructure.cpp:107
void setDefaultPackageRoot(const QString &packageRoot)
Sets preferred package root.
Definition: packagestructure.cpp:591
QList< const char * > requiredFiles() const
The individual required files, by key, that are defined for this package.
Definition: packagestructure.cpp:259
virtual bool uninstallPackage(const QString &packageName, const QString &packageRoot)
Uninstalls a package matching this package structure.
Definition: packagestructure.cpp:570
void addDirectoryDefinition(const char *key, const QString &path, const QString &name)
Adds a directory to the structure of the package.
Definition: packagestructure.cpp:311
QStringList mimetypes(const char *key) const
Definition: packagestructure.cpp:422
virtual void pathChanged()
Called whenever the path changes so that subclasses may take package specific actions.
Definition: packagestructure.cpp:469
void setContentsPrefixPaths(const QStringList &prefixPaths)
Sets the prefixes that all the contents in this package should appear under.
Definition: packagestructure.cpp:549
static PackageStructure::Ptr load(const QString &packageFormat)
Loads a package format by name.
Definition: packagestructure.cpp:118
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition: easingcurve.cpp:63
QString servicePrefix() const
Definition: packagestructure.cpp:586
QStringList searchPath(const char *key) const
Definition: packagestructure.cpp:365
void setAllowExternalPaths(bool allow)
Sets whether or not external paths/symlinks can be followed by a package.
Definition: packagestructure.cpp:662
virtual bool installPackage(const QString &archivePath, const QString &packageRoot)
Installs a package matching this package structure.
Definition: packagestructure.cpp:565
void removeDefinition(const char *key)
Removes a definition from the structure of the package.
Definition: packagestructure.cpp:348
bool isRequired(const char *key) const
Definition: packagestructure.cpp:397
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: packagestructure.cpp:412
bool allowExternalPaths() const
Definition: packagestructure.cpp:657
void read(const KConfigBase *config)
Read a package structure from a config file.
Definition: packagestructure.cpp:474
virtual PackageMetadata metadata()
Definition: packagestructure.cpp:616
QList< const char * > requiredDirectories() const
The required directories defined for this package.
Definition: packagestructure.cpp:232
A description of the expected file structure of a given package type.
Definition: packagestructure.h:72
QList< const char * > directories() const
The directories defined for this package.
Definition: packagestructure.cpp:219
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.