From a9946929bc45b96acd171a8137600277d122ccd9 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 24 Nov 2008 21:54:59 +0000 Subject: general api cleanup git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@631 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/commandlinemanager.cpp | 56 +++------------------------------------ 1 file changed, 3 insertions(+), 53 deletions(-) (limited to 'src/qmmpui/commandlinemanager.cpp') 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 #include -#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; } } -- cgit v1.2.3-13-gbd6f