PluginManager::PluginManager() : QObject(QCoreApplication::instance()) { loadStaticPlugins(); loadPlugins(); sortPlugins(); }
CommonPluginManager::CommonPluginManager(QObject *parent) : QObject(parent), m_staticPlugins(0), m_dynamicPlugins(0) { loadStaticPlugins(); }
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; }
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; }