From 5717444b38b4f45ad185bbc6ea81cdb141befb8c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 18 Sep 2010 16:50:38 +0000 Subject: added --status and --nowplaying command line option (Closes issue 266) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1893 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/commandlinemanager.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/qmmpui/commandlinemanager.h') diff --git a/src/qmmpui/commandlinemanager.h b/src/qmmpui/commandlinemanager.h index aa393ac42..eab7c46e1 100644 --- a/src/qmmpui/commandlinemanager.h +++ b/src/qmmpui/commandlinemanager.h @@ -27,25 +27,16 @@ /*! @brief Helper class used for handle command line plugins * @author Ilya Kotov */ -class CommandLineManager : public General +class CommandLineManager { - Q_OBJECT public: - /*! - * Constructs a command line manager. - * @param parent QObject parent - */ - CommandLineManager(QObject *parent = 0); - /*! - * Object destructor. - */ - ~CommandLineManager(); /*! * Executes command \b opt_str * @param opt_str Command line option string * @param args Command arguments + * @return Command output result */ - void executeCommand(const QString& opt_str, const QStringList &args = QStringList()); + static QString executeCommand(const QString& opt_str, const QStringList &args = QStringList()); /*! * Return \b true if command \b opt_str is supported, otherwise returns \b false */ @@ -57,9 +48,6 @@ public: private: static void checkOptions(); - uint m_state; - int m_left, m_right; - int m_time; static QList *m_options; static QStringList m_files; }; -- cgit v1.2.3-13-gbd6f