kwave  18.07.70
RecoveryMapping.h
Go to the documentation of this file.
1 /*************************************************************************
2  RecoveryMapping.h - mapping of a recovered range in a 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 RECOVERY_MAPPING_H
19 #define RECOVERY_MAPPING_H
20 
21 #include "config.h"
22 
23 #include "RecoverySource.h"
24 
25 class QIODevice;
26 
27 namespace Kwave
28 {
30  {
31  public:
39  RecoveryMapping(quint64 offset, quint64 length,
40  QIODevice &dev, quint64 dev_offset);
41 
43  virtual ~RecoveryMapping() Q_DECL_OVERRIDE {}
44 
46  virtual qint64 read(quint64 offset, char *data, unsigned int bytes)
47  Q_DECL_OVERRIDE;
48 
49  private:
50 
52  QIODevice &m_dev;
53 
55  quint64 m_dev_offset;
56  };
57 }
58 
59 #endif /* RECOVERY_MAPPING_H */
60 
61 //***************************************************************************
62 //***************************************************************************
RecoveryMapping(quint64 offset, quint64 length, QIODevice &dev, quint64 dev_offset)
virtual quint64 length() const
Definition: App.h:33
virtual ~RecoveryMapping() Q_DECL_OVERRIDE
virtual quint64 offset() const
virtual qint64 read(quint64 offset, char *data, unsigned int bytes) Q_DECL_OVERRIDE