kwave  18.07.70
RecoveryBuffer.h
Go to the documentation of this file.
1 /*************************************************************************
2  RecoveryBuffer.cpp - buffer for reconstructed audio file data
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_BUFFER_H
19 #define RECOVERY_BUFFER_H
20 
21 #include "config.h"
22 
23 #include <QByteArray>
24 
25 #include "RecoverySource.h"
26 
27 namespace Kwave
28 {
30  {
31  public:
38  RecoveryBuffer(quint64 offset, quint64 length, char *buffer);
39 
41  virtual ~RecoveryBuffer() Q_DECL_OVERRIDE {}
42 
44  virtual qint64 read(quint64 offset, char *data, unsigned int bytes)
45  Q_DECL_OVERRIDE;
46 
47  private:
48 
50  QByteArray m_buffer;
51  };
52 }
53 
54 #endif /* RECOVERY_BUFFER_H */
55 
56 //***************************************************************************
57 //***************************************************************************
virtual quint64 length() const
Definition: App.h:33
virtual quint64 offset() const
virtual qint64 read(quint64 offset, char *data, unsigned int bytes) Q_DECL_OVERRIDE
virtual ~RecoveryBuffer() Q_DECL_OVERRIDE
RecoveryBuffer(quint64 offset, quint64 length, char *buffer)