From c9d69d13e214c0071a65ba967276f057d204f8f8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 22 Sep 2009 15:29:54 +0000 Subject: enabled sndfile plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1248 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/sndfile/decodersndfilefactory.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/plugins/Input/sndfile/decodersndfilefactory.cpp') diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.cpp b/src/plugins/Input/sndfile/decodersndfilefactory.cpp index cce4e9801..be9e98feb 100644 --- a/src/plugins/Input/sndfile/decodersndfilefactory.cpp +++ b/src/plugins/Input/sndfile/decodersndfilefactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2008 by Ilya Kotov * + * Copyright (C) 2007-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -75,11 +75,9 @@ const DecoderProperties DecoderSndFileFactory::properties() const return properties; } -Decoder *DecoderSndFileFactory::create(QObject *parent, QIODevice *input, - Output *output, const QString &path) +Decoder *DecoderSndFileFactory::create(const QString &path, QIODevice *) { - Q_UNUSED(input); - return new DecoderSndFile(parent, this, output, path); + return new DecoderSndFile(path); } QList DecoderSndFileFactory::createPlayList(const QString &fileName, bool useMetaData) @@ -119,10 +117,8 @@ QList DecoderSndFileFactory::createPlayList(const QString &fileName, return list; } -QObject* DecoderSndFileFactory::showDetails(QWidget *parent, const QString &path) +MetaDataModel* DecoderSndFileFactory::createMetaDataModel(const QString&, QObject *) { - Q_UNUSED(parent); - Q_UNUSED(path); return 0; } @@ -147,4 +143,4 @@ QTranslator *DecoderSndFileFactory::createTranslator(QObject *parent) return translator; } -Q_EXPORT_PLUGIN(DecoderSndFileFactory) +Q_EXPORT_PLUGIN2(sndfile, DecoderSndFileFactory) -- cgit v1.2.3-13-gbd6f