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 (Session::Manager *sessionManager, 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...
 
QIcon icon () const override
 Every library should show a icon in the combo box. More...
 
void init () override
 init More...
 
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. More...
 

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()

QIcon HistoryContainer::icon ( ) const
overridevirtual

Every library should show a icon in the combo box.

Returns

Implements Library::AbstractContainer.

◆ init()

void Library::Container::init ( )
overridevirtualinherited

init

Implements Library::AbstractContainer.

◆ initUi()

void HistoryContainer::initUi ( )
overrideprotectedvirtual

Should initialize the ui. The ui constructor should be called within this function.

Implements Library::Container.

◆ 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 EmptyLibraryContainer, LocalLibraryContainer, SomaFM::LibraryContainer, and SC::LibraryContainer.

◆ name()

QString HistoryContainer::name ( ) const
overridevirtual

Should return an untranslated name used for identifying this widget.

Returns
name

Implements Library::AbstractContainer.

◆ rename()

virtual void Library::Container::rename ( const QString &  new_name)
overridevirtualinherited

◆ widget()

QWidget * HistoryContainer::widget ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements Library::AbstractContainer.