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 --- .../IncDecVolumeOption/incdecvolumeoption.cpp | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp (limited to 'src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp') diff --git a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp b/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp deleted file mode 100644 index 4bd35a910..000000000 --- a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include - -#include "incdecvolumeoption.h" -#include -#include "mainwindow.h" - -bool IncDecVolumeCommandLineOption::identify(const QString & str) const -{ - if( - str == QString("--volume-inc") || - str == QString("--volume-dec") - ) - { - return TRUE; - } - - return FALSE; -} - -const QString IncDecVolumeCommandLineOption::helpString() const -{ - return QString( - "--volume-inc Increase volume with step 10\n" - "--volume-dec Decrease volume with step 10\n" - ); -} - - -void IncDecVolumeCommandLineOption::executeCommand(const QString & option_string, MainWindow *mw) -{ - if (option_string == "--volume-inc") - { - int l = 0; - int r = 0; - mw->soundCore()->volume(&l,&r); - mw->soundCore()->setVolume(l+10,r+10); - } - else if (option_string == "--volume-dec") - { - int l = 0; - int r = 0; - mw->soundCore()->volume(&l,&r); - mw->soundCore()->setVolume(l-10,r-10); - } -} - -const QString IncDecVolumeCommandLineOption::name() const -{ - return "IncDecVolumeCommandLineOption"; -} - -Q_EXPORT_PLUGIN(IncDecVolumeCommandLineOption) - -- cgit v1.2.3-13-gbd6f