fix package installation. this method was removed it the API review, but it is actually required.

BUG:163290

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=817331
This commit is contained in:
Aaron J. Seigo 2008-06-05 19:32:15 +00:00
parent 4c75aec5a9
commit ae609c6018
2 changed files with 12 additions and 0 deletions

View File

@ -286,6 +286,7 @@ QStringList PackageStructure::mimetypes(const char* key) const
void PackageStructure::setPath(const QString &path)
{
d->path = path;
pathChanged();
}
QString PackageStructure::path() const
@ -293,6 +294,11 @@ QString PackageStructure::path() const
return d->path;
}
void PackageStructure::pathChanged()
{
// default impl does nothing, this is a hook for subclasses.
}
void PackageStructure::read(const KConfigBase *config)
{
d->contents.clear();

View File

@ -249,6 +249,12 @@ protected:
*/
void setContentsPrefix(const QString &prefix);
/**
* Called whenever the path changes so that subclasses may take
* package specific actions.
*/
virtual void pathChanged();
private:
class Private;
Private * const d;