aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Misc/CommandLineOptions
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-06-11 13:03:47 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-06-11 13:03:47 +0000
commit05881204465655b9657891cddb195e37dd5dd020 (patch)
tree1ed20dadbc38f361dda65e2771bddd71a4a599f5 /src/plugins/Misc/CommandLineOptions
parentda088637dea9ba5aed112e88deb933201de8947a (diff)
downloadqmmp-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/plugins/Misc/CommandLineOptions')
-rw-r--r--src/plugins/Misc/CommandLineOptions/IncDecVolumeOption.pro2
-rw-r--r--src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/IncDecVolumeOption.pro26
-rw-r--r--src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp53
-rw-r--r--src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h23
4 files changed, 0 insertions, 104 deletions
diff --git a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption.pro b/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption.pro
deleted file mode 100644
index 1832a0166..000000000
--- a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS = IncDecVolumeOption
diff --git a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/IncDecVolumeOption.pro b/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/IncDecVolumeOption.pro
deleted file mode 100644
index fdcef5e38..000000000
--- a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/IncDecVolumeOption.pro
+++ /dev/null
@@ -1,26 +0,0 @@
-include(../../../../../qmmp.pri)
-
-QMMPSRCROOT = ../../../../
-
-INCLUDEPATH += $$QMMPSRCROOT/ui \
- $$QMMPSRCROOT/qmmp \
- $$QMMPSRCROOT
-
-HEADERS += incdecvolumeoption.h \
- $$QMMPSRCROOT/ui/mainwindow.h \
- $$QMMPSRCROOT/qmmp/soundcore.h
-
-SOURCES += incdecvolumeoption.cpp \
- $$QMMPSRCROOT/qmmp/soundcore.cpp \
- $$QMMPSRCROOT/ui/mainwindow.cpp
-
-DESTDIR = ../
-QMAKE_CLEAN = ../libincdecvolumeoption.so
-
-
-
-CONFIG += release warn_on plugin
-
-TEMPLATE = lib
-
-
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 <QtPlugin>
-
-#include "incdecvolumeoption.h"
-#include <soundcore.h>
-#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)
-
diff --git a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h b/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h
deleted file mode 100644
index 6fbf3d24a..000000000
--- a/src/plugins/Misc/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef IncDecVolumeCommandLineOption_H
-#define IncDecVolumeCommandLineOption_H
-
-#include <commandlineoption.h>
-
-#include <QString>
-#include <QObject>
-
-class MainWindow;
-
-class IncDecVolumeCommandLineOption : public QObject, public CommandLineOption
-{
-Q_OBJECT
-Q_INTERFACES(CommandLineOption)
-public:
- virtual bool identify(const QString& opt_str)const;
- virtual const QString name()const;
- virtual const QString helpString()const;
- virtual void executeCommand(const QString& opt_str,MainWindow* mw);
-};
-
-#endif
-