![]() |
Sayonara Player
|
#include <LibraryContainer.h>
An interface class needed when implementing a library plugin.
Friends | |
| class | LibraryPluginHandler |
Public Member Functions | |
| LibraryContainerInterface (QObject *parent=nullptr) | |
| virtual QIcon | get_icon () const =0 |
| Should return the icon displayed in the library view combobox. More... | |
| virtual QString | get_name () const =0 |
| Should return an untranslated name used for identifying this widget. More... | |
| virtual QString | get_display_name () const =0 |
| Should return the translated name displayed in the library view combobox. More... | |
| virtual QWidget * | get_ui () const =0 |
| Should return the UI for the library view. More... | |
| virtual QComboBox * | get_libchooser ()=0 |
| Should return the library chooser combo box. More... | |
| virtual QMenu * | get_menu () |
| return actions menu (may be nullptr). The title does not have to be set More... | |
| void | set_menu_action (QAction *action) |
| sets the action member field used in the player menu bar. This is called by the player if the language has changed More... | |
| QAction * | get_menu_action () const |
| get the action in the player menubar. More... | |
| virtual void | init_ui ()=0 |
| Should initialize the ui. The ui constructor should be called within this function. | |
| bool | is_initialized () const |
| tests, if the ui already has been initialized More... | |
|
pure virtual |
Should return the translated name displayed in the library view combobox.
Implemented in SomaFMLibraryContainer, SoundcloudLibraryContainer, DirectoryLibraryContainer, and LocalLibraryContainer.
|
pure virtual |
Should return the icon displayed in the library view combobox.
Implemented in SomaFMLibraryContainer, SoundcloudLibraryContainer, LocalLibraryContainer, and DirectoryLibraryContainer.
|
pure virtual |
Should return the library chooser combo box.
Implemented in SomaFMLibraryContainer, SoundcloudLibraryContainer, DirectoryLibraryContainer, and LocalLibraryContainer.
|
virtual |
return actions menu (may be nullptr). The title does not have to be set
Reimplemented in SomaFMLibraryContainer, SoundcloudLibraryContainer, and LocalLibraryContainer.
| QAction* LibraryContainerInterface::get_menu_action | ( | ) | const |
get the action in the player menubar.
|
pure virtual |
Should return an untranslated name used for identifying this widget.
Implemented in SomaFMLibraryContainer, SoundcloudLibraryContainer, DirectoryLibraryContainer, and LocalLibraryContainer.
|
pure virtual |
Should return the UI for the library view.
Implemented in SomaFMLibraryContainer, SoundcloudLibraryContainer, DirectoryLibraryContainer, and LocalLibraryContainer.
| bool LibraryContainerInterface::is_initialized | ( | ) | const |
tests, if the ui already has been initialized
| void LibraryContainerInterface::set_menu_action | ( | QAction * | action | ) |
sets the action member field used in the player menu bar. This is called by the player if the language has changed
| action | the new translated action |
1.8.13