kwave  18.07.70
RecoverySource.h
Go to the documentation of this file.
1 /*************************************************************************
2  RecoverySource.h - base class for recovered 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_SOURCE_H
19 #define RECOVERY_SOURCE_H
20 
21 #include "config.h"
22 
23 #include <qglobal.h>
24 
25 namespace Kwave
26 {
28  {
29  public:
35  RecoverySource(quint64 offset, quint64 length);
36 
38  virtual ~RecoverySource() {}
39 
41  virtual quint64 offset() const;
42 
44  virtual quint64 length() const;
45 
47  virtual quint64 end() const;
48 
56  virtual qint64 read(quint64 offset, char *data,
57  unsigned int bytes) = 0;
58 
59  private:
61  quint64 m_offset;
62 
64  quint64 m_length;
65  };
66 }
67 
68 #endif /* RECOVERY_SOURCE_H */
69 
70 //***************************************************************************
71 //***************************************************************************
virtual quint64 length() const
virtual qint64 read(quint64 offset, char *data, unsigned int bytes)=0
virtual quint64 end() const
Definition: App.h:33
virtual quint64 offset() const
RecoverySource(quint64 offset, quint64 length)