Sayonara Player
Public Member Functions | Protected Attributes | List of all members
LocalLibraryContainer Class Reference

Public Member Functions

 LocalLibraryContainer (const Library::Info &library, QObject *parent=nullptr)
 
QString name () const override
 Should return an untranslated name used for identifying this widget. More...
 
QString display_name () const override
 Should return the translated name displayed in the library view combobox. More...
 
QWidget * widget () const override
 Should return the UI for the library view. More...
 
QMenu * menu () override
 return actions menu (may be nullptr). The title does not have to be set More...
 
QFrame * header () const override
 
QPixmap icon () const override
 
void init_ui () override
 Should initialize the ui. The ui constructor should be called within this function.
 
LibraryId id ()
 
void set_name (const QString &name)
 
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 * menu_action () const
 get the action in the player menubar. More...
 
bool is_initialized () const
 tests, if the ui already has been initialized More...
 
virtual void show ()
 
virtual void hide ()
 

Protected Attributes

Settings_settings =nullptr
 

Member Function Documentation

§ display_name()

QString LocalLibraryContainer::display_name ( ) const
overridevirtual

Should return the translated name displayed in the library view combobox.

Returns
display name

Reimplemented from Library::Container.

§ is_initialized()

bool Library::Container::is_initialized ( ) const
inherited

tests, if the ui already has been initialized

Returns
true if ui has been initialized, false else

§ menu()

QMenu* LocalLibraryContainer::menu ( )
overridevirtual

return actions menu (may be nullptr). The title does not have to be set

Returns
the translated menu relevant for the corresponding library

Reimplemented from Library::Container.

§ menu_action()

QAction* Library::Container::menu_action ( ) const
inherited

get the action in the player menubar.

Returns
pointer to action field

§ name()

QString LocalLibraryContainer::name ( ) const
overridevirtual

Should return an untranslated name used for identifying this widget.

Returns
name

Implements Library::Container.

§ set_menu_action()

void Library::Container::set_menu_action ( QAction *  action)
inherited

sets the action member field used in the player menu bar. This is called by the player if the language has changed

Parameters
actionthe new translated action

§ widget()

QWidget* LocalLibraryContainer::widget ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements Library::Container.

Inheritance diagram for LocalLibraryContainer:
Library::Container SayonaraClass