#include <general.h>
The General class provides simple access to general plugins.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ create()
static void create |
( |
QObject * | parent | ) |
|
|
static |
Prepares general plugins for usage.
- Parameters
-
◆ 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
-
id | Widget ID. |
parent | Parent Widget. |
◆ enabledFactories()
Returns a list of the enabled general plugin factories.
◆ enabledWidgets()
static QStringList enabledWidgets |
( |
| ) |
|
|
static |
Returns a list of the enabled widget IDs.
◆ factories()
Returns a list of the general plugin factories.
◆ file()
Returns plugin file path.
- Parameters
-
◆ isEnabled()
Returns true if general plugin is enabled, otherwise returns false
- Parameters
-
◆ setEnabled()
static void setEnabled |
( |
GeneralFactory * | factory, |
|
|
bool | enable = true ) |
|
static |
Sets whether the general plugin is enabled.
- Parameters
-
factory | General plugin factory. |
enable | Plugin enable state (true - enable, false - disable) |
◆ showSettings()
static void showSettings |
( |
GeneralFactory * | factory, |
|
|
QWidget * | parentWidget ) |
|
static |
Shows configuration dialog and updates settings automatically.
- Parameters
-
factory | General plugin factory. |
parentWidget | Parent widget. |
◆ widgetDescription()
Returns widget description.
- Parameters
-
The documentation for this class was generated from the following file:
- /usr/src/RPM/BUILD/qmmp-1.6.5/src/qmmpui/general.h