Qmmp
|
#include <commandlineoption.h>
Public Member Functions | |
virtual bool | identify (const QString &opt_str) const =0 |
virtual const QString | name () const =0 |
virtual const QStringList | helpString () const =0 |
virtual QString | executeCommand (const QString &opt_str, const QStringList &args)=0 |
virtual QTranslator * | createTranslator (QObject *parent)=0 |
virtual | ~CommandLineOption () |
Abstract base class of the command line plugins.
virtual ~CommandLineOption | ( | ) | [inline, virtual] |
Object destructor
virtual QTranslator* createTranslator | ( | QObject * | parent | ) | [pure virtual] |
Creates translator with parent object parent
virtual QString executeCommand | ( | const QString & | opt_str, |
const QStringList & | args | ||
) | [pure virtual] |
Parses opt_str args(if needed), executes command.
opt_str | Command to execute |
args | Command arguments |
virtual const QStringList helpString | ( | ) | const [pure virtual] |
A list of specially formatted help strings. Example: "--help||Display this text and exit".
virtual bool identify | ( | const QString & | opt_str | ) | const [pure virtual] |
Returns true if opt_str string can be processed, otherise false
virtual const QString name | ( | ) | const [pure virtual] |
Command line option name