kwave  18.07.70
FlacCodecPlugin.cpp
Go to the documentation of this file.
1 /*************************************************************************
2  FlacCodecPlugin.cpp - import/export of FLAC data
3  -------------------
4  begin : Tue Feb 28 2004
5  copyright : (C) 2004 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "config.h"
19 
20 #include <KLocalizedString>
21 
22 #include "libkwave/PluginManager.h"
23 
24 #include "FlacCodecPlugin.h"
25 #include "FlacDecoder.h"
26 #include "FlacEncoder.h"
27 
28 // static instance of the codec container
30 
31 KWAVE_PLUGIN(codec_flac, FlacCodecPlugin)
32 
33 /***************************************************************************/
35  const QVariantList &args)
36  :Kwave::CodecPlugin(parent, args, m_codec)
37 {
38 }
39 
40 /***************************************************************************/
42 {
43 }
44 
45 /***************************************************************************/
46 QList<Kwave::Decoder *> Kwave::FlacCodecPlugin::createDecoder()
47 {
48  return singleDecoder<Kwave::FlacDecoder>();
49 }
50 
51 /***************************************************************************/
52 QList<Kwave::Encoder *> Kwave::FlacCodecPlugin::createEncoder()
53 {
54  return singleEncoder<Kwave::FlacEncoder>();
55 }
56 
57 /***************************************************************************/
58 #include "FlacCodecPlugin.moc"
59 /***************************************************************************/
60 /***************************************************************************/
Definition: App.h:33
static CodecPlugin::Codec m_codec
virtual QList< Kwave::Decoder * > createDecoder() Q_DECL_OVERRIDE
virtual QList< Kwave::Encoder * > createEncoder() Q_DECL_OVERRIDE
#define EMPTY_CODEC
Definition: CodecPlugin.h:113
#define KWAVE_PLUGIN(name, class)
Definition: Plugin.h:54
virtual ~FlacCodecPlugin() Q_DECL_OVERRIDE