diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-11-24 21:54:59 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-11-24 21:54:59 +0000 |
| commit | a9946929bc45b96acd171a8137600277d122ccd9 (patch) | |
| tree | 5e675c6dbc697ac80ed3920c768c7fd6c328df0f /src/qmmpui/commandlinemanager.cpp | |
| parent | 52cdbf3b10333908693f21a7c04ff7983baf923e (diff) | |
| download | qmmp-a9946929bc45b96acd171a8137600277d122ccd9.tar.gz qmmp-a9946929bc45b96acd171a8137600277d122ccd9.tar.bz2 qmmp-a9946929bc45b96acd171a8137600277d122ccd9.zip | |
general api cleanup
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@631 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/commandlinemanager.cpp')
| -rw-r--r-- | src/qmmpui/commandlinemanager.cpp | 56 |
1 files changed, 3 insertions, 53 deletions
diff --git a/src/qmmpui/commandlinemanager.cpp b/src/qmmpui/commandlinemanager.cpp index 5bc7b6d90..9320064f1 100644 --- a/src/qmmpui/commandlinemanager.cpp +++ b/src/qmmpui/commandlinemanager.cpp @@ -26,8 +26,6 @@ #include <cstdlib> #include <iostream> -#include "control.h" - #include "commandlinemanager.h" using namespace std; @@ -71,7 +69,7 @@ static void checkOptions() CommandLineManager::CommandLineManager(QObject *parent) : General(parent) { - m_state = General::Stopped; + //m_state = General::Stopped; m_left = 0; m_right = 0; m_time = 0; @@ -82,62 +80,14 @@ CommandLineManager::~CommandLineManager() { } -void CommandLineManager::setState(const uint& state) -{ - if (state == General::Stopped) - m_time = 0; - m_state = state; -} - -void CommandLineManager::setSongInfo(const SongInfo &song) -{ - m_song = song; -} - -void CommandLineManager::setTime(int time) -{ - m_time = time; -} - -void CommandLineManager::setVolume(int left, int right) -{ - m_left = left; - m_right = right; -} - -uint CommandLineManager::state() -{ - return m_state; -} - -SongInfo *CommandLineManager::info() -{ - return &m_song; -} - -int CommandLineManager::elapsed() -{ - return m_time; -} - -int CommandLineManager::leftVolume() -{ - return m_left; -} - -int CommandLineManager::rightVolume() -{ - return m_right; -} - -void CommandLineManager::executeCommand(const QString& opt_str, Control* ctrl) +void CommandLineManager::executeCommand(const QString& opt_str) { checkOptions(); foreach(CommandLineOption *opt, *options) { if (opt->identify(opt_str)) { - opt->executeCommand(opt_str, this, ctrl); + opt->executeCommand(opt_str, this); return; } } |
