Miam-Player  0.8.0
A nice music player
PluginInfo Class Reference

The PluginInfo class is a Data Access Object. More...

#include <plugininfo.h>

Inheritance diagram for PluginInfo:

Public Member Functions

 PluginInfo (QObject *parent=nullptr)
 
 PluginInfo (const PluginInfo &other)
 
PluginInfooperator= (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
 

Detailed Description

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.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

PluginInfo::PluginInfo ( QObject *  parent = nullptr)
PluginInfo::PluginInfo ( const PluginInfo other)

Copy constructor required for converting in QVariant.

virtual PluginInfo::~PluginInfo ( )
inlinevirtual

Destructor required for converting in QVariant.

Member Function Documentation

const QString& PluginInfo::absFilePath ( ) const
inline

Gets the filename.

bool PluginInfo::isConfigurable ( ) const
inline

True if the plugin has its own config page.

bool PluginInfo::isEnabled ( ) const
inline

True if the plugin is enabled.

PluginInfo & PluginInfo::operator= ( const PluginInfo other)
const QString& PluginInfo::pluginName ( ) const
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.

const QString& PluginInfo::version ( ) const
inline

Gets the version.


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