Marble
PluginManager.cpp
162 PluginManagerPrivate::m_blacklist << QString::fromLatin1(MARBLE_SHARED_LIBRARY_PREFIX) + filename;
167 PluginManagerPrivate::m_whitelist << QString::fromLatin1(MARBLE_SHARED_LIBRARY_PREFIX) + filename;
176 mDebug() << obj->metaObject()->superClass()->className() << "plugin loaded from" << (loader ? loader->fileName() : QStringLiteral("<static>"));
189 isPlugin = isPlugin || appendPlugin<PositionProviderPluginInterface>(obj, loader, m_positionProviderPluginTemplates);
191 isPlugin = isPlugin || appendPlugin<ReverseGeocodingRunnerPlugin>(obj, loader, m_reverseGeocodingRunnerPlugins);
195 qWarning() << "Ignoring the following plugin since it couldn't be loaded:" << (loader ? loader->fileName() : QStringLiteral("<static>"));
196 mDebug() << "Plugin failure:" << (loader ? loader->fileName() : QStringLiteral("<static>")) << "is a plugin, but it does not implement the "
226 QString const libBaseName = QString::fromLatin1(MARBLE_SHARED_LIBRARY_PREFIX) + QFileInfo(fileName).baseName();
227 if (!m_whitelist.isEmpty() && !m_whitelist.contains(baseName) && !m_whitelist.contains(libBaseName)) {
258 qWarning() << "Ignoring to load the following file since it doesn't look like a valid Marble plugin:" << path << Qt::endl
276 pluginPaths += "System Path: " + MarbleDirs::pluginSystemPath() + "\nLocal Path: " + MarbleDirs::pluginLocalPath();
280 "No plugins were loaded, please check if the plugins were installed in one of the following paths:\n" + pluginPaths
284 qWarning() << "No plugins loaded. Please check if the plugins were installed in the correct path,"
304 QStringList const existingPlugins = QDir(MarbleDirs::pluginLocalPath()).entryList(pluginNameFilter, QDir::Files);
A plugin for Marble to execute a parsing task.
Definition ParseRunnerPlugin.h:23
The abstract class that provides position information.
Definition PositionProviderPlugin.h:20
A plugin for Marble to execute a reverse geocoding task.
Definition ReverseGeocodingRunnerPlugin.h:23
A plugin for Marble to execute a routing task.
Definition RoutingRunnerPlugin.h:29
A plugin for Marble to execute a placemark search.
Definition SearchRunnerPlugin.h:21
QString path(const QString &relativePath)
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
bool appendPlugin(QObject *obj, const QPluginLoader *loader, QList< Plugin > &plugins)
Append obj to the given plugins list if it inherits both T and U.
Definition PluginManager.cpp:172
QCA_EXPORT QStringList pluginPaths()
Files
QStringList entryList(Filters filters, SortFlags sort) const const
qint64 elapsed() const const
void start()
bool remove()
QString baseName() const const
StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons, StandardButton defaultButton)
const char * className() const const
const QMetaObject * superClass() const const
virtual const QMetaObject * metaObject() const const
QString errorString() const const
fileName
QObject * instance()
QObjectList staticInstances()
QString fromLatin1(QByteArrayView str)
QTextStream & endl(QTextStream &stream)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.