kwave  18.07.70
ID3_QIODeviceReader.h
Go to the documentation of this file.
1 /*************************************************************************
2  ID3_QIODeviceReader.h - Adapter between QIODevice and ID3_Reader
3  -------------------
4  begin : Wed Aug 14 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 #ifndef ID3_QIODEVICE_READER_H
19 #define ID3_QIODEVICE_READER_H
20 
21 #include "config.h"
22 
23 #include <id3/globals.h>
24 #include <id3/reader.h>
25 
26 class QIODevice;
27 
28 namespace Kwave
29 {
34  class ID3_QIODeviceReader: public ID3_Reader
35  {
36  public:
37 
39  explicit ID3_QIODeviceReader(QIODevice &source);
40 
42  virtual ~ID3_QIODeviceReader();
43 
45  virtual void close();
46 
48  virtual ID3_Reader::pos_type getBeg();
49 
51  virtual ID3_Reader::pos_type getEnd();
52 
54  virtual ID3_Reader::pos_type getCur();
55 
57  virtual ID3_Reader::pos_type setCur(ID3_Reader::pos_type pos=0);
58 
60  virtual ID3_Reader::int_type readChar();
61 
63  virtual ID3_Reader::int_type peekChar();
64 
66  virtual size_type readChars(char_type buf[], size_type len);
67  virtual size_type readChars(char buf[], size_type len);
68 
69  private:
70 
72  QIODevice &m_source;
73  };
74 }
75 
76 #endif /* ID3_QIODEVICE_READER_H */
77 
78 //***************************************************************************
79 //***************************************************************************
Definition: App.h:33
virtual ID3_Reader::pos_type setCur(ID3_Reader::pos_type pos=0)
virtual ID3_Reader::pos_type getBeg()
ID3_QIODeviceReader(QIODevice &source)
virtual ID3_Reader::int_type readChar()
virtual size_type readChars(char_type buf[], size_type len)
virtual ID3_Reader::int_type peekChar()
virtual ID3_Reader::pos_type getCur()
virtual ID3_Reader::pos_type getEnd()