dataenginemanager api review: get()->engine()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800256
This commit is contained in:
parent
970e72245c
commit
931d7b0d6c
@ -563,7 +563,7 @@ DataEngine* Applet::dataEngine(const QString& name) const
|
||||
{
|
||||
int index = d->loadedEngines.indexOf(name);
|
||||
if (index != -1) {
|
||||
return DataEngineManager::self()->get(name);
|
||||
return DataEngineManager::self()->engine(name);
|
||||
}
|
||||
|
||||
DataEngine* engine = DataEngineManager::self()->load(name);
|
||||
|
@ -92,7 +92,7 @@ DataEngineManager::~DataEngineManager()
|
||||
delete d;
|
||||
}
|
||||
|
||||
Plasma::DataEngine* DataEngineManager::get(const QString& name) const
|
||||
Plasma::DataEngine* DataEngineManager::engine(const QString& name) const
|
||||
{
|
||||
Plasma::DataEngine::Dict::const_iterator it = d->engines.find(name);
|
||||
if (it != d->engines.end()) {
|
||||
|
@ -55,7 +55,7 @@ class PLASMA_EXPORT DataEngineManager: public QObject
|
||||
*
|
||||
* @param name the name of the engine
|
||||
*/
|
||||
Plasma::DataEngine* get(const QString& name) const;
|
||||
Plasma::DataEngine* engine(const QString& name) const;
|
||||
|
||||
/**
|
||||
* Loads a data engine and increases the reference count on it.
|
||||
|
Loading…
Reference in New Issue
Block a user