messageviewer
pluginloaderbase.cpp
Go to the documentation of this file.
43 for ( QMap< QString, PluginMetaData >::const_iterator it = mPluginMap.constBegin(); it != end ; ++it )
49 return mPluginMap.contains( type ) ? &(const_cast<PluginLoaderBase*>(this)->mPluginMap[type]) : 0 ;
87 kWarning() << "missing or empty [Misc]Comment value in \"" << *it << "\" - inserting default name";
93 kWarning() << "Desktop file \"" << *it << "\" doesn't seem to describe a plugin " << "(misses Misc and/or Plugin group)";
98 KLibrary::void_function_ptr PluginLoaderBase::mainFunc( const QString & type, const char * mf_name ) const {
115 KLibrary::void_function_ptr sym = const_cast<KLibrary*>( lib )->resolveFunction( factory_name.toLatin1() );
117 kWarning() << "No symbol named \"" << factory_name.toLatin1() << "\" (" << factory_name << ") was found in library \"" << libName << "\"";
127 kWarning() << "Could not load plugin library" << libName << "error:" << library->errorString() << library->fileName();
bool contains(const Key &key) const
void push_back(const T &value)
Definition: pluginloaderbase.h:31
const_iterator constBegin() const
void clear()
bool isEmpty() const
const_iterator constEnd() const
void doScan(const char *path)
Rescans the plugin directory to find any newly installed plugins.
Definition: pluginloaderbase.cpp:53
QStringList types() const
Returns a list of all available plugin objects (of kind T)
Definition: pluginloaderbase.cpp:40
QByteArray toLatin1() const
Definition: pluginloaderbase.h:45
QString fromLatin1(const char *str, int size)
iterator insert(const Key &key, const T &value)
const PluginMetaData * infoForName(const QString &type) const
Returns the PluginMetaData structure for a given type.
Definition: pluginloaderbase.cpp:48
const_iterator constEnd() const
const_iterator constBegin() const
KLibrary::void_function_ptr mainFunc(const QString &type, const char *main_func) const
Returns a pointer to symbol main_func in the library that implements the plugin of type type...
Definition: pluginloaderbase.cpp:98
const T value(const Key &key) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.