/* * This program 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 2 of the License, or * (at your option) any later version. * * This program 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 Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * PluginManager.h * Interface to the PluginManager class * Copyright (C) 2005-2009 Simon Newton */ #ifndef OLAD_PLUGINMANAGER_H_ #define OLAD_PLUGINMANAGER_H_ #include namespace ola { using std::vector; class PluginLoader; class PluginAdaptor; class AbstractPlugin; class PluginManager { public: PluginManager(const vector &plugin_loaders, PluginAdaptor *plugin_adaptor); ~PluginManager(); void LoadAll(); void UnloadAll(); void Plugins(vector *plugins) const; AbstractPlugin* GetPlugin(ola_plugin_id plugin_id) const; private: PluginManager(const PluginManager&); PluginManager operator=(const PluginManager&); vector m_plugin_loaders; PluginAdaptor *m_plugin_adaptor; vector m_plugins; }; } // ola #endif // OLAD_PLUGINMANAGER_H_