aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/simplefile.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/simplefile.h')
-rw-r--r--tests/libsample/simplefile.h29
1 files changed, 7 insertions, 22 deletions
diff --git a/tests/libsample/simplefile.h b/tests/libsample/simplefile.h
index 67797e7d4..9f7d042a2 100644
--- a/tests/libsample/simplefile.h
+++ b/tests/libsample/simplefile.h
@@ -38,29 +38,16 @@
#include "libsamplemacros.h"
#include <stdio.h>
+class SimpleFile_p;
+
class LIBSAMPLE_API SimpleFile
{
public:
- explicit SimpleFile(const char* filename)
- : m_filename(filename), m_descriptor(0), m_size(0)
- {
- }
-
- ~SimpleFile()
- {
- this->close();
- }
-
- const char* filename()
- {
- return m_filename;
- }
-
- long size()
- {
- return m_size;
- }
+ explicit SimpleFile(const char* filename);
+ ~SimpleFile();
+ const char* filename();
+ long size();
bool open();
void close();
@@ -68,9 +55,7 @@ public:
static bool exists(const char* filename);
private:
- const char* m_filename;
- FILE* m_descriptor;
- long m_size;
+ SimpleFile_p *p;
};
#endif // SIMPLEFILE_H