#include <mmsswitcher.h>

Public Member Functions | |
| MMSSwitcher (MMSPluginData *plugindata=NULL) | |
| ~MMSSwitcher () | |
| void | setWindowManager (IMMSWindowManager *wm) |
| void | setPluginManager (MMSPluginManager *pm) |
| void | setInputManager (MMSInputManager *im) |
| void | onSubscription (MMSInputSubscription *subscription) |
| void | subscribeKey (MMSKeySymbol key) |
| virtual void | show () |
| virtual void | hide () |
| virtual MMSChildWindow * | loadPreviewDialog (string filename, MMSTheme *theme=NULL, int id=-1) |
| virtual MMSChildWindow * | loadInfoBarDialog (string filename, MMSTheme *theme=NULL) |
| virtual void | setVolume (unsigned int volume, bool init=false) |
| virtual IMMSSwitcher * | newSwitcher (MMSPluginData *plugindata) |
| virtual bool | switchToPlugin () |
| virtual bool | revertToLastPlugin () |
| virtual bool | leavePlugin (bool show_switcher) |
| virtual void * | callback (void *data) |
| Generic callback for plugin->switcher communication. | |
| virtual MMSChildWindow * | loadChildWindow (string filename, MMSTheme *theme=NULL) |
| load a generic childwindow to be shown by the plugin | |
| virtual void | refresh () |
| virtual MMSWidget * | getMyButton () |
Protected Member Functions | |
| bool | switchToPluginEx (int toplugin) |
| int | searchingForImage (string pluginpath, string imagename, string *path) |
| virtual void | setMenuItemValues (MMSWidget *item) |
| virtual void | onBeforeScroll (MMSWidget *widget) |
| virtual void | onSelectItem (MMSWidget *widget) |
| virtual void | onReturn (MMSWidget *widget) |
| virtual bool | onBeforeShowPreview (MMSWindow *win) |
Protected Attributes | |
| MMSConfigData | config |
| MMSOSDPluginHandler * | osdhandler |
| MMSCentralPluginHandler * | centralhandler |
| MMSSwitcherThread * | showPreviewThread |
| a separate thread for each plugin | |
| MMSPluginData * | plugindata |
| for plugin owned switcher instances | |
| MMSChildWindow * | menuBar |
| shows the plugin menu | |
| MMSMenuWidget * | menu |
| plugin menu | |
| MMSChildWindow * | menuBar_static |
| shows the static plugin menu | |
| MMSMenuWidget * | menu_static |
| plugin static menu, switcher does not control it | |
Static Protected Attributes | |
| static IMMSWindowManager * | windowmanager |
| static MMSPluginManager * | pluginmanager |
| static MMSInputManager * | inputmanager |
| static vector < MMSInputSubscription * > | subscriptions |
| static MMSDialogManager | dm |
| dialog manager for whole switcher window | |
| static MMSMainWindow * | window |
| whole switcher window | |
| static map< int, plugin_data_t * > | plugins |
| loaded plugins | |
| static int | curr_plugin |
| index to pluginSwitchers which points to the current plugin | |
| static MMSSwitcherThread * | switcherThread |
| my update thread | |
Private Member Functions | |
| const void | addPluginsToMenu (const vector< MMSPluginData * > &plugins) |
Friends | |
| class | MMSSwitcherThread |
Definition at line 50 of file mmsswitcher.h.
| MMSSwitcher::MMSSwitcher | ( | MMSPluginData * | plugindata = NULL |
) |
Definition at line 57 of file mmsswitcher.cpp.
| MMSSwitcher::~MMSSwitcher | ( | ) |
Definition at line 151 of file mmsswitcher.cpp.
| const void MMSSwitcher::addPluginsToMenu | ( | const vector< MMSPluginData * > & | plugins | ) | [private] |
Definition at line 157 of file mmsswitcher.cpp.
| bool MMSSwitcher::switchToPluginEx | ( | int | toplugin | ) | [protected] |
Definition at line 516 of file mmsswitcher.cpp.
| int MMSSwitcher::searchingForImage | ( | string | pluginpath, | |
| string | imagename, | |||
| string * | path | |||
| ) | [protected] |
Definition at line 225 of file mmsswitcher.cpp.
| void MMSSwitcher::setMenuItemValues | ( | MMSWidget * | item | ) | [protected, virtual] |
Definition at line 186 of file mmsswitcher.cpp.
| void MMSSwitcher::onBeforeScroll | ( | MMSWidget * | widget | ) | [protected, virtual] |
Definition at line 351 of file mmsswitcher.cpp.
| void MMSSwitcher::onSelectItem | ( | MMSWidget * | widget | ) | [protected, virtual] |
Definition at line 369 of file mmsswitcher.cpp.
| void MMSSwitcher::onReturn | ( | MMSWidget * | widget | ) | [protected, virtual] |
Definition at line 406 of file mmsswitcher.cpp.
| bool MMSSwitcher::onBeforeShowPreview | ( | MMSWindow * | win | ) | [protected, virtual] |
Definition at line 461 of file mmsswitcher.cpp.
| void MMSSwitcher::setWindowManager | ( | IMMSWindowManager * | wm | ) | [virtual] |
| void MMSSwitcher::setPluginManager | ( | MMSPluginManager * | pm | ) | [virtual] |
| void MMSSwitcher::setInputManager | ( | MMSInputManager * | im | ) | [virtual] |
| void MMSSwitcher::onSubscription | ( | MMSInputSubscription * | subscription | ) |
Definition at line 312 of file mmsswitcher.cpp.
| void MMSSwitcher::subscribeKey | ( | MMSKeySymbol | key | ) |
Definition at line 342 of file mmsswitcher.cpp.
| void MMSSwitcher::show | ( | ) | [virtual] |
| void MMSSwitcher::hide | ( | ) | [virtual] |
| MMSChildWindow * MMSSwitcher::loadPreviewDialog | ( | string | filename, | |
| MMSTheme * | theme = NULL, |
|||
| int | id = -1 | |||
| ) | [virtual] |
| MMSChildWindow * MMSSwitcher::loadInfoBarDialog | ( | string | filename, | |
| MMSTheme * | theme = NULL | |||
| ) | [virtual] |
| void MMSSwitcher::setVolume | ( | unsigned int | volume, | |
| bool | init = false | |||
| ) | [virtual] |
| IMMSSwitcher * MMSSwitcher::newSwitcher | ( | MMSPluginData * | plugindata | ) | [virtual] |
| bool MMSSwitcher::switchToPlugin | ( | ) | [virtual] |
| bool MMSSwitcher::revertToLastPlugin | ( | ) | [virtual] |
| bool MMSSwitcher::leavePlugin | ( | bool | show_switcher | ) | [virtual] |
| void * MMSSwitcher::callback | ( | void * | data | ) | [virtual] |
Generic callback for plugin->switcher communication.
If you implement your own switcher, you can call this method in your plugins to let the switcher handle whatever you want.
| data | application specific data |
Implements IMMSSwitcher.
Definition at line 578 of file mmsswitcher.cpp.
| MMSChildWindow * MMSSwitcher::loadChildWindow | ( | string | filename, | |
| MMSTheme * | theme = NULL | |||
| ) | [virtual] |
load a generic childwindow to be shown by the plugin
| application | specific data |
Implements IMMSSwitcher.
Definition at line 586 of file mmsswitcher.cpp.
| void MMSSwitcher::refresh | ( | ) | [virtual] |
| MMSWidget * MMSSwitcher::getMyButton | ( | ) | [virtual] |
friend class MMSSwitcherThread [friend] |
Definition at line 115 of file mmsswitcher.h.
MMSConfigData MMSSwitcher::config [protected] |
Definition at line 55 of file mmsswitcher.h.
IMMSWindowManager * MMSSwitcher::windowmanager [static, protected] |
Definition at line 57 of file mmsswitcher.h.
MMSPluginManager * MMSSwitcher::pluginmanager [static, protected] |
Definition at line 58 of file mmsswitcher.h.
MMSInputManager * MMSSwitcher::inputmanager [static, protected] |
Definition at line 59 of file mmsswitcher.h.
vector< MMSInputSubscription * > MMSSwitcher::subscriptions [static, protected] |
Definition at line 60 of file mmsswitcher.h.
MMSDialogManager MMSSwitcher::dm [static, protected] |
MMSMainWindow * MMSSwitcher::window [static, protected] |
map< int, plugin_data_t * > MMSSwitcher::plugins [static, protected] |
int MMSSwitcher::curr_plugin [static, protected] |
index to pluginSwitchers which points to the current plugin
Definition at line 66 of file mmsswitcher.h.
MMSOSDPluginHandler* MMSSwitcher::osdhandler [protected] |
Definition at line 68 of file mmsswitcher.h.
MMSCentralPluginHandler* MMSSwitcher::centralhandler [protected] |
Definition at line 69 of file mmsswitcher.h.
MMSSwitcherThread* MMSSwitcher::showPreviewThread [protected] |
MMSSwitcherThread * MMSSwitcher::switcherThread [static, protected] |
MMSPluginData* MMSSwitcher::plugindata [protected] |
MMSChildWindow* MMSSwitcher::menuBar [protected] |
MMSMenuWidget* MMSSwitcher::menu [protected] |
MMSChildWindow* MMSSwitcher::menuBar_static [protected] |
MMSMenuWidget* MMSSwitcher::menu_static [protected] |