kopete/libkopete
kopetepluginmanager.cpp
Go to the documentation of this file.
56 plugins = KPluginInfo::fromServices( KServiceTypeTrader::self()->query( QLatin1String( "Kopete/Plugin" ), QLatin1String( "[X-Kopete-Version] == 1000900" ) ) );
63 kWarning( 14010 ) << "Destructing plugin manager without going through the shutdown process! Backtrace is: " << endl << kBacktrace();
142 for ( PluginManagerPrivate::InfoToPluginMap::ConstIterator it = _kpmp->loadedPlugins.constBegin();
155 for ( PluginManagerPrivate::InfoToPluginMap::ConstIterator it = _kpmp->loadedPlugins.constBegin();
178 for ( PluginManagerPrivate::InfoToPluginMap::ConstIterator it = _kpmp->loadedPlugins.constBegin();
236 for ( PluginManagerPrivate::InfoToPluginMap::ConstIterator it = _kpmp->loadedPlugins.constBegin(); it != _kpmp->loadedPlugins.constEnd(); ++it )
251 kWarning(14010) << "WARNING: Some plugin set QTextCodec::setCodecForCStrings this may break protocols!!!";
276 QList<KPluginInfo> plugins = availablePlugins( QString::null ); //krazy:exclude=nullstrassign for old broken gcc
281 // Protocols are loaded automatically so they aren't always in Plugins group. (fixes bug 167113)
304 QList<KPluginInfo> plugins = availablePlugins( QString::null ); //krazy:exclude=nullstrassign for old broken gcc
340 Plugin * PluginManager::loadPlugin( const QString &_pluginId, PluginLoadMode mode /* = LoadSync */ )
379 Plugin *plugin = KServiceTypeTrader::createInstanceFromQuery<Plugin>( QString::fromLatin1( "Kopete/Plugin" ), QString::fromLatin1( "[X-KDE-PluginInfo-Name]=='%1'" ).arg( pluginId ), this, QVariantList(), &error );
399 kDebug( 14010 ) << "Loading plugin " << pluginId << " failed, KServiceTypeTrader reported error: " << error ;
433 if ( _kpmp->shutdownMode == PluginManagerPrivate::ShuttingDown && _kpmp->loadedPlugins.isEmpty() )
455 pluginId = QLatin1String( "kopete_" ) + _pluginId.toLower().remove( QString::fromLatin1( "protocol" ) );
static ContactList * self()
The contact list is a singleton object.
Definition: kopetecontactlist.cpp:71
void allPluginsLoaded()
All plugins have been loaded by the plugin manager.
bool setPluginEnabled(const QString &name, bool enabled=true)
Enable a plugin.
Definition: kopetepluginmanager.cpp:481
QObject * sender() const
PluginList loadedPlugins(const QString &category=QString()) const
Returns a list of all plugins that are actually loaded.
Definition: kopetepluginmanager.cpp:138
QString & prepend(QChar ch)
QTextCodec * codecForCStrings()
Plugin * loadPlugin(const QString &pluginId, PluginLoadMode mode=LoadSync)
Load a single plugin by plugin name.
Definition: kopetepluginmanager.cpp:340
QString join(const QString &separator) const
QString & remove(int position, int n)
void pluginLoaded(Kopete::Plugin *plugin)
Signals a new plugin has just been loaded.
static AccountManager * self()
Retrieve the instance of AccountManager.
Definition: kopeteaccountmanager.cpp:77
void pluginUnloaded(const QString &pluginName)
Signals a plugin has just been unloaded.
void append(const T &value)
QList< KPluginInfo > availablePlugins(const QString &category=QString()) const
Returns a list of all available plugins for the given category.
Definition: kopetepluginmanager.cpp:122
bool unloadPlugin(const QString &pluginName)
Unload the plugin specified by pluginName.
Definition: kopetepluginmanager.cpp:405
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
void deleteLater()
iterator end()
KPluginInfo pluginInfo(const Kopete::Plugin *plugin) const
Definition: kopetepluginmanager.cpp:153
iterator begin()
QString toLower() const
const Key key(const T &value) const
void shutdown()
Shuts down the plugin manager on Kopete shutdown, but first unloads all plugins asynchronously.
Definition: kopetepluginmanager.cpp:164
bool isAllPluginsLoaded() const
This method check if all the plugins are loaded.
Definition: kopetepluginmanager.cpp:500
int length() const
Definition: kopetepluginmanager.h:40
QString left(int n) const
QString fromLatin1(const char *str, int size)
iterator insert(const Key &key, const T &value)
typedef Iterator
Plugin * plugin(const QString &pluginName) const
Search by plugin name.
Definition: kopetepluginmanager.cpp:444
const_iterator constEnd() const
const_iterator constBegin() const
typedef ConstIterator
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void protocolLoaded(Kopete::Protocol *protocol)
Signals a new protocol has just been loaded.
void destroyed(QObject *obj)
const T value(const Key &key) const
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 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:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.