21 #ifndef AUTOSAVEFILE_H 22 #define AUTOSAVEFILE_H 24 #include <QtCore/QFile> 25 #include <QtCore/QString> 27 class AutoSaveFile :
public QFile
31 explicit AutoSaveFile(
const QString &filename, QObject *parent = 0);
34 QString managedFileName()
const {
return m_managedFile; }
35 void changeManagedFile(
const QString &filename);
37 virtual bool open(OpenMode openmode);
38 static AutoSaveFile* getFile(
const QString &filename);
39 static QString path();
42 Q_DISABLE_COPY(AutoSaveFile)
43 QString m_managedFile;
44 bool m_managedFileNameChanged;
47 #endif // AUTOSAVEFILE_H