KDECore
KMemFile Class Reference
#include <kmemfile.h>
Inheritance diagram for KMemFile:

Detailed Description
Definition at line 37 of file kmemfile.h.
Public Member Functions | |
virtual void | close () |
virtual bool | isSequential () const |
KMemFile (const QString &filename, QObject *parent=0) | |
virtual bool | open (OpenMode mode) |
virtual bool | seek (qint64 pos) |
virtual qint64 | size () const |
virtual | ~KMemFile () |
Static Public Member Functions | |
static void | fileContentsChanged (const QString &filename) |
Protected Member Functions | |
virtual qint64 | readData (char *data, qint64 maxSize) |
virtual qint64 | writeData (const char *data, qint64 maxSize) |
Constructor & Destructor Documentation
ctor
- Parameters:
-
filename the file to load into memory parent our parent
Definition at line 116 of file kmemfile.cpp.
KMemFile::~KMemFile | ( | ) | [virtual] |
Member Function Documentation
void KMemFile::close | ( | ) | [virtual] |
void KMemFile::fileContentsChanged | ( | const QString & | filename | ) | [static] |
This static function updates the internal information about the file loaded into shared memory.
The next time the file is opened, the file is reread from the file system.
Definition at line 236 of file kmemfile.cpp.
bool KMemFile::isSequential | ( | ) | const [virtual] |
overload from QIODevice.
As KMemFile is a random access device, it returns false
Definition at line 136 of file kmemfile.cpp.
bool KMemFile::open | ( | OpenMode | mode | ) | [virtual] |
overload from QIODevice.
- Parameters:
-
mode only QIODevice::ReadOnly is accepted
Reimplemented from QIODevice.
Definition at line 141 of file kmemfile.cpp.
overload from QIODevice.
Sets the current read/write position to pos
- Parameters:
-
pos the new read/write position
Reimplemented from QIODevice.
Definition at line 202 of file kmemfile.cpp.
qint64 KMemFile::size | ( | ) | const [virtual] |
The documentation for this class was generated from the following files: