aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions/SeekOption/seekoption.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-12-25 20:50:08 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-12-25 20:50:08 +0000
commitc28061c4cf64e468dd3e230df1b96d1a72e295fd (patch)
tree85cdef77d8851ab89e8a57ba1d5f823531a15831 /src/plugins/CommandLineOptions/SeekOption/seekoption.h
parent164e24517d01eb95f74563cc66a691adf07ed514 (diff)
downloadqmmp-c28061c4cf64e468dd3e230df1b96d1a72e295fd.tar.gz
qmmp-c28061c4cf64e468dd3e230df1b96d1a72e295fd.tar.bz2
qmmp-c28061c4cf64e468dd3e230df1b96d1a72e295fd.zip
fixed command line plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8532 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/CommandLineOptions/SeekOption/seekoption.h')
-rw-r--r--src/plugins/CommandLineOptions/SeekOption/seekoption.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/plugins/CommandLineOptions/SeekOption/seekoption.h b/src/plugins/CommandLineOptions/SeekOption/seekoption.h
index c4bcafaae..104f1b146 100644
--- a/src/plugins/CommandLineOptions/SeekOption/seekoption.h
+++ b/src/plugins/CommandLineOptions/SeekOption/seekoption.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2010-2017 by Ilya Kotov *
+ * Copyright (C) 2010-2019 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -24,20 +24,33 @@
#include <QString>
#include <QObject>
#include <QStringList>
-#include <qmmpui/commandlineoption.h>
+#include <qmmpui/commandlinehandler.h>
#include <qmmpui/commandlinemanager.h>
-class SeekOption : public QObject, public CommandLineOption
+class SeekOption : public QObject, public CommandLineHandler
{
Q_OBJECT
-Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.CommandLineOptionInterface.1.0")
-Q_INTERFACES(CommandLineOption)
+Q_PLUGIN_METADATA(IID "org.qmmp.qmmpui.CommandLineHandlerInterface.1.0")
+Q_INTERFACES(CommandLineHandler)
public:
- virtual CommandLineProperties properties() const;
- virtual bool identify(const QString &opt_str) const;
- virtual QString executeCommand(const QString& opt_str, const QStringList &args);
- virtual QString translation() const;
+ SeekOption();
+ QString shortName() const;
+ QString translation() const;
+ QString executeCommand(int id, const QStringList &args);
+
+ //virtual CommandLineProperties properties() const;
+ //virtual bool identify(const QString &opt_str) const;
+ //virtual QString executeCommand(const QString& opt_str, const QStringList &args);
+ //virtual QString translation() const;
+
+private:
+ enum Command
+ {
+ SEEK = 0,
+ SEEK_FWD,
+ SEEK_BWD
+ };
};
#endif