Sayonara Player
Public Member Functions | Protected Member Functions | List of all members
HistoryContainer Class Reference
Inheritance diagram for HistoryContainer:
Library::Container Library::AbstractContainer

Public Member Functions

 HistoryContainer (QObject *parent=nullptr)
 
QString name () const override
 Should return an untranslated name used for identifying this widget. More...
 
QString displayName () 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...
 
QFrame * header () const override
 this is a frame at the top left of the container where the combo box will be located More...
 
QPixmap icon () const override
 Every library should show a icon in the combo box. More...
 
void init () override
 init
 
virtual void rename (const QString &new_name) override
 
virtual QMenu * menu () override
 return actions menu (may be nullptr). The title does not have to be set More...
 
virtual bool isLocal () const override
 a local library is a library which writes to the library field of the database. This should be false for every new plugin More...
 

Protected Member Functions

void initUi () override
 Should initialize the ui. The ui constructor should be called within this function.
 

Member Function Documentation

◆ displayName()

QString HistoryContainer::displayName ( ) const
overridevirtual

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

Returns
display name

Reimplemented from Library::Container.

◆ header()

QFrame* HistoryContainer::header ( ) const
overridevirtual

this is a frame at the top left of the container where the combo box will be located

Returns

Implements Library::AbstractContainer.

◆ icon()

QPixmap HistoryContainer::icon ( ) const
overridevirtual

Every library should show a icon in the combo box.

Returns

Implements Library::AbstractContainer.

◆ isLocal()

virtual bool Library::Container::isLocal ( ) const
overridevirtualinherited

a local library is a library which writes to the library field of the database. This should be false for every new plugin

Returns

Implements Library::AbstractContainer.

Reimplemented in LocalLibraryContainer.

◆ menu()

virtual QMenu* Library::Container::menu ( )
overridevirtualinherited

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

Returns
the translated menu relevant for the corresponding library

Implements Library::AbstractContainer.

Reimplemented in SC::LibraryContainer, SomaFM::LibraryContainer, LocalLibraryContainer, and EmptyLibraryContainer.

◆ name()

QString HistoryContainer::name ( ) const
overridevirtual

Should return an untranslated name used for identifying this widget.

Returns
name

Implements Library::AbstractContainer.

◆ widget()

QWidget* HistoryContainer::widget ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements Library::AbstractContainer.