remove DataEngine::name()

This commit is contained in:
Marco Martin 2013-04-03 20:47:02 +02:00
parent afe7a925d4
commit 16e69aafcd
5 changed files with 1 additions and 44 deletions

View File

@ -430,17 +430,6 @@ void DataEngine::scheduleSourcesUpdated()
d->checkSourcesTimerId = startTimer(0);
}
QString DataEngine::name() const
{
return d->engineName;
}
void DataEngine::setName(const QString &name)
{
d->engineName = name;
setObjectName(name);
}
void DataEngine::setStorageEnabled(const QString &source, bool store)
{
DataContainer *s = d->source(source, false);
@ -463,16 +452,7 @@ DataEnginePrivate::DataEnginePrivate(DataEngine *e, const KPluginInfo &info)
{
updateTimestamp.start();
if (!info.isValid()) {
engineName = i18n("Unnamed");
return;
}
engineName = info.name();
if (engineName.isEmpty()) {
engineName = i18n("Unnamed");
}
e->setObjectName(engineName);
e->setObjectName(info.name());
icon = info.icon();
if (dataEngineDescription.isValid()) {

View File

@ -58,10 +58,6 @@ class DataEnginePrivate;
class PLASMA_EXPORT DataEngine : public QObject
{
Q_OBJECT
Q_PROPERTY(QStringList sources READ sources)
Q_PROPERTY(bool valid READ isValid)
Q_PROPERTY(QString icon READ icon WRITE setIcon)
Q_PROPERTY(QString name READ name)
public:
typedef QHash<QString, DataEngine*> Dict;
@ -111,11 +107,6 @@ class PLASMA_EXPORT DataEngine : public QObject
*/
KPluginInfo pluginInfo() const;
/**
* Returns the engine name for the DataEngine
*/
QString name() const;
/**
* Connects a source to an object for data updates. The object must
* have a slot with the following signature:
@ -458,11 +449,6 @@ NoAlignment) const;
**/
void timerEvent(QTimerEvent *event);
/**
* Sets the engine name for the DataEngine
*/
void setName(const QString &name);
/**
* Sets the icon for this data engine
**/

View File

@ -95,7 +95,6 @@ class DataEnginePrivate
QString icon;
bool valid;
DataEngineScript *script;
QString engineName;
QString serviceName;
Package *package;
QString waitingSourceRequest;

View File

@ -174,13 +174,6 @@ DataEngine::SourceDict DataEngineScript::containerDict() const
return DataEngine::SourceDict();
}
void DataEngineScript::setName(const QString &name)
{
if (d->dataEngine) {
d->dataEngine->setName(name);
}
}
void DataEngineScript::setIcon(const QString &icon)
{
if (d->dataEngine) {

View File

@ -135,7 +135,6 @@ protected:
void removeAllSources();
void addSource(DataContainer *source);
DataEngine::SourceDict containerDict() const;
void setName(const QString &name);
void setIcon(const QString &icon);
void scheduleSourcesUpdated();
void removeSource(const QString &source);