Go to the documentation of this file.00001
00002
00003
00004
00005
00006 #ifndef WOC_MFILE_H
00007 #define WOC_MFILE_H
00008
00009 #include <QFile>
00010 #include <QMap>
00011 #include <QStringList>
00012
00015 class MFile:public QFile
00016 {
00017 public:
00019 MFile(QString name,QObject*parent=0);
00021 MFile(QObject *parent=0);
00023 ~MFile();
00024
00026 virtual void close();
00028 virtual bool open(QIODevice::OpenMode m=QIODevice::WriteOnly);
00029
00031 QString fileName()const{return name;}
00033 void setFileName(QString n);
00034
00036 static bool touchedFile(QString);
00037 private:
00038
00039 bool isopen;
00040
00041 QString name;
00042
00043
00044 static QMap<QString,QStringList> touched;
00045 };
00046
00047 #endif