From 05881204465655b9657891cddb195e37dd5dd020 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 11 Jun 2008 13:03:47 +0000 Subject: enabled command line plugins support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@401 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/generalhandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/qmmpui/generalhandler.cpp') diff --git a/src/qmmpui/generalhandler.cpp b/src/qmmpui/generalhandler.cpp index 54e5a8652..02ca51e15 100644 --- a/src/qmmpui/generalhandler.cpp +++ b/src/qmmpui/generalhandler.cpp @@ -22,6 +22,7 @@ #include "general.h" #include "generalfactory.h" #include "control.h" +#include "commandlinemanager.h" #include "generalhandler.h" @@ -48,6 +49,8 @@ GeneralHandler::GeneralHandler(QObject *parent) m_generals.insert(factory, general); } } + m_commandLineManager = new CommandLineManager(this); + m_generals.insert(0, m_commandLineManager); } GeneralHandler::~GeneralHandler() @@ -165,6 +168,12 @@ bool GeneralHandler::visibilityControl() return FALSE; } +void GeneralHandler::executeCommand(const QString &opt_str) +{ + if(CommandLineManager::hasOption(opt_str)) + m_commandLineManager->executeCommand(opt_str, m_control); +} + GeneralHandler* GeneralHandler::instance() { return m_instance; -- cgit v1.2.3-13-gbd6f