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;
QString completeSuffix() const
static Plugin * loadPlugin(QObject *parent, const char *libname)
Definition: plugin.cpp:172
void truncate(int position)
QString attribute(const QString &name, const QString &defValue) const
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_iterator constBegin() const
const QObjectList & children() const
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
QDomElement documentElement() 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)
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
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 char * name() const
const KSharedConfig::Ptr & config() const
void append(const T &value)
virtual KComponentData componentData() const
QString fileName() const
bool isEmpty() const
const_iterator constEnd() const
QString componentName() const
Definition: browserextension.h:34
iterator end()
Definition: plugin.h:58
virtual void setComponentData(const KComponentData &componentData)
void insertCatalog(const QString &catalog)
iterator end()
bool isNull() const
KLocale * locale()
const Key key(const T &value) const
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()
typedef ConstIterator
bool isValid() const
QString findResource(const char *type, const QString &filename) const
int length() const
char * data()
iterator insert(const Key &key, const T &value)
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)
QObject * parent() const
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
iterator find(const Key &key)
iterator begin()
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
const T value(const Key &key) const
KStandardDirs * dirs() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 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:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.