Qmmp
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
General Class Reference

#include <general.h>

Static Public Member Functions

static void create (QObject *parent)
 
static QList< GeneralFactory * > factories ()
 
static QList< GeneralFactory * > enabledFactories ()
 
static QStringList enabledWidgets ()
 
static WidgetDescription widgetDescription (const QString &id)
 
static QWidget * createWidget (const QString &id, QWidget *parent)
 
static QString file (const GeneralFactory *factory)
 
static void setEnabled (GeneralFactory *factory, bool enable=true)
 
static void showSettings (GeneralFactory *factory, QWidget *parentWidget)
 
static bool isEnabled (const GeneralFactory *factory)
 

Detailed Description

The General class provides simple access to general plugins.

Author
Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru

Member Function Documentation

◆ create()

static void create ( QObject * parent)
static

Prepares general plugins for usage.

Parameters
parentParent object.

◆ createWidget()

static QWidget * createWidget ( const QString & id,
QWidget * parent )
static

Creates widget provided by general plugin. May return nullptr if widget ID is not found.

Parameters
idWidget ID.
parentParent Widget.

◆ enabledFactories()

static QList< GeneralFactory * > enabledFactories ( )
static

Returns a list of the enabled general plugin factories.

◆ enabledWidgets()

static QStringList enabledWidgets ( )
static

Returns a list of the enabled widget IDs.

◆ factories()

static QList< GeneralFactory * > factories ( )
static

Returns a list of the general plugin factories.

◆ file()

static QString file ( const GeneralFactory * factory)
static

Returns plugin file path.

Parameters
factoryGeneral plugin factory.

◆ isEnabled()

static bool isEnabled ( const GeneralFactory * factory)
static

Returns true if general plugin is enabled, otherwise returns false

Parameters
factoryGeneral plugin factory.

◆ setEnabled()

static void setEnabled ( GeneralFactory * factory,
bool enable = true )
static

Sets whether the general plugin is enabled.

Parameters
factoryGeneral plugin factory.
enablePlugin enable state (true - enable, false - disable)

◆ showSettings()

static void showSettings ( GeneralFactory * factory,
QWidget * parentWidget )
static

Shows configuration dialog and updates settings automatically.

Parameters
factoryGeneral plugin factory.
parentWidgetParent widget.

◆ widgetDescription()

static WidgetDescription widgetDescription ( const QString & id)
static

Returns widget description.

Parameters
idWidget ID.

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