Qmmp
commandlineoption.h
1 /***************************************************************************
2  * Copyright (C) 2008-2017 by Ilya Kotov *
3  * forkotov02@ya.ru *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 #ifndef COMMANDLINEOPTION_H
21 #define COMMANDLINEOPTION_H
22 
23 
24 class CommandLineManager;
25 class QTranslator;
26 class QString;
27 class QObject;
28 class QStringList;
29 
34 {
35 public:
40  virtual bool identify(const QString& opt_str) const = 0;
44  virtual const QString name() const = 0;
49  virtual const QStringList helpString() const = 0;
56  virtual QString executeCommand(const QString &opt_str, const QStringList &args) = 0;
60  virtual QTranslator *createTranslator(QObject *parent) = 0;
64  virtual ~CommandLineOption() {}
65 };
66 
67 Q_DECLARE_INTERFACE(CommandLineOption,"CommandLineOptionInterface/1.0")
68 
69 #endif
virtual ~CommandLineOption()
Definition: commandlineoption.h:64
virtual const QStringList helpString() const =0
virtual QString executeCommand(const QString &opt_str, const QStringList &args)=0
virtual QTranslator * createTranslator(QObject *parent)=0
virtual bool identify(const QString &opt_str) const =0
virtual const QString name() const =0
Abstract base class of the command line plugins.
Definition: commandlineoption.h:33
Helper class used for handle command line plugins.
Definition: commandlinemanager.h:31