Sayonara Player
Signals | Public Member Functions | Protected Attributes | List of all members
LibraryPluginHandler Class Reference

#include <LibraryPluginHandler.h>

Detailed Description

Library Plugin Manager.

Signals

void sig_idx_changed (int)
 

Public Member Functions

 LibraryPluginHandler (QObject *parent=nullptr)
 
void init (const QList< LibraryContainerInterface *> &containers)
 Search for plugins and add some predefined plugins. More...
 
void set_library_parent (QWidget *parent)
 Set the parent widget for library plugins. More...
 
QList< LibraryContainerInterface * > get_libraries () const
 Get a list for all found plugins. The ui is not necessarily initialized. More...
 
LibraryContainerInterfaceget_cur_library () const
 Get the current selected (and shown) library. More...
 
int get_cur_library_idx () const
 Get the current index of the library (indicated by current index in dropdown. More...
 

Protected Attributes

Settings_settings =nullptr
 

Member Function Documentation

§ get_cur_library()

LibraryContainerInterface* LibraryPluginHandler::get_cur_library ( ) const

Get the current selected (and shown) library.

Returns
current library, on failure nullptr

§ get_cur_library_idx()

int LibraryPluginHandler::get_cur_library_idx ( ) const

Get the current index of the library (indicated by current index in dropdown.

Returns
current library index

§ get_libraries()

QList<LibraryContainerInterface*> LibraryPluginHandler::get_libraries ( ) const

Get a list for all found plugins. The ui is not necessarily initialized.

Returns
list for all found library plugins

§ init()

void LibraryPluginHandler::init ( const QList< LibraryContainerInterface *> &  containers)

Search for plugins and add some predefined plugins.

Parameters
containersSome predefined plugins

§ set_library_parent()

void LibraryPluginHandler::set_library_parent ( QWidget *  parent)

Set the parent widget for library plugins.

Parameters
parentParent widget
Inheritance diagram for LibraryPluginHandler:
SayonaraClass