kwave  18.07.70
WavCodecPlugin.cpp
Go to the documentation of this file.
1 /*************************************************************************
2  WavCodecPlugin.cpp - import/export of wav data
3  -------------------
4  begin : Sun Mar 10 2002
5  copyright : (C) 2002 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 "WavCodecPlugin.h"
21 #include "WavDecoder.h"
22 #include "WavEncoder.h"
23 
24 KWAVE_PLUGIN(codec_wav, WavCodecPlugin)
25 
26 // static instance of the codec container
28 
29 /***************************************************************************/
31  const QVariantList &args)
32  :Kwave::CodecPlugin(parent, args, m_codec)
33 {
34 }
35 
36 /***************************************************************************/
38 {
39 }
40 
41 /***************************************************************************/
42 QList<Kwave::Decoder *> Kwave::WavCodecPlugin::createDecoder()
43 {
44  return singleDecoder<Kwave::WavDecoder>();
45 }
46 
47 /***************************************************************************/
48 QList<Kwave::Encoder *> Kwave::WavCodecPlugin::createEncoder()
49 {
50  return singleEncoder<Kwave::WavEncoder>();
51 }
52 
53 //***************************************************************************
54 #include "WavCodecPlugin.moc"
55 //***************************************************************************
56 //***************************************************************************
Definition: App.h:33
virtual QList< Kwave::Encoder * > createEncoder() Q_DECL_OVERRIDE
WavCodecPlugin(QObject *parent, const QVariantList &args)
static CodecPlugin::Codec m_codec
#define EMPTY_CODEC
Definition: CodecPlugin.h:113
#define KWAVE_PLUGIN(name, class)
Definition: Plugin.h:54
virtual ~WavCodecPlugin() Q_DECL_OVERRIDE
virtual QList< Kwave::Decoder * > createDecoder() Q_DECL_OVERRIDE