Qmmp
Static Public Member Functions
General Class Reference

The General class provides simple access to general plugins. More...

#include <general.h>

List of all members.

Static Public Member Functions

static void create (QObject *parent)
static QList< GeneralFactory * > factories ()
static QList< GeneralFactory * > enabledFactories ()
static QString file (GeneralFactory *factory)
static void setEnabled (GeneralFactory *factory, bool enable=true)
static void showSettings (GeneralFactory *factory, QWidget *parentWidget)
static bool isEnabled (GeneralFactory *factory)

Detailed Description

The General class provides simple access to general plugins.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Member Function Documentation

static void create ( QObject *  parent) [static]

Prepares general plugins for usage.

Parameters:
parentParent object.
static QList<GeneralFactory *> enabledFactories ( ) [static]

Returns a list of the enabled general plugin factories.

static QList<GeneralFactory *> factories ( ) [static]

Returns a list of the general plugin factories.

static QString file ( GeneralFactory factory) [static]

Returns plugin file path.

Parameters:
factoryGeneral plugin factory.
static bool isEnabled ( GeneralFactory factory) [static]

Returns true if general plugin is enabled, otherwise returns false

Parameters:
factoryGeneral plugin factory.
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)
static void showSettings ( GeneralFactory factory,
QWidget *  parentWidget 
) [static]

Shows configuration dialog and updates settings automatically.

Parameters:
factoryGeneral plugin factory.
parentWidgetParent widget.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator