QCAD
Open Source 2D CAD
RPluginLoader Class Reference

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

#include <RPluginLoader.h>

Static Public Member Functions

static bool checkPluginLicense (QObject *plugin)
 
static bool checkPluginLicenses ()
 
static int countPlugins ()
 
static QStringList getPluginFiles ()
 
static RPluginInfo getPluginInfo (const QString &id)
 
static RPluginInfo getPluginInfo (int i)
 
static QString getPluginsPath ()
 
static QString getPluginSuffix ()
 
static bool hasPlugin (const QString &id)
 
static void initScriptExtensions (QObject *plugin, QScriptEngine &engine)
 
static void initScriptExtensions (QScriptEngine &engine)
 
static void initTranslations ()
 
static void initTranslations (QObject *plugin)
 
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 QObject *plugin, bool remove=false)
 
static void unloadPlugin (const QString &fileName, bool remove=false)
 
static void unloadPlugins ()
 

Static Private Attributes

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

Detailed Description

Copyright (c) 2011-2018 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 registers plugins.

Scriptable:\nThis class is available in script environments.\n

Member Function Documentation

◆ checkPluginLicense()

bool RPluginLoader::checkPluginLicense ( QObject *  plugin)
static

◆ checkPluginLicenses()

bool RPluginLoader::checkPluginLicenses ( )
static

◆ countPlugins()

static int RPluginLoader::countPlugins ( )
inlinestatic

◆ getPluginFiles()

QStringList RPluginLoader::getPluginFiles ( )
static

◆ getPluginInfo() [1/2]

RPluginInfo RPluginLoader::getPluginInfo ( const QString &  id)
static

◆ getPluginInfo() [2/2]

RPluginInfo RPluginLoader::getPluginInfo ( int  i)
static

◆ getPluginsPath()

QString RPluginLoader::getPluginsPath ( )
static

◆ getPluginSuffix()

QString RPluginLoader::getPluginSuffix ( )
static

◆ hasPlugin()

bool RPluginLoader::hasPlugin ( const QString &  id)
static

◆ initScriptExtensions() [1/2]

void RPluginLoader::initScriptExtensions ( QObject *  plugin,
QScriptEngine &  engine 
)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ initScriptExtensions() [2/2]

void RPluginLoader::initScriptExtensions ( QScriptEngine &  engine)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ initTranslations() [1/2]

void RPluginLoader::initTranslations ( )
static

◆ initTranslations() [2/2]

void RPluginLoader::initTranslations ( QObject *  plugin)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ loadPlugin()

void RPluginLoader::loadPlugin ( QObject *  plugin,
bool  init,
const QString &  fileName = QString(),
const QString &  errorString = QString() 
)
static

◆ loadPlugins()

void RPluginLoader::loadPlugins ( bool  init)
static

Tries to loads all QCAD plugins located in .

/plugins.

◆ postInitPlugin()

void RPluginLoader::postInitPlugin ( QObject *  plugin,
RPluginInterface::InitStatus  status 
)
static
Non-Scriptable:\nThis function is not available in script environments.\n

◆ postInitPlugins()

void RPluginLoader::postInitPlugins ( RPluginInterface::InitStatus  status)
static

◆ unloadPlugin() [1/2]

void RPluginLoader::unloadPlugin ( const QObject *  plugin,
bool  remove = false 
)
static

◆ unloadPlugin() [2/2]

void RPluginLoader::unloadPlugin ( const QString &  fileName,
bool  remove = false 
)
static

◆ unloadPlugins()

void RPluginLoader::unloadPlugins ( )
static

Member Data Documentation

◆ pluginFiles

QStringList RPluginLoader::pluginFiles
staticprivate

◆ pluginsInfo

QList< RPluginInfo > RPluginLoader::pluginsInfo
staticprivate

Copyright (c) 2011-2018 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: