diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-06-11 13:03:47 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-06-11 13:03:47 +0000 |
| commit | 05881204465655b9657891cddb195e37dd5dd020 (patch) | |
| tree | 1ed20dadbc38f361dda65e2771bddd71a4a599f5 /src/qmmpui/generalhandler.cpp | |
| parent | da088637dea9ba5aed112e88deb933201de8947a (diff) | |
| download | qmmp-05881204465655b9657891cddb195e37dd5dd020.tar.gz qmmp-05881204465655b9657891cddb195e37dd5dd020.tar.bz2 qmmp-05881204465655b9657891cddb195e37dd5dd020.zip | |
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
Diffstat (limited to 'src/qmmpui/generalhandler.cpp')
| -rw-r--r-- | src/qmmpui/generalhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; |
