author | llornkcor <llornkcor> | 2002-12-20 01:35:01 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-20 01:35:01 (UTC) |
commit | 876e1a4724a7bd75dc642e295de354241096e028 (patch) (side-by-side diff) | |
tree | a37c5dcc9d78e04bb6b859ab89d8cf81e6745087 /noncore/apps/opie-reader/Text.h | |
parent | 5fd6636ba3d94b48dd543887316c47c5388a43c2 (diff) | |
download | opie-876e1a4724a7bd75dc642e295de354241096e028.zip opie-876e1a4724a7bd75dc642e295de354241096e028.tar.gz opie-876e1a4724a7bd75dc642e295de354241096e028.tar.bz2 |
update - sorry it took so long. hope this works correctly
Diffstat (limited to 'noncore/apps/opie-reader/Text.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/Text.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/noncore/apps/opie-reader/Text.h b/noncore/apps/opie-reader/Text.h deleted file mode 100644 index 4c689be..0000000 --- a/noncore/apps/opie-reader/Text.h +++ b/dev/null @@ -1,28 +0,0 @@ -#ifndef __Text_h -#define __Text_h -#include <stdio.h> -#include <sys/stat.h> -#include "CExpander.h" - -class Text: public CExpander { - FILE* file; -public: - Text() : file(NULL) {}; - virtual ~Text() { if (file != NULL) fclose(file); } - virtual int openfile(const tchar *src) - { - if (file != NULL) fclose(file); - return ((file = fopen(src,"rb")) == NULL); - } - virtual int getch() { return fgetc(file); } - virtual unsigned int locate() { return ftell(file); } - virtual void locate(unsigned int n) { fseek(file,n,SEEK_SET); } - virtual bool hasrandomaccess() { return true; } - virtual void sizes(unsigned long& _file, unsigned long& _text) - { - struct stat _stat; - fstat(fileno(file),&_stat); - _text = _file = _stat.st_size; - } -}; -#endif |