QCAD
Open Source 2D CAD
RPluginLoader Class Reference

Copyright (c) 2011-2015 by Andrew Mustun. More...

#include <RPluginLoader.h>

Static Public Member Functions

static int countPlugins ()
 
static QStringList getPluginFiles ()
 
static RPluginInfo getPluginInfo (int i)
 
static QString getPluginsPath ()
 
static QString getPluginSuffix ()
 
static bool hasPlugin (const QString &id)
 
static void initScriptExtensions (QScriptEngine &engine)
 
static void initScriptExtensions (QObject *plugin, QScriptEngine &engine)
 
static void loadPlugin (QObject *plugin, bool init, const QString &fileName=QString(), const QString &errorString=QString())
 
static void loadPlugins (bool init)
 Tries to loads all QCAD plugins located in . More...
 
static void postInitPlugin (QObject *plugin, RPluginInterface::InitStatus status)
 
static void postInitPlugins (RPluginInterface::InitStatus status)
 
static void unloadPlugin (const QString &fileName, bool remove=false)
 
static void unloadPlugin (const QObject *plugin, bool remove=false)
 
static void unloadPlugins ()
 

Static Private Attributes

static QStringList pluginFiles
 
static QList< RPluginInfopluginsInfo
 Copyright (c) 2011-2015 by Andrew Mustun. More...
 

Detailed Description

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. Loads and registeres plugins.

Scriptable:
This class is available in script environments.

Member Function Documentation

static int RPluginLoader::countPlugins ( )
inlinestatic
QStringList RPluginLoader::getPluginFiles ( )
static
static RPluginInfo RPluginLoader::getPluginInfo ( int  i)
inlinestatic
QString RPluginLoader::getPluginsPath ( )
static
QString RPluginLoader::getPluginSuffix ( )
static
bool RPluginLoader::hasPlugin ( const QString &  id)
static
void RPluginLoader::initScriptExtensions ( QScriptEngine &  engine)
static
Non-Scriptable:
This function is not available in script environments.
void RPluginLoader::initScriptExtensions ( QObject *  plugin,
QScriptEngine &  engine 
)
static
Non-Scriptable:
This function is not available in script environments.
void RPluginLoader::loadPlugin ( QObject *  plugin,
bool  init,
const QString &  fileName = QString(),
const QString &  errorString = QString() 
)
static
void RPluginLoader::loadPlugins ( bool  init)
static

Tries to loads all QCAD plugins located in .

/plugins.

void RPluginLoader::postInitPlugin ( QObject *  plugin,
RPluginInterface::InitStatus  status 
)
static
Non-Scriptable:
This function is not available in script environments.
void RPluginLoader::postInitPlugins ( RPluginInterface::InitStatus  status)
static
void RPluginLoader::unloadPlugin ( const QString &  fileName,
bool  remove = false 
)
static
void RPluginLoader::unloadPlugin ( const QObject *  plugin,
bool  remove = false 
)
static
void RPluginLoader::unloadPlugins ( )
static

Member Data Documentation

QStringList RPluginLoader::pluginFiles
staticprivate
QList< RPluginInfo > RPluginLoader::pluginsInfo
staticprivate

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.


The documentation for this class was generated from the following files: