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"));
110 QString
type()
const;
115 QList<const char*> directories()
const;
120 QList<const char*> requiredDirectories()
const;
125 QList<const char*> files()
const;
130 QList<const char*> requiredFiles()
const;
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;
177 QStringList searchPath(
const char *key)
const;
186 QStringList entryList(
const char *key);
191 QString name(
const char *key)
const;
201 void setRequired(
const char *key,
bool required);
206 bool isRequired(
const char *key)
const;
215 void setDefaultMimetypes(QStringList mimetypes);
225 void setMimetypes(
const char *key, QStringList mimetypes);
230 QStringList mimetypes(
const char *key)
const;
236 void setPath(
const QString &path);
241 QString path()
const;
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;
298 QStringList contentsPrefixPaths()
const;
303 QString defaultPackageRoot()
const;
308 QString servicePrefix()
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-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.