#include <manager.hpp>
Classes | |
struct | event |
Public Member Functions | |
plugins_manager (application_lua_kernel *) | |
~plugins_manager () | |
lua_kernel_base * | get_kernel_base () |
void | play_slice (const plugins_context &) |
void | notify_event (const std::string &name, const config &data) |
MAKE_ENUM (STATUS,(NONE,"not created")(RUNNING,"running")(STOPPED,"stopped")) size_t size() | |
STATUS | get_status (size_t idx) |
std::string | get_detailed_status (size_t idx) |
std::string | get_name (size_t idx) |
bool | any_running () |
size_t | load_plugin (const std::string &name, const std::string &filename) |
size_t | add_plugin (const std::string &name, const std::string &prog) |
void | start_plugin (size_t idx) |
Static Public Member Functions | |
static plugins_manager * | get () |
Private Attributes | |
boost::ptr_vector< plugin > | plugins_ |
boost::shared_ptr< bool > | playing_ |
boost::scoped_ptr < application_lua_kernel > | kernel_ |
Definition at line 37 of file manager.hpp.
plugins_manager::plugins_manager | ( | application_lua_kernel * | kernel | ) |
Definition at line 47 of file manager.cpp.
References add_plugin(), and start_plugin().
plugins_manager::~plugins_manager | ( | ) |
Definition at line 59 of file manager.cpp.
size_t plugins_manager::add_plugin | ( | const std::string & | name, |
const std::string & | prog | ||
) |
Definition at line 121 of file manager.cpp.
References plugin::is_file, plugin::name, plugins_, and plugin::source.
Referenced by game_launcher::init_lua_script(), and plugins_manager().
bool plugins_manager::any_running | ( | ) |
Definition at line 209 of file manager.cpp.
References get_status(), and i.
Referenced by gui::dialog::show().
|
static |
Definition at line 61 of file manager.cpp.
References singleton.
Referenced by events::menu_handler::add_chat_message(), gui2::tlua_interpreter::display(), game_launcher::init_lua_script(), intf_describe_plugins(), plugins_context::play_slice(), mp::ui::process_message(), and gui::dialog::show().
std::string plugins_manager::get_detailed_status | ( | size_t | idx | ) |
Definition at line 86 of file manager.cpp.
References plugins_.
Referenced by game_launcher::init_lua_script().
lua_kernel_base * plugins_manager::get_kernel_base | ( | ) |
Definition at line 66 of file manager.cpp.
References kernel_.
Referenced by game_launcher::init_lua_script().
std::string plugins_manager::get_name | ( | size_t | idx | ) |
Definition at line 97 of file manager.cpp.
References plugins_.
Referenced by game_launcher::init_lua_script(), and intf_describe_plugins().
plugins_manager::STATUS plugins_manager::get_status | ( | size_t | idx | ) |
Definition at line 75 of file manager.cpp.
References compression::NONE, and plugins_.
Referenced by any_running(), and intf_describe_plugins().
size_t plugins_manager::load_plugin | ( | const std::string & | name, |
const std::string & | filename | ||
) |
Definition at line 134 of file manager.cpp.
References plugin::is_file, plugin::name, plugins_, and plugin::source.
plugins_manager::MAKE_ENUM | ( | STATUS | , |
(NONE,"not created")(RUNNING,"running")(STOPPED,"stopped") | |||
) |
void plugins_manager::notify_event | ( | const std::string & | name, |
const config & | data | ||
) |
Definition at line 147 of file manager.cpp.
References plugins_.
Referenced by events::menu_handler::add_chat_message(), mp::ui::process_message(), and gui::dialog::show().
void plugins_manager::play_slice | ( | const plugins_context & | ctxt | ) |
Definition at line 161 of file manager.cpp.
References DBG_PLG, playing_, and plugins_.
Referenced by plugins_context::play_slice().
void plugins_manager::start_plugin | ( | size_t | idx | ) |
Definition at line 104 of file manager.cpp.
References DBG_PLG, kernel_, and plugins_.
Referenced by game_launcher::init_lua_script(), and plugins_manager().
|
private |
Definition at line 75 of file manager.hpp.
Referenced by get_kernel_base(), and start_plugin().
|
private |
Definition at line 74 of file manager.hpp.
Referenced by play_slice().
|
private |
Definition at line 73 of file manager.hpp.
Referenced by add_plugin(), get_detailed_status(), get_name(), get_status(), load_plugin(), notify_event(), play_slice(), and start_plugin().