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

The LocalLibraryContainer class. More...

#include <LocalLibraryContainer.h>

Inheritance diagram for LocalLibraryContainer:
Library::Container Library::AbstractContainer

Public Member Functions

 LocalLibraryContainer (Library::Manager *libraryManager, const Library::Info &library, 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...
 
QIcon 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. More...
 
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...
 
void rename (const QString &new_name) override
 
void init () override
 init More...
 

Detailed Description

The LocalLibraryContainer class.

Member Function Documentation

◆ displayName()

QString LocalLibraryContainer::displayName ( ) const
overridevirtual

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

Returns
display name

Reimplemented from Library::Container.

◆ header()

QFrame * LocalLibraryContainer::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 LocalLibraryContainer::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 LocalLibraryContainer::initUi ( )
overridevirtual

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

Implements Library::Container.

◆ isLocal()

bool LocalLibraryContainer::isLocal ( ) const
overridevirtual

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

Returns

Reimplemented from Library::Container.

◆ menu()

QMenu * LocalLibraryContainer::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 LocalLibraryContainer::name ( ) const
overridevirtual

Should return an untranslated name used for identifying this widget.

Returns
name

Implements Library::AbstractContainer.

◆ rename()

void LocalLibraryContainer::rename ( const QString &  new_name)
overridevirtual

Reimplemented from Library::Container.

◆ widget()

QWidget * LocalLibraryContainer::widget ( ) const
overridevirtual

Should return the UI for the library view.

Returns
pointer to the ui

Implements Library::AbstractContainer.