From 7acba956ed3ef3528c6fafe7cb38d94d796e6a4a Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 13 Oct 2008 16:03:35 +0000 Subject: 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 --- src/plugins/Input/cue/decodercuefactory.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/plugins/Input/cue/decodercuefactory.cpp') 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 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) { -- cgit v1.2.3-13-gbd6f