mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
plasma: mark Plasma::PackageStructure::entryList() as const
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3b22af1d92
commit
df591fa7ea
4 changed files with 10 additions and 12 deletions
|
@ -66,8 +66,8 @@ class ContentStructure
|
||||||
QStringList paths;
|
QStringList paths;
|
||||||
QString name;
|
QString name;
|
||||||
QStringList mimetypes;
|
QStringList mimetypes;
|
||||||
bool directory : 1;
|
bool directory;
|
||||||
bool required : 1;
|
bool required;
|
||||||
};
|
};
|
||||||
|
|
||||||
class PackageStructurePrivate
|
class PackageStructurePrivate
|
||||||
|
@ -75,10 +75,10 @@ class PackageStructurePrivate
|
||||||
public:
|
public:
|
||||||
PackageStructurePrivate(const QString &t)
|
PackageStructurePrivate(const QString &t)
|
||||||
: type(t),
|
: type(t),
|
||||||
packageRoot("plasma/plasmoids"),
|
packageRoot("plasma/plasmoids"),
|
||||||
servicePrefix("plasma-applet-"),
|
servicePrefix("plasma-applet-"),
|
||||||
metadata(0),
|
metadata(nullptr),
|
||||||
externalPaths(false)
|
externalPaths(false)
|
||||||
{
|
{
|
||||||
contentsPrefixPaths << "contents/";
|
contentsPrefixPaths << "contents/";
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void createPackageMetadata(const QString &path);
|
void createPackageMetadata(const QString &path);
|
||||||
QStringList entryList(const QString &prefix, const QString &requestedPath);
|
QStringList entryList(const QString &prefix, const QString &requestedPath) const;
|
||||||
|
|
||||||
QString type;
|
QString type;
|
||||||
QString path;
|
QString path;
|
||||||
|
@ -238,7 +238,7 @@ QList<QByteArray> PackageStructure::requiredFiles() const
|
||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList PackageStructure::entryList(const char *key)
|
QStringList PackageStructure::entryList(const char *key) const
|
||||||
{
|
{
|
||||||
QString p = path(key);
|
QString p = path(key);
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ QStringList PackageStructure::entryList(const char *key)
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList PackageStructurePrivate::entryList(const QString &prefix, const QString &requestedPath)
|
QStringList PackageStructurePrivate::entryList(const QString &prefix, const QString &requestedPath) const
|
||||||
{
|
{
|
||||||
QDir dir(path + prefix + requestedPath);
|
QDir dir(path + prefix + requestedPath);
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ public:
|
||||||
* @return list of files by name
|
* @return list of files by name
|
||||||
* @since 4.3
|
* @since 4.3
|
||||||
*/
|
*/
|
||||||
QStringList entryList(const char *key);
|
QStringList entryList(const char *key) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return user visible name for the given entry
|
* @return user visible name for the given entry
|
||||||
|
|
|
@ -142,7 +142,6 @@ public:
|
||||||
*/
|
*/
|
||||||
bool isIconified() const;
|
bool isIconified() const;
|
||||||
|
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Hides the popup.
|
* Hides the popup.
|
||||||
|
|
|
@ -374,7 +374,6 @@ class PLASMA_EXPORT Wallpaper : public QObject
|
||||||
*/
|
*/
|
||||||
bool needsPreviewDuringConfiguration() const;
|
bool needsPreviewDuringConfiguration() const;
|
||||||
|
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
* This signal indicates that wallpaper needs to be repainted.
|
* This signal indicates that wallpaper needs to be repainted.
|
||||||
|
|
Loading…
Add table
Reference in a new issue