Miam-Player  0.8.0
A nice music player
ViewLoader Class Reference

The ViewLoader class is an Helper class designed to load complex views (subclasses of QWidget). More...

#include <viewloader.h>

Public Member Functions

 ViewLoader (MediaPlayer *mediaPlayer, PluginManager *pluginManager, QWidget *parent=nullptr)
 
AbstractViewload (AbstractView *currentView, const QString &menuAction)
 

Detailed Description

The ViewLoader class is an Helper class designed to load complex views (subclasses of QWidget).

This class can instanciate ViewPlaylists and UniqueLibrary classes of this player, but it also has the ability to load views from any plugin, if this plugin provides an implementation of AbstractView.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

◆ ViewLoader()

ViewLoader::ViewLoader ( MediaPlayer mediaPlayer,
PluginManager pluginManager,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ load()

AbstractView * ViewLoader::load ( AbstractView currentView,
const QString &  menuAction 
)

The documentation for this class was generated from the following files: