From ab49308ad778ddc4822cda48e218fbc06f7b8e34 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 21 Jul 2018 15:26:02 +0000 Subject: fixed command line translation git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8197 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/commandlineoption.h | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'src/qmmpui/commandlineoption.h') diff --git a/src/qmmpui/commandlineoption.h b/src/qmmpui/commandlineoption.h index 6e1a52638..f6f67d5e5 100644 --- a/src/qmmpui/commandlineoption.h +++ b/src/qmmpui/commandlineoption.h @@ -27,26 +27,33 @@ class QString; class QObject; class QStringList; +/*! @brief Helper class to store command line plugin properties. + * @author Ilya Kotov + */ +class CommandLineProperties +{ +public: + QString shortName; /*!< Input plugin short name for internal usage */ + QString translation; /*!< Translation file path without locale code and extension */ + QStringList helpString; /*!< A list of specially formatted help strings. + Example: "--help||Display this text and exit" */ +}; + /*! @brief Abstract base class of the command line plugins. * @author Vladimir Kuznetsov */ class QMMPUI_EXPORT CommandLineOption { public: + /*! + * Returns command line plugin properties. + */ + virtual const CommandLineProperties properties() const = 0; /*! * Returns \b true if \b opt_str string can be processed, * otherise \b false */ virtual bool identify(const QString& opt_str) const = 0; - /*! - * Command line option name - */ - virtual const QString name() const = 0; - /*! - * A list of specially formatted help strings. - * Example: "--help||Display this text and exit". - */ - virtual const QStringList helpString() const = 0; /*! * Parses \b opt_str args(if needed), executes command. * @param opt_str Command to execute -- cgit v1.2.3-13-gbd6f