Sayonara Player
Public Member Functions | List of all members
SoundcloudLibraryContainer Class Reference

Public Member Functions

 SoundcloudLibraryContainer (QObject *parent=nullptr)
 
QString get_name () const override
 Should return an untranslated name used for identifying this widget. More...
 
QString get_display_name () const override
 Should return the translated name displayed in the library view combobox. More...
 
QIcon get_icon () const override
 Should return the icon displayed in the library view combobox. More...
 
QWidget * get_ui () const override
 Should return the UI for the library view. More...
 
QComboBox * get_libchooser () override
 Should return the library chooser combo box. More...
 
QMenu * get_menu () override
 return actions menu (may be nullptr). The title does not have to be set More...
 
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 * get_menu_action () const
 get the action in the player menubar. More...
 
bool is_initialized () const
 tests, if the ui already has been initialized More...
 

Member Function Documentation

◆ get_display_name()

QString SoundcloudLibraryContainer::get_display_name ( ) const
overridevirtual

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

Returns
display name

Implements LibraryContainerInterface.

◆ get_icon()

QIcon SoundcloudLibraryContainer::get_icon ( ) const
overridevirtual

Should return the icon displayed in the library view combobox.

Returns
QIcon instance

Implements LibraryContainerInterface.

◆ get_libchooser()

QComboBox* SoundcloudLibraryContainer::get_libchooser ( )
overridevirtual

Should return the library chooser combo box.

Returns
pointer to the combobox

Implements LibraryContainerInterface.

◆ get_menu()

QMenu* SoundcloudLibraryContainer::get_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 LibraryContainerInterface.

◆ get_menu_action()

QAction* LibraryContainerInterface::get_menu_action ( ) const
inherited

get the action in the player menubar.

Returns
pointer to action field

◆ get_name()

QString SoundcloudLibraryContainer::get_name ( ) const
overridevirtual

Should return an untranslated name used for identifying this widget.

Returns
name

Implements LibraryContainerInterface.

◆ get_ui()

QWidget* SoundcloudLibraryContainer::get_ui ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements LibraryContainerInterface.

◆ is_initialized()

bool LibraryContainerInterface::is_initialized ( ) const
inherited

tests, if the ui already has been initialized

Returns
true if ui has been initialized, false else

◆ set_menu_action()

void LibraryContainerInterface::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
Inheritance diagram for SoundcloudLibraryContainer:
LibraryContainerInterface