const correctness

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691240
This commit is contained in:
Aaron J. Seigo 2007-07-23 07:26:28 +00:00
parent b8a9f72008
commit 6b9842aa5e
2 changed files with 8 additions and 8 deletions

View File

@ -66,7 +66,7 @@ Package::~Package()
{
}
bool Package::isValid()
bool Package::isValid() const
{
if (!d->valid) {
return false;
@ -89,7 +89,7 @@ bool Package::isValid()
return true;
}
QString Package::filePath(const char* fileType, const QString& filename)
QString Package::filePath(const char* fileType, const QString& filename) const
{
if (!d->valid) {
return QString();
@ -113,12 +113,12 @@ QString Package::filePath(const char* fileType, const QString& filename)
return QString();
}
QString Package::filePath(const char* fileType)
QString Package::filePath(const char* fileType) const
{
return filePath(fileType, QString());
}
QStringList Package::entryList(const char* fileType)
QStringList Package::entryList(const char* fileType) const
{
if (!d->valid) {
return QStringList();

View File

@ -52,7 +52,7 @@ class PLASMA_EXPORT Package
* @return true if all the required components as defined in
* the PackageStructure exist
**/
bool isValid();
bool isValid() const;
/**
* Get the path to a given file.
@ -62,7 +62,7 @@ class PLASMA_EXPORT Package
* @arg filename the name of the file
* @return path to the file on disk. QString() if not found.
**/
QString filePath(const char* fileType, const QString& filename);
QString filePath(const char* fileType, const QString& filename) const;
/**
* Get the path to a given file.
@ -72,7 +72,7 @@ class PLASMA_EXPORT Package
* in the package structure and not a directory.
* @return path to the file on disk. QString() if not found
**/
QString filePath(const char* fileType);
QString filePath(const char* fileType) const;
/**
* Get the list of files of a given type.
@ -81,7 +81,7 @@ class PLASMA_EXPORT Package
* package structure.
* @return list of files by name, suitable for passing to filePath
**/
QStringList entryList(const char* fileType);
QStringList entryList(const char* fileType) const;
/**
* Returns a list of all installed packages