Sayonara Player
Public Member Functions | List of all members
SomaFM::LibraryContainer Class Reference

Public Member Functions

 LibraryContainer (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...
 
QPixmap icon () const override
 
QMenu * menu () override
 return actions menu (may be nullptr). The title does not have to be set More...
 
QFrame * header () const override
 
void init_ui () override
 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 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 ()
 

Member Function Documentation

◆ display_name()

QString SomaFM::LibraryContainer::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* SomaFM::LibraryContainer::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 SomaFM::LibraryContainer::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* SomaFM::LibraryContainer::widget ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements Library::Container.

Inheritance diagram for SomaFM::LibraryContainer:
Library::Container