CommandLineOption Class Reference

Abstract base class of the command line plugins. More...

#include <commandlineoption.h>

List of all members.

Public Member Functions

virtual bool identify (const QString &opt_str) const =0
virtual const QString name () const =0
virtual const QString helpString () const =0
virtual QString executeCommand (const QString &opt_str, const QStringList &args)=0
virtual QTranslator * createTranslator (QObject *parent)=0
virtual ~CommandLineOption ()


Detailed Description

Abstract base class of the command line plugins.

Author:
Vladimir Kuznetsov <vovanec@gmail.ru>

Constructor & Destructor Documentation

virtual ~CommandLineOption (  )  [inline, virtual]

Object destructor


Member Function Documentation

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.

Parameters:
opt_str Command to execute
args Command arguments
Returns:
Command output

virtual const QString helpString (  )  const [pure virtual]

Help string.

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


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

Generated on Thu Nov 10 20:39:10 2011 for Qmmp by  doxygen 1.5.9