KDECore
ksavefile.h
Go to the documentation of this file.
1/* kate: tab-indents off; replace-tabs on; tab-width 4; remove-trailing-space on; encoding utf-8;*/
110 explicit KSaveFile(const QString &filename, const KComponentData &componentData = KGlobal::mainComponent()); // KDE5 TODO: remove KComponentData
virtual bool open(OpenMode flags=QIODevice::ReadWrite)
Open the save file.
Definition ksavefile.cpp:81
bool directWriteFallback() const
Returns true if the fallback solution for saving files in read-only directories is enabled.
Definition ksavefile.cpp:280
QString errorString() const
Returns a human-readable description of the last error.
Definition ksavefile.cpp:190
void setDirectWriteFallback(bool enabled)
Allows writing over the existing file if necessary.
Definition ksavefile.cpp:275
void setFileName(const QString &filename)
Set the target filename for the save file.
Definition ksavefile.cpp:166
static bool rcsBackupFile(const QString &filename, const QString &backupDir=QString(), const QString &backupMessage=QString())
Static method to create an rcs backup file for a given filename.
Definition ksavefile.cpp:321
static bool backupFile(const QString &filename, const QString &backupDir=QString())
Static method to create a backup file before saving.
Definition ksavefile.cpp:285
static bool simpleBackupFile(const QString &filename, const QString &backupDir=QString(), const QString &backupExtension=QLatin1String("~"))
Static method to create a backup file for a given filename.
Definition ksavefile.cpp:305
static bool numberedBackupFile(const QString &filename, const QString &backupDir=QString(), const QString &backupExtension=QString::fromLatin1("~"), const uint maxBackups=10)
Static method to create a backup file for a given filename.
Definition ksavefile.cpp:388
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.