Qmmp
Public Member Functions | List of all members
CommandLineOption Class Referenceabstract

#include <commandlineoption.h>

Public Member Functions

virtual CommandLineProperties properties () const =0
 
virtual bool identify (const QString &opt_str) const =0
 
virtual QString executeCommand (const QString &opt_str, const QStringList &args)=0
 
virtual ~CommandLineOption ()
 
virtual QString translation () const =0
 

Detailed Description

Abstract base class of the command line plugins.

Author
Vladimir Kuznetsov vovan.nosp@m.ec@g.nosp@m.mail..nosp@m.ru

Constructor & Destructor Documentation

◆ ~CommandLineOption()

virtual ~CommandLineOption ( )
inlinevirtual

Object destructor

Member Function Documentation

◆ executeCommand()

virtual QString executeCommand ( const QString &  opt_str,
const QStringList &  args 
)
pure virtual

Parses opt_str args(if needed), executes command.

Parameters
opt_strCommand to execute
argsCommand arguments
Returns
Command output

◆ identify()

virtual bool identify ( const QString &  opt_str) const
pure virtual

Returns true if opt_str string can be processed, otherise false

◆ properties()

virtual CommandLineProperties properties ( ) const
pure virtual

Returns command line plugin properties.

◆ translation()

virtual QString translation ( ) const
pure virtual

Returns translation file path without locale code and extension


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