KParts
plugin.cpp
Go to the documentation of this file.
66 QString absPath = KStandardDirs::locate( "data", d->m_parentInstance.componentName() + '/' + path );
78 QString absPath = KStandardDirs::locateLocal( "data", d->m_parentInstance.componentName() + '/' + path );
141 void Plugin::loadPlugins(QObject *parent, const QList<PluginInfo> &pluginInfos, const KComponentData &componentData)
152 Plugin *plugin = loadPlugin( parent, library, (*pIt).m_document.documentElement().attribute( "X-KDE-PluginKeyword" ) );
219 // TODO: move to a new method KGlobal::findDirectChildren, if there is more than one use of this?
300 kDebug(1000) << "Discarding plugin " << name << ", interface version " << version << ", expected " << interfaceVersionRequired;
static Plugin * loadPlugin(QObject *parent, const char *libname)
Definition: plugin.cpp:172
void removeClient(KXMLGUIClient *client)
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
virtual void setComponentData(const KComponentData &instance)
Definition: plugin.cpp:249
const char * name(StandardAction id)
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual void setXMLFile(const QString &file, bool merge=false, bool setXMLDoc=true)
KXMLGUIFactory * factory() const
virtual QString xmlFile() const
virtual void setDOMDocument(const QDomDocument &document, bool merge=false)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString catalogName() const
static QList< Plugin::PluginInfo > pluginInfos(const KComponentData &instance)
Look for plugins in the instance's "data" directory (+"/kpartplugins")
Definition: plugin.cpp:84
const KSharedConfig::Ptr & config() const
virtual KComponentData componentData() const
QString componentName() const
Definition: plugin.h:58
virtual void setComponentData(const KComponentData &componentData)
void insertCatalog(const QString &catalog)
KLocale * locale()
KPluginFactory * factory()
static QList< Plugin * > pluginObjects(QObject *parent)
Returns a list of plugin objects loaded for parent.
Definition: plugin.cpp:212
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
unsigned int version()
bool isValid() const
QString findResource(const char *type, const QString &filename) const
static void loadPlugins(QObject *parent, const KComponentData &instance)
Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...
Definition: plugin.cpp:136
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
void insertChildClient(KXMLGUIClient *child)
static QString findMostRecentXMLFile(const QStringList &files, QString &doc)
A plugin is the way to add actions to an existing KParts application, or to a Part.
Definition: plugin.h:54
T readEntry(const QString &key, const T &aDefault) const
KConfigGroup desktopGroup() const
Definition: browserextension.h:34
KStandardDirs * dirs() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.