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

The EmptyLibraryContainer class. More...

#include <EmptyLibraryContainer.h>

Inheritance diagram for EmptyLibraryContainer:
Library::Container Library::AbstractContainer

Public Member Functions

 EmptyLibraryContainer (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...
 
QMenu * menu () override
 return actions menu (may be nullptr). The title does not have to be set 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 initUi () override
 Should initialize the ui. The ui constructor should be called within this function.
 
void init () override
 init
 
virtual void rename (const QString &new_name) override
 
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...
 

Detailed Description

The EmptyLibraryContainer class.

Member Function Documentation

◆ displayName()

QString EmptyLibraryContainer::displayName ( ) const
overridevirtual

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

Returns
display name

Reimplemented from Library::Container.

◆ header()

QFrame* EmptyLibraryContainer::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 EmptyLibraryContainer::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()

QMenu* EmptyLibraryContainer::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.

◆ name()

QString EmptyLibraryContainer::name ( ) const
overridevirtual

Should return an untranslated name used for identifying this widget.

Returns
name

Implements Library::AbstractContainer.

◆ widget()

QWidget* EmptyLibraryContainer::widget ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements Library::AbstractContainer.