kwave  18.07.70
OggCodecPlugin.cpp
Go to the documentation of this file.
1 /*************************************************************************
2  OggCodecPlugin.cpp - import/export of audio in an Ogg container
3  -------------------
4  begin : Tue Sep 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 <KLocalizedString>
21 
22 #include "OggCodecPlugin.h"
23 #include "OggDecoder.h"
24 #include "OggEncoder.h"
25 
26 KWAVE_PLUGIN(codec_ogg, OggCodecPlugin)
27 
28 // static instance of the codec container
30 
31 /***************************************************************************/
33  const QVariantList &args)
34  :Kwave::CodecPlugin(parent, args, m_codec)
35 {
36 }
37 
38 /***************************************************************************/
40 {
41 }
42 
43 /***************************************************************************/
44 QList<Kwave::Decoder *> Kwave::OggCodecPlugin::createDecoder()
45 {
46  return singleDecoder<Kwave::OggDecoder>();
47 }
48 
49 /***************************************************************************/
50 QList<Kwave::Encoder *> Kwave::OggCodecPlugin::createEncoder()
51 {
52  return singleEncoder<Kwave::OggEncoder>();
53 }
54 
55 //***************************************************************************
56 #include "OggCodecPlugin.moc"
57 //***************************************************************************
58 //***************************************************************************
virtual QList< Kwave::Encoder * > createEncoder() Q_DECL_OVERRIDE
virtual ~OggCodecPlugin() Q_DECL_OVERRIDE
Definition: App.h:33
OggCodecPlugin(QObject *parent, const QVariantList &args)
virtual QList< Kwave::Decoder * > createDecoder() Q_DECL_OVERRIDE
static CodecPlugin::Codec m_codec
#define EMPTY_CODEC
Definition: CodecPlugin.h:113
#define KWAVE_PLUGIN(name, class)
Definition: Plugin.h:54