Exemplo n.º 1
0
PluginManager::PluginManager() :
	QObject(QCoreApplication::instance())
{
	loadStaticPlugins();
	loadPlugins();
	sortPlugins();
}
Exemplo n.º 2
0
CommonPluginManager::CommonPluginManager(QObject *parent)
    : QObject(parent),
      m_staticPlugins(0),
      m_dynamicPlugins(0)
{
    loadStaticPlugins();
}
Exemplo n.º 3
0
CommonPluginManager::CommonPluginManager(const QDir &pluginsPath, QObject *parent)
    : QObject(parent),
      m_staticPlugins(0),
      m_dynamicPlugins(0),
      m_pluginsPath(pluginsPath)
{
    loadStaticPlugins();
    loadDynamicPlugins();
}
QHash<QString, QGeoPositionInfoSourceFactory*> QGeoSatelliteInfoSourcePrivate::plugins(bool reload)
{
    static QHash<QString, QGeoPositionInfoSourceFactory*> plugins;
    static bool alreadyDiscovered = false;

    if (reload == true)
        alreadyDiscovered = false;

    if (!alreadyDiscovered) {
        loadStaticPlugins(plugins);
        loadDynamicPlugins(plugins);
        alreadyDiscovered = true;
    }
    return plugins;
}
Exemplo n.º 5
0
    Ogre::Root* OgreInit::init(const std::string &logPath)
    {
        // Set up logging first
        new Ogre::LogManager;
        Ogre::Log *log = Ogre::LogManager::getSingleton().createLog(logPath + std::string("Ogre.log"));

        // Disable logging to cout/cerr
        log->setDebugOutputEnabled(false);

        mRoot = new Ogre::Root("", "", "");

        #if defined(ENABLE_PLUGIN_GL) || defined(ENABLE_PLUGIN_Direct3D9) || defined(ENABLE_PLUGIN_CgProgramManager) || defined(ENABLE_PLUGIN_OctreeSceneManager) || defined(ENABLE_PLUGIN_ParticleFX)
        loadStaticPlugins();
        #else
        loadPlugins();
        #endif

        loadParticleFactories();

        return mRoot;
    }