24 #include <QSharedPointer>
25 #include <ktorrent_export.h>
26 #include "constants.h"
58 bool open(
const QString & file,
const QString & mode);
77 Uint32
write(
const void* buf,Uint32 size);
86 Uint32
read(
void* buf,Uint32 size);
101 Uint64
seek(SeekPos from,Int64 num);
112 typedef QSharedPointer<File> Ptr;
Uint32 read(void *buf, Uint32 size)
QString errorString() const
Get the error string.
Wrapper class for stdio's FILE.
bool open(const QString &file, const QString &mode)
Uint32 write(const void *buf, Uint32 size)
Uint64 tell() const
Get the current position in the file.
Uint64 seek(SeekPos from, Int64 num)
bool eof() const
Check to see if we are at the end of the file.