kwave  18.07.70
RepairVirtualAudioFile.h
Go to the documentation of this file.
1 /*************************************************************************
2  RepairVirtualAudioFile.h - emulation of a repaired sane audio file
3  -------------------
4  begin : Sun May 12 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 REPAIR_VIRTUAL_AUDIO_FILE_H
19 #define REPAIR_VIRTUAL_AUDIO_FILE_H
20 
21 #include "config.h"
23 #include <QList>
24 
25 class QIODevice;
26 
27 namespace Kwave
28 {
29  class RecoverySource;
30 
32  {
33  public:
40  RepairVirtualAudioFile(QIODevice &device,
41  QList<Kwave::RecoverySource *> *repair_list);
42 
44  virtual ~RepairVirtualAudioFile() Q_DECL_OVERRIDE;
45 
47  virtual qint64 read(char *data, unsigned int nbytes) Q_DECL_OVERRIDE;
48 
50  virtual qint64 length() Q_DECL_OVERRIDE;
51 
53  virtual qint64 write(const char *data, unsigned int nbytes)
54  Q_DECL_OVERRIDE;
55 
57  virtual qint64 seek(qint64 offset, bool is_relative) Q_DECL_OVERRIDE;
58 
60  virtual qint64 tell() Q_DECL_OVERRIDE;
61 
62  private:
63 
65  qint64 m_position;
66 
68  QList<Kwave::RecoverySource *> *m_repair_list;
69  };
70 }
71 
72 #endif /* REPAIR_VIRTUAL_AUDIO_FILE_H */
73 
74 //***************************************************************************
75 //***************************************************************************
virtual qint64 write(const char *data, unsigned int nbytes) Q_DECL_OVERRIDE
Definition: App.h:33
RepairVirtualAudioFile(QIODevice &device, QList< Kwave::RecoverySource *> *repair_list)
virtual qint64 tell() Q_DECL_OVERRIDE
QList< Kwave::RecoverySource * > * m_repair_list
virtual qint64 read(char *data, unsigned int nbytes) Q_DECL_OVERRIDE
virtual qint64 seek(qint64 offset, bool is_relative) Q_DECL_OVERRIDE
virtual ~RepairVirtualAudioFile() Q_DECL_OVERRIDE
virtual qint64 length() Q_DECL_OVERRIDE