kwave  18.07.70
AsciiCodecPlugin.cpp
Go to the documentation of this file.
1 /*************************************************************************
2  AsciiCodecPlugin.cpp - import/export of ASCII data
3  -------------------
4  begin : Sun Nov 28 2006
5  copyright : (C) 2006 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 "AsciiCodecPlugin.h"
25 #include "AsciiDecoder.h"
26 #include "AsciiEncoder.h"
27 
28 // static instance of the codec container
30 
31 KWAVE_PLUGIN(codec_ascii, AsciiCodecPlugin)
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::AsciiCodecPlugin::createDecoder()
47 {
48  return singleDecoder<Kwave::AsciiDecoder>();
49 }
50 
51 /***************************************************************************/
52 QList<Kwave::Encoder *> Kwave::AsciiCodecPlugin::createEncoder()
53 {
54  return singleEncoder<Kwave::AsciiEncoder>();
55 }
56 
57 /***************************************************************************/
58 #include "AsciiCodecPlugin.moc"
59 /***************************************************************************/
60 /***************************************************************************/
Definition: App.h:33
virtual ~AsciiCodecPlugin() Q_DECL_OVERRIDE
virtual QList< Kwave::Decoder * > createDecoder() Q_DECL_OVERRIDE
#define EMPTY_CODEC
Definition: CodecPlugin.h:113
static CodecPlugin::Codec m_codec
#define KWAVE_PLUGIN(name, class)
Definition: Plugin.h:54
virtual QList< Kwave::Encoder * > createEncoder() Q_DECL_OVERRIDE