diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-10-13 16:03:35 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-10-13 16:03:35 +0000 |
| commit | 7acba956ed3ef3528c6fafe7cb38d94d796e6a4a (patch) | |
| tree | 541cf8a5ab5ad5685917ff18cc9acc57aeca32c5 /src/plugins/Input/cue/decodercuefactory.cpp | |
| parent | 54e71369e1b2dde50af1ee6f41c5375f7ae32610 (diff) | |
| download | qmmp-7acba956ed3ef3528c6fafe7cb38d94d796e6a4a.tar.gz qmmp-7acba956ed3ef3528c6fafe7cb38d94d796e6a4a.tar.bz2 qmmp-7acba956ed3ef3528c6fafe7cb38d94d796e6a4a.zip | |
CUE plugin: additional metadata support, CUE codepage settings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@583 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cue/decodercuefactory.cpp')
| -rw-r--r-- | src/plugins/Input/cue/decodercuefactory.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/plugins/Input/cue/decodercuefactory.cpp b/src/plugins/Input/cue/decodercuefactory.cpp index c87c4f4a6..d1baf3fcf 100644 --- a/src/plugins/Input/cue/decodercuefactory.cpp +++ b/src/plugins/Input/cue/decodercuefactory.cpp @@ -21,6 +21,7 @@ #include "decoder_cue.h" #include "cueparser.h" +#include "settingsdialog.h" #include "decodercuefactory.h" @@ -31,7 +32,7 @@ bool DecoderCUEFactory::supports(const QString &source) const return source.right(4).toLower() == ".cue"; } -bool DecoderCUEFactory::canDecode(QIODevice *input) const +bool DecoderCUEFactory::canDecode(QIODevice *) const { return FALSE; } @@ -46,7 +47,7 @@ const DecoderProperties DecoderCUEFactory::properties() const //properties.contentType = "application/ogg;audio/x-vorbis+ogg"; properties.protocols = "cue"; properties.hasAbout = TRUE; - properties.hasSettings = FALSE; + properties.hasSettings = TRUE; properties.noInput = TRUE; properties.noOutput = TRUE; return properties; @@ -55,23 +56,27 @@ const DecoderProperties DecoderCUEFactory::properties() const Decoder *DecoderCUEFactory::create(QObject *parent, QIODevice *input, Output *output, const QString &url) { + Q_UNUSED(input); + Q_UNUSED(output); return new DecoderCUE(parent, this, url); } -//FileInfo *DecoderCUEFactory::createFileInfo(const QString &source) QList<FileInfo *> DecoderCUEFactory::createPlayList(const QString &fileName) { CUEParser parser(fileName); return parser.createPlayList(); } -QObject* DecoderCUEFactory::showDetails(QWidget *parent, const QString &path) +QObject* DecoderCUEFactory::showDetails(QWidget *, const QString &) { return 0; } -void DecoderCUEFactory::showSettings(QWidget *) -{} +void DecoderCUEFactory::showSettings(QWidget *parent) +{ + SettingsDialog *s = new SettingsDialog(parent); + s->show(); +} void DecoderCUEFactory::showAbout(QWidget *parent) { |
