• Main Page
  • Classes
  • Files
  • File List
  • File Members

mfile.h

Go to the documentation of this file.
00001 // Copyright (C) 2009-2011 by Konrad Rosenbaum <konrad@silmor.de>
00002 // protected under the GNU GPL version 3 or at your option any newer.
00003 // See COPYING.GPL file that comes with this distribution.
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                 //flag to show whether file is open
00039                 bool isopen;
00040                 //original name of the file
00041                 QString name;
00042                 
00043                 //stores touched files
00044                 static QMap<QString,QStringList> touched;
00045 };
00046 
00047 #endif

Generated on Sun Apr 15 2012 21:13:24 for PACK WOC by  doxygen 1.7.1