![]() |
Miam-Player
0.8.0
A nice music player
|
The PluginInfo class is a Data Access Object. More...
#include <plugininfo.h>
Public Member Functions | |
PluginInfo (QObject *parent=nullptr) | |
PluginInfo (const PluginInfo &other) | |
PluginInfo & | operator= (const PluginInfo &other) |
virtual | ~PluginInfo () |
void | setAbsFilePath (const QString &f) |
void | setPluginName (const QString &p) |
void | setVersion (const QString &v) |
void | setConfigPage (bool b) |
void | setEnabled (bool b) |
const QString & | absFilePath () const |
const QString & | pluginName () const |
const QString & | version () const |
bool | isConfigurable () const |
bool | isEnabled () const |
The PluginInfo class is a Data Access Object.
This class is used to keep track of one's settings. It's necessary to be able to have a Widget with one row for each plugin, to display few informations like its name and its version. Plugins can be registered but not loaded at startup. It speeds up the application launch time.
PluginInfo::PluginInfo | ( | QObject * | parent = nullptr | ) |
PluginInfo::PluginInfo | ( | const PluginInfo & | other | ) |
Copy constructor required for converting in QVariant.
|
inlinevirtual |
Destructor required for converting in QVariant.
|
inline |
Gets the filename.
|
inline |
True if the plugin has its own config page.
|
inline |
True if the plugin is enabled.
PluginInfo & PluginInfo::operator= | ( | const PluginInfo & | other | ) |
|
inline |
Gets the name.
void PluginInfo::setAbsFilePath | ( | const QString & | n | ) |
Sets the filename.
void PluginInfo::setConfigPage | ( | bool | b | ) |
Sets if the plugin has its own config page.
void PluginInfo::setEnabled | ( | bool | b | ) |
Sets if the plugin is enabled.
void PluginInfo::setPluginName | ( | const QString & | p | ) |
Sets the name.
void PluginInfo::setVersion | ( | const QString & | v | ) |
Sets the version.
|
inline |
Gets the version.