Plasma
7 #ifndef PLASMA_PACKAGE_H
8 #define PLASMA_PACKAGE_H
10 #include <QStringList>
12 #include <plasma/plasma.h>
13 #include <plasma/plasma_export.h>
15 #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 94)
16 #include <KPluginInfo>
22 #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 28)
74 class PackageStructure;
86 PLASMA_DEPRECATED_VERSION(5, 6,
"Use KPackage API")
87 explicit Package(PackageStructure *structure =
nullptr);
93 PLASMA_DEPRECATED_VERSION(5, 6,
"Use KPackage API")
100 PLASMA_DEPRECATED_VERSION(5, 6,
"Use KPackage API")
117 bool hasValidStructure()
const;
122 bool isValid()
const;
129 void setPath(
const QString &path);
162 QString name(
const char *key)
const;
167 bool isRequired(
const char *key)
const;
184 QString defaultPackageRoot()
const;
195 bool allowExternalPaths()
const;
219 void addDirectoryDefinition(
const char *key,
const QString &path,
const QString &name);
232 void addFileDefinition(
const char *key,
const QString &path,
const QString &name);
239 void removeDefinition(
const char *key);
249 void setRequired(
const char *key,
bool required);
268 void setMimeTypes(
const char *key,
QStringList mimeTypes);
281 void setContentsPrefixPaths(
const QStringList &prefixPaths);
286 void setServicePrefix(
const QString &servicePrefix);
293 void setAllowExternalPaths(
bool allow);
298 void setDefaultPackageRoot(
const QString &packageRoot);
359 friend class PackagePrivate;
360 friend class PackageStructure;
361 friend class AppletPrivate;
369 #endif // PLASMA_ENABLE_DEPRECATED_SINCE(5, 28)
Namespace for everything in libplasma.
A bookkeeping Scene for Plasma::Applets.
object representing an installed Plasma package
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:13:44 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.