From aa714b0076c06d7133c625ab22c86114d4f17e23 Mon Sep 17 00:00:00 2001 From: geronimo Date: Sun, 29 Jul 2012 16:00:29 +0200 Subject: cleanup --- libs/IO/include/FileReader.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 libs/IO/include/FileReader.h (limited to 'libs/IO/include/FileReader.h') diff --git a/libs/IO/include/FileReader.h b/libs/IO/include/FileReader.h new file mode 100644 index 0000000..31cb7d6 --- /dev/null +++ b/libs/IO/include/FileReader.h @@ -0,0 +1,44 @@ +/** + * ======================== legal notice ====================== + * + * File: FileReader.h + * Created: 28. Juli 2012, 15:00 + * Author: Geronimo + * Project: libIO: classes for files, filesystem and input/output + * + * CMP - compound media player + * + * is a client/server mediaplayer intended to play any media from any workstation + * without the need to export or mount shares. cmps is an easy to use backend + * with a (ready to use) HTML-interface. Additionally the backend supports + * authentication via HTTP-digest authorization. + * cmpc is a client with vdr-like osd-menues. + * + * Copyright (c) 2012 Reinhard Mantey, some rights reserved! + * published under Creative Commons by-sa + * For details see http://creativecommons.org/licenses/by-sa/3.0/ + * + * The cmp project's homepage is at http://projects.vdr-developer.org/projects/cmp + * + * -------------------------------------------------------------- + */ +#ifndef FILEREADER_H +#define FILEREADER_H + +class cFile; +class cFileReader +{ +public: + cFileReader(cFile *Input); + virtual ~cFileReader(); + + int Read(char *buf, int bufSize); + void Close(); + +private: + int fd; + cFile *file; + }; + +#endif /* FILEREADER_H */ + -- cgit v1.2.3