21 #ifndef LIBRARYCONTAINERINTERFACE_H 22 #define LIBRARYCONTAINERINTERFACE_H 24 #include "Utils/Pimpl.h" 55 void set_initialized();
58 explicit Container(QObject* parent=
nullptr);
65 virtual QString
name()
const=0;
67 virtual void set_name(
const QString&
name);
79 virtual QWidget*
widget()
const=0;
86 virtual QFrame*
header()
const=0;
93 virtual QPixmap
icon()
const=0;
100 virtual QMenu*
menu();
147 #endif // LIBRARYCONTAINER_H Definition: LibraryContainer.h:46
virtual QMenu * menu()
return actions menu (may be nullptr). The title does not have to be set
QAction * menu_action() const
get the action in the player menubar.
virtual QString display_name() const
Should return the translated name displayed in the library view combobox.
virtual QFrame * header() const =0
this is a frame at the top left of the container where the combo box will be located
virtual void init_ui()=0
Should initialize the ui. The ui constructor should be called within this function.
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 languag...
bool is_initialized() const
tests, if the ui already has been initialized
virtual bool is_local() const
a local library is a library which writes to the library field of the database. This should be false ...
virtual QWidget * widget() const =0
Should return the UI for the library view.
The Settings class.
Definition: Settings.h:42
virtual QPixmap icon() const =0
Every library should show a icon in the combo box.
virtual QString name() const =0
Should return an untranslated name used for identifying this widget.
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:32
Library Plugin Manager.
Definition: LibraryPluginHandler.h:39