KDECore
kmemfile.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KMEMFILE_H
00022 #define KMEMFILE_H
00023
00024 #include <QtCore/QIODevice>
00025 #include <kdecore_export.h>
00026
00037 class KDECORE_EXPORT KMemFile : public QIODevice
00038 {
00039 public:
00046 explicit KMemFile ( const QString &filename, QObject *parent = 0 );
00050 virtual ~KMemFile();
00054 virtual void close ();
00059 virtual bool isSequential () const;
00064 virtual bool open ( OpenMode mode );
00069 virtual bool seek ( qint64 pos );
00073 virtual qint64 size () const;
00079 static void fileContentsChanged ( const QString &filename );
00080 protected:
00081 virtual qint64 readData ( char * data, qint64 maxSize );
00082 virtual qint64 writeData ( const char * data, qint64 maxSize );
00083 private:
00084 class Private;
00085 friend class Private;
00086 Private * const d;
00087 };
00088
00089 #endif // KMEMFILE_H