add a stub for PackageStructure::uninstallPackage

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791610
This commit is contained in:
Aaron J. Seigo 2008-03-30 00:56:09 +00:00
parent ca142dbc32
commit 4da6dba89b
3 changed files with 17 additions and 5 deletions

View File

@ -138,9 +138,6 @@ class PLASMA_EXPORT Package
*/
static bool registerPackage(const PackageMetadata &data, const QString &iconPath);
//TODO implement uninstall
//static bool uninstallPackage(const QString& package, const QString& packageRoot);
/**
* Creates a package based on the metadata from the files contained
* in the source directory

View File

@ -365,6 +365,12 @@ bool PackageStructure::installPackage(const QString &package, const QString &pac
return Package::installPackage(package, packageRoot);
}
bool PackageStructure::uninstallPackage(const QString &package, const QString &packageRoot)
{
//TODO: implement
return false;
}
} // Plasma namespace
#include "packagestructure.moc"

View File

@ -214,8 +214,8 @@ public:
void write(KConfigBase *config) const;
/**
* Installs a package matching this package structure. By default simply calls
* Plasma::Package::install.
* Installs a package matching this package structure. By default installs a
* native Plasma::Package.
*
* @param archivePath path to the package archive file
* @param packageRoot path to the directory where the package should be
@ -224,6 +224,15 @@ public:
**/
virtual bool installPackage(const QString &archivePath, const QString &packageRoot);
/**
* Uninstalls a package matching this package structure.
*
* @arg package the name of the package to remove
* @arg packageRoot path to the directory where the package should be installed to
* @return true on successful removal of the package, false otherwise
*/
virtual bool uninstallPackage(const QString& package, const QString& packageRoot);
/**
* @return the prefix inserted between the base path and content entries
*/