allow setting the path

svn path=/trunk/KDE/kdelibs/; revision=967227
This commit is contained in:
Aaron J. Seigo 2009-05-12 23:05:40 +00:00
parent 13de4f22d5
commit 1a892f1c41
2 changed files with 15 additions and 2 deletions

View File

@ -160,6 +160,12 @@ PackageMetadata Package::metadata() const
return d->structure->metadata();
}
void Package::setPath(const QString &path)
{
d->structure->setPath(path);
d->valid = !d->structure->path().isEmpty();
}
const QString Package::path() const
{
return d->structure->path();

View File

@ -97,10 +97,17 @@ class PLASMA_EXPORT Package
QStringList entryList(const char *fileType) const;
/**
* @return the package metadata object.
*/
* @return the package metadata object.
*/
PackageMetadata metadata() const;
/**
* Sets the path to the root of this package
* @arg path and absolute path
* @since 4.3
*/
void setPath(const QString &path);
/**
* @return the path to the root of this particular package
*/