diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2006-07-16 20:10:06 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2006-07-16 20:10:06 (GMT) |
commit | 243272688a4a3bc7921b7d05dda927f4adf3036c (patch) | |
tree | f167dcd5d5f9dcea2ade9e968e78c2a085f0f1fd /qtools/qfile_unix.cpp | |
parent | 9dbdf881dc5f0644777cc5732e7751325b508c91 (diff) | |
download | Doxygen-243272688a4a3bc7921b7d05dda927f4adf3036c.zip Doxygen-243272688a4a3bc7921b7d05dda927f4adf3036c.tar.gz Doxygen-243272688a4a3bc7921b7d05dda927f4adf3036c.tar.bz2 |
Release-1.4.7-20060716
Diffstat (limited to 'qtools/qfile_unix.cpp')
-rw-r--r-- | qtools/qfile_unix.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/qtools/qfile_unix.cpp b/qtools/qfile_unix.cpp index 6b63d99..fbf6acf 100644 --- a/qtools/qfile_unix.cpp +++ b/qtools/qfile_unix.cpp @@ -632,3 +632,24 @@ void QFile::close() return; } + +int64 QFile::pos() const +{ + if (isOpen()) + { + // TODO: support 64 bit size + return ftell( fh ); + } + return -1; +} + +bool QFile::seek( int64 pos ) +{ + if (isOpen()) + { + // TODO: support 64 bit size + return fseek( fh, pos, SEEK_SET )!=-1; + } + return FALSE; +} + |