allow setting the path
svn path=/trunk/KDE/kdelibs/; revision=967227
This commit is contained in:
parent
13de4f22d5
commit
1a892f1c41
@ -160,6 +160,12 @@ PackageMetadata Package::metadata() const
|
|||||||
return d->structure->metadata();
|
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
|
const QString Package::path() const
|
||||||
{
|
{
|
||||||
return d->structure->path();
|
return d->structure->path();
|
||||||
|
11
package.h
11
package.h
@ -97,10 +97,17 @@ class PLASMA_EXPORT Package
|
|||||||
QStringList entryList(const char *fileType) const;
|
QStringList entryList(const char *fileType) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the package metadata object.
|
* @return the package metadata object.
|
||||||
*/
|
*/
|
||||||
PackageMetadata metadata() const;
|
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
|
* @return the path to the root of this particular package
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user