kwave  18.07.70
AsciiEncoder.h
Go to the documentation of this file.
1 /*************************************************************************
2  AsciiEncoder.h - encoder for 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_ENCODER_H
19 #define ASCII_ENCODER_H
20 
21 #include "config.h"
22 
23 #include <QList>
24 #include <QTextStream>
25 
26 #include "libkwave/Encoder.h"
27 
28 class QWidget;
29 
30 namespace Kwave
31 {
32  class MultiTrackReader;
33  class MetaDataList;
34 
36  {
37  public:
39  AsciiEncoder();
40 
42  virtual ~AsciiEncoder() Q_DECL_OVERRIDE;
43 
45  virtual Kwave::Encoder *instance() Q_DECL_OVERRIDE;
46 
56  virtual bool encode(QWidget *widget, Kwave::MultiTrackReader &src,
57  QIODevice &dst,
58  const Kwave::MetaDataList &meta_data)
59  Q_DECL_OVERRIDE;
60 
62  virtual QList<Kwave::FileProperty> supportedProperties()
63  Q_DECL_OVERRIDE;
64 
65  private:
66 
68  QTextStream m_dst;
69 
70  };
71 }
72 
73 #endif /* ASCII_ENCODER_H */
74 
75 //***************************************************************************
76 //***************************************************************************
virtual Kwave::Encoder * instance() Q_DECL_OVERRIDE
Definition: App.h:33
QTextStream m_dst
Definition: AsciiEncoder.h:68
virtual QList< Kwave::FileProperty > supportedProperties() Q_DECL_OVERRIDE
virtual bool encode(QWidget *widget, Kwave::MultiTrackReader &src, QIODevice &dst, const Kwave::MetaDataList &meta_data) Q_DECL_OVERRIDE
virtual ~AsciiEncoder() Q_DECL_OVERRIDE