![]() |
QElectroTech 0.200.1-dev
|
#include <kautosavefile.h>
Inherits QFile.

Public Member Functions | |
| KAutoSaveFile (const QUrl &filename, QObject *parent=nullptr) | |
| KAutoSaveFile (QObject *parent=nullptr) | |
| ~KAutoSaveFile () override | |
| QUrl | managedFile () const |
| void | setManagedFile (const QUrl &filename) |
| virtual void | releaseLock () |
| bool | open (OpenMode openmode) override |
Static Public Member Functions | |
| static QList< KAutoSaveFile * > | staleFiles (const QUrl &url, const QString &applicationName=QString()) |
| static QList< KAutoSaveFile * > | allStaleFiles (const QString &applicationName=QString()) |
Private Attributes | |
| QUrl | m_managed_file |
| std::unique_ptr< QLockFile > | m_lock |
| bool | m_managed_file_name_changed = false |
Small Qt-only replacement for the KAutoSaveFile API used by QET.
It stores crash-recovery files below the application data autosave folder and protects each recovery file with QLockFile. The original managed file path is kept in a sidecar file so allStaleFiles() can present recoverable projects on the next startup.
|
explicit |


|
explicit |
|
override |

|
static |


| QUrl KAutoSaveFile::managedFile | ( | ) | const |

|
override |

|
virtual |

| void KAutoSaveFile::setManagedFile | ( | const QUrl & | filename | ) |


|
static |


|
private |
|
private |
|
private |