kwave  18.07.70
AsciiCodecPlugin.h
Go to the documentation of this file.
1 /*************************************************************************
2  AsciiCodecPlugin.h - import/export of ASCII data
3  -------------------
4  begin : Sun Nov 26 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 #ifndef ASCII_CODEC_PLUGIN_H
19 #define ASCII_CODEC_PLUGIN_H
20 
21 #include "config.h"
22 
23 #include "libkwave/CodecPlugin.h"
24 #include "libkwave/Compression.h"
25 
26 namespace Kwave
27 {
28 
30  {
31  Q_OBJECT
32  public:
33 
39  AsciiCodecPlugin(QObject *parent, const QVariantList &args);
40 
42  virtual ~AsciiCodecPlugin() Q_DECL_OVERRIDE;
43 
45  virtual QList<Kwave::Decoder *> createDecoder() Q_DECL_OVERRIDE;
46 
48  virtual QList<Kwave::Encoder *> createEncoder() Q_DECL_OVERRIDE;
49 
50  private:
53  };
54 }
55 
56 #define LOAD_MIME_TYPES \
57  addMimeType("audio/x-audio-ascii", \
58  i18n("ASCII encoded audio"), "*.ascii");
59 
60 #define REGISTER_COMPRESSION_TYPES \
61  addCompression(Kwave::Compression::NONE);
62 
64 #define META_PREFIX _("## ")
65 
66 #endif /* ASCII_CODEC_PLUGIN_H */
67 
68 //***************************************************************************
69 //***************************************************************************
AsciiCodecPlugin(QObject *parent, const QVariantList &args)
Definition: App.h:33
virtual ~AsciiCodecPlugin() Q_DECL_OVERRIDE
virtual QList< Kwave::Decoder * > createDecoder() Q_DECL_OVERRIDE
static CodecPlugin::Codec m_codec
virtual QList< Kwave::Encoder * > createEncoder() Q_DECL_OVERRIDE