aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/CommandLineOptions/SeekOption/seekoption.cpp')
-rw-r--r--src/plugins/CommandLineOptions/SeekOption/seekoption.cpp32
1 files changed, 11 insertions, 21 deletions
diff --git a/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp b/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
index 29c70728f..ed367fd9f 100644
--- a/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
+++ b/src/plugins/CommandLineOptions/SeekOption/seekoption.cpp
@@ -24,6 +24,17 @@
#include <qmmp/soundcore.h>
#include "seekoption.h"
+const CommandLineProperties SeekOption::properties() const
+{
+ CommandLineProperties properties;
+ properties.shortName = "SeekOption";
+ properties.translation = QLatin1String(":/seek_plugin_");
+ properties.helpString << QString("--seek <time>") + "||" + tr("Seek to position in the current track")
+ << QString("--seek-fwd <time>") + "||" + tr("Seek forward")
+ << QString("--seek-bwd <time>") + "||" + tr("Seek backwards");
+ return properties;
+}
+
bool SeekOption::identify(const QString &str) const
{
QStringList opts;
@@ -31,14 +42,6 @@ bool SeekOption::identify(const QString &str) const
return opts.contains(str);
}
-const QStringList SeekOption::helpString() const
-{
- return QStringList()
- << QString("--seek <time>") + "||" + tr("Seek to position in the current track")
- << QString("--seek-fwd <time>") + "||" + tr("Seek forward")
- << QString("--seek-bwd <time>") + "||" + tr("Seek backwards");
-}
-
QString SeekOption::executeCommand(const QString &opt_str, const QStringList &args)
{
SoundCore *core = SoundCore::instance();
@@ -73,16 +76,3 @@ QString SeekOption::executeCommand(const QString &opt_str, const QStringList &ar
return QString();
return QString();
}
-
-const QString SeekOption::name() const
-{
- return "SeekOption";
-}
-
-/*QTranslator *SeekOption::createTranslator(QObject *parent)
-{
- QTranslator *translator = new QTranslator(parent);
- QString locale = Qmmp::systemLanguageID();
- translator->load(QString(":/seek_plugin_") + locale);
- return translator;
-}*/