Plasma
Go to the documentation of this file.
20 #ifndef PLASMA_PACKAGESTRUCTURE_H
21 #define PLASMA_PACKAGESTRUCTURE_H
23 #include <QtCore/QStringList>
24 #include <QtCore/QSharedData>
26 #include <kgenericfactory.h>
28 #include <ksharedptr.h>
38 class PackageStructurePrivate;
77 typedef KSharedPtr<PackageStructure>
Ptr;
85 const QString &
type = i18nc(
"A non-functional package",
"Invalid"));
143 void addDirectoryDefinition(
const char *key,
const QString &path,
const QString &name);
156 void addFileDefinition(
const char *key,
const QString &path,
const QString &name);
163 void removeDefinition(
const char *key);
169 QString path(
const char *key)
const;
191 QString name(
const char *key)
const;
201 void setRequired(
const char *key,
bool required);
206 bool isRequired(
const char *key)
const;
225 void setMimetypes(
const char *key,
QStringList mimetypes);
236 void setPath(
const QString &path);
246 void read(
const KConfigBase *config);
251 void write(KConfigBase *config)
const;
262 virtual bool installPackage(
const QString &archivePath,
const QString &packageRoot);
271 virtual bool uninstallPackage(
const QString &packageName,
const QString &packageRoot);
285 virtual void createNewWidgetBrowser(
QWidget *parent = 0);
291 KDE_DEPRECATED
QString contentsPrefix()
const;
303 QString defaultPackageRoot()
const;
313 void setServicePrefix(
const QString &servicePrefix);
324 bool allowExternalPaths()
const;
330 void newWidgetBrowserFinished();
338 void setAllowExternalPaths(
bool allow);
349 KDE_DEPRECATED
void setContentsPrefix(
const QString &prefix);
362 void setContentsPrefixPaths(
const QStringList &prefixPaths);
367 void setDefaultPackageRoot(
const QString &packageRoot);
373 virtual void pathChanged();
376 PackageStructurePrivate *
const d;
382 #define K_EXPORT_PLASMA_PACKAGESTRUCTURE(libname, classname) \
383 K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
384 K_EXPORT_PLUGIN(factory("plasma_packagestructure_" #libname)) \
385 K_EXPORT_PLUGIN_VERSION(PLASMA_VERSION)
KSharedPtr< PackageStructure > Ptr
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
A description of the expected file structure of a given package type.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.